/* =========================================================================
   RiSEO Digital — Front-end design system
   Ported 1:1 from the approved agency design (Tailwind tokens → native CSS).
   Every value below is mirrored in theme.json so the block editor shows the
   exact same palette, type scale and spacing.
   ========================================================================= */

/* ---------------------------------------------------------------- TOKENS */
:root {
	--riseo-bg: #0a0a0e;
	--riseo-bg-deep: #07070a;
	--riseo-surface: #14141a;
	--riseo-surface-2: #1b1b23;
	--riseo-line: rgba(255, 255, 255, 0.08);
	--riseo-line-solid: #2a2a33;
	--riseo-crimson: #e61a42;
	--riseo-crimson-hi: #ff4d6d;
	--riseo-crimson-lo: #9b0f2b;
	--riseo-steel: #9e9e9e;
	--riseo-ash: #b0b0b5;

	--riseo-grad: linear-gradient(135deg, #ff4d6d 0%, #e61a42 48%, #9b0f2b 100%);
	--riseo-grad-soft: linear-gradient(135deg, rgba(255, 77, 109, 0.16), rgba(155, 15, 43, 0.06));
	--riseo-glow: 0 10px 40px -8px rgba(230, 26, 66, 0.55);

	--riseo-radius: 24px;
	--riseo-radius-lg: 2rem;
	--riseo-container: 1240px;
	--riseo-header-h: 84px;

	--ff-display: "Sora", "Anek Bangla", system-ui, sans-serif;
	--ff-body: "Inter", "Hind Siliguri", system-ui, sans-serif;
	--ff-mono: "JetBrains Mono", ui-monospace, monospace;

	--lh-body: 1.85;
	--lh-display: 1.14;
}

/* ------------------------------------------------------------------ BASE */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--riseo-bg);
	color: #fff;
	font-family: var(--ff-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

::selection {
	background: var(--riseo-crimson);
	color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--riseo-bg); }
::-webkit-scrollbar-thumb { background: var(--riseo-line-solid); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--riseo-crimson); }

a { text-decoration: none; }

/* Keep WP's default link underline off inside cards/buttons */
.riseo-card a:not(.wp-block-button__link) { text-decoration: none; }

/* Skip link */
.skip-link.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	padding: 10px 18px;
	background: var(--riseo-crimson);
	color: #fff;
	z-index: 100000;
	border-radius: 999px;
}

/* ------------------------------------------------------------- LAYOUT */
.wp-site-blocks { overflow-x: clip; }

/* Mirrors the design's `.container-x`: full-bleed section outside,
   centred max-width content inside with responsive gutters. */
.riseo-container {
	width: 100%;
	max-width: var(--riseo-container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 0.75rem + 1.6vw, 2rem);
}
.riseo-container--narrow { max-width: 52rem; }
.riseo-container--wide { max-width: 76rem; }

/* Vertical rhythm between stacked blocks inside a container. */
.is-layout-flow > * + * { margin-block-start: var(--wp--style--block-gap, 1.25rem); }

.riseo-section {
	padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
	position: relative;
}
.riseo-section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.riseo-section--alt { background: color-mix(in srgb, var(--riseo-surface) 45%, transparent); }
.riseo-section--surface { background: var(--riseo-surface); }

/* Section divider line */
.riseo-divider {
	height: 1px;
	border: 0;
	background: linear-gradient(90deg, transparent, rgba(230, 26, 66, 0.6), transparent);
}

/* ---------------------------------------------------------- TYPOGRAPHY */
.riseo-display { font-family: var(--ff-display); }

.riseo-eyebrow {
	font-family: var(--ff-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
}
html[lang^="bn"] .riseo-eyebrow,
.riseo-eyebrow:lang(bn) {
	letter-spacing: 0.04em;
	font-size: 0.9rem;
	text-transform: none;
}

.riseo-grad-text {
	background: var(--riseo-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-bottom: 0.08em;
	display: inline-block;
}
.riseo-grad-text-light {
	background: linear-gradient(135deg, #fff 10%, #ff8fa3 60%, #ff4d6d 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

.riseo-lead {
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
	color: var(--riseo-ash);
	line-height: var(--lh-body);
}
.riseo-muted { color: var(--riseo-ash); }
.riseo-subtle { color: var(--riseo-steel); }

/* -------------------------------------------------------------- SURFACES */
.riseo-card {
	background: var(--riseo-surface);
	border: 1px solid var(--riseo-line);
	border-radius: var(--riseo-radius);
	position: relative;
	transition: border-color 0.4s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.riseo-card a { color: inherit; }

.riseo-card--hover:hover,
.riseo-card-hover:hover {
	border-color: rgba(230, 26, 66, 0.45);
	transform: translateY(-6px);
}

.riseo-glass {
	background: rgba(20, 20, 26, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.09);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border-radius: 20px;
}

/* Cursor spotlight (JS sets --mx / --my) */
.riseo-spot { position: relative; overflow: hidden; }
.riseo-spot::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 26, 66, 0.2), transparent 45%);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
	z-index: 0;
}
.riseo-spot:hover::before { opacity: 1; }
.riseo-spot > * { position: relative; z-index: 1; }

.riseo-icon-chip {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: var(--riseo-grad-soft);
	border: 1px solid rgba(230, 26, 66, 0.35);
	color: #ff5b78;
	flex-shrink: 0;
	line-height: 0;
}
.riseo-icon-chip svg { width: 24px; height: 24px; }

/* Icon chip rendered by a core/image block (so it can be swapped in the editor) */
.wp-block-image.riseo-icon-chip {
	width: 52px;
	height: 52px;
	margin: 0;
	display: grid;
	place-items: center;
	background: var(--riseo-grad-soft);
	border: 1px solid rgba(230, 26, 66, 0.35);
	border-radius: 16px;
	color: #ff5b78;
	line-height: 0;
	box-sizing: content-box;
}
.wp-block-image.riseo-icon-chip img {
	width: 24px;
	height: 24px;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
}
.wp-block-image.riseo-icon-chip.is-style-rounded { border-radius: 16px; }

.riseo-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: rgba(230, 26, 66, 0.1);
	border: 1px solid rgba(230, 26, 66, 0.35);
	color: #ff7d93;
}
.riseo-pill .riseo-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--riseo-crimson-hi);
	flex: 0 0 auto;
	display: inline-block;
}

/* ---------------------------------------------------------- BACKGROUNDS */
.riseo-grid-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.riseo-orb {
	position: absolute;
	border-radius: 999px;
	filter: blur(90px);
	pointer-events: none;
	background: radial-gradient(circle, rgba(230, 26, 66, 0.55), transparent 70%);
}

.riseo-noise { position: relative; }
.riseo-noise::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.05;
	border-radius: inherit;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* -------------------------------------------------------------- BUTTONS */
.wp-block-button__link {
	font-family: var(--ff-body);
	font-weight: 600;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s,
		background 0.3s, border-color 0.3s, color 0.3s;
}

/* Primary — crimson gradient + shine sweep */
.wp-block-button.is-style-riseo-primary .wp-block-button__link,
.is-style-riseo-primary .wp-block-button__link {
	position: relative;
	overflow: hidden;
	background: var(--riseo-grad);
	background-size: 160% 160%;
	background-position: 0% 50%;
	color: #fff;
	box-shadow: var(--riseo-glow);
	border: 1px solid transparent;
	border-radius: 999px;
}
.wp-block-button.is-style-riseo-primary .wp-block-button__link:hover,
.is-style-riseo-primary .wp-block-button__link:hover {
	transform: translateY(-2px);
	background-position: 100% 50%;
	box-shadow: 0 16px 50px -8px rgba(230, 26, 66, 0.75);
	color: #fff;
}
.wp-block-button.is-style-riseo-primary .wp-block-button__link::after,
.is-style-riseo-primary .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s;
}
.wp-block-button.is-style-riseo-primary .wp-block-button__link:hover::after,
.is-style-riseo-primary .wp-block-button__link:hover::after { transform: translateX(120%); }

/* Ghost — outlined */
.wp-block-button.is-style-riseo-ghost .wp-block-button__link,
.is-style-riseo-ghost .wp-block-button__link {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-radius: 999px;
}
.wp-block-button.is-style-riseo-ghost .wp-block-button__link:hover,
.is-style-riseo-ghost .wp-block-button__link:hover {
	border-color: var(--riseo-crimson);
	background: rgba(230, 26, 66, 0.1);
	transform: translateY(-2px);
	color: #fff;
}

/* White (on crimson panels) */
.wp-block-button.is-style-riseo-white .wp-block-button__link,
.is-style-riseo-white .wp-block-button__link {
	background: #fff;
	color: var(--riseo-crimson-lo);
	border-radius: 999px;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
	font-weight: 700;
}
.wp-block-button.is-style-riseo-white .wp-block-button__link:hover,
.is-style-riseo-white .wp-block-button__link:hover { transform: translateY(-2px); color: var(--riseo-crimson-lo); }

/* Outline-light (on crimson panels) */
.wp-block-button.is-style-riseo-outline-light .wp-block-button__link,
.is-style-riseo-outline-light .wp-block-button__link {
	background: rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.wp-block-button.is-style-riseo-outline-light .wp-block-button__link:hover,
.is-style-riseo-outline-light .wp-block-button__link:hover { background: rgba(0, 0, 0, 0.3); color: #fff; }

/* Small */
.riseo-btn-sm .wp-block-button__link { padding: 0.65rem 1.2rem; font-size: 0.9rem; }

/* ---------------------------------------------------------------- HEADER */
.riseo-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	transition: background 0.5s, border-color 0.5s, padding 0.5s;
	padding-block: 1.15rem;
	border-bottom: 1px solid transparent;
}
.riseo-header.is-scrolled {
	background: rgba(10, 10, 14, 0.82);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	padding-block: 0.7rem;
}
.riseo-header__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--riseo-grad);
	transition: width 0.1s linear;
}
.riseo-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.riseo-brand {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}
/* Gradient logo mark. Swap in a real logo by setting a Site Logo in the
   Customiser (Appearance > Site Identity) — the mark then steps aside. */
.riseo-brand::before {
	content: "";
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--riseo-grad);
	box-shadow: var(--riseo-glow);
	flex: 0 0 auto;
}
.riseo-brand::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v16a2 2 0 0 0 2 2h16'/%3E%3Cpath d='M7 14l4-4 3 3 5-6'/%3E%3Cpath d='M15 7h4v4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	pointer-events: none;
}
.riseo-brand:has(.wp-block-site-logo img)::before,
.riseo-brand:has(.wp-block-site-logo img)::after { display: none; }
.riseo-brand .wp-block-site-logo img { width: 40px; height: 40px; border-radius: 12px; }
.riseo-brand__text {
	font-family: var(--ff-display);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #fff;
}
.riseo-brand__text small {
	display: block;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--riseo-ash);
	margin-top: 3px;
}

/* Header logo when a custom logo is set */
.riseo-header .wp-block-site-logo { margin: 0; }
.riseo-header .wp-block-site-logo img { max-height: 40px; width: auto; border-radius: 10px; }
.riseo-header .wp-block-site-title {
	font-family: var(--ff-display);
	font-size: 1.22rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0;
}
.riseo-header .wp-block-site-title a { color: #fff; }
.riseo-header .wp-block-site-title a:hover { color: #fff; }

.riseo-header__nav .wp-block-navigation { flex: 1 1 auto; }
.riseo-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--riseo-bg);
}
.riseo-header .wp-block-navigation-item__content {
	color: var(--riseo-ash);
	padding: 0.4rem 0.9rem;
}
.riseo-header .wp-block-navigation-item__content:hover,
.riseo-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: #fff;
}
.riseo-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0.9rem;
	right: 0.9rem;
	bottom: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--riseo-grad);
}
.riseo-header .wp-block-navigation-item__content { position: relative; }
.riseo-header .wp-block-navigation__submenu-container {
	background: rgba(20, 20, 26, 0.92) !important;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1px solid var(--riseo-line);
	border-radius: 18px;
	padding: 0.5rem;
	min-width: 260px;
	color: #fff;
}
.riseo-header .wp-block-navigation__submenu-container a:hover { color: #fff; }

.riseo-header__actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }

/* Language switcher (Polylang / WPML / TranslatePress aware) */
.riseo-lang {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	border-radius: 999px;
	padding: 3px;
	font-size: 0.85rem;
	position: relative;
}
.riseo-lang a {
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
	color: var(--riseo-ash);
	font-weight: 600;
	transition: color 0.3s;
}
.riseo-lang a:hover { color: #fff; }
.riseo-lang a.is-active { background: var(--riseo-grad); color: #fff; }

/* Header spacer so content is never hidden behind the fixed header */
.riseo-header-space { height: var(--riseo-header-h); }

/* ----------------------------------------------------------- HERO / PAGE */
.riseo-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(8rem, 6rem + 7vw, 11rem);
	padding-bottom: clamp(4rem, 3rem + 5vw, 7rem);
}
.riseo-hero__inner { position: relative; z-index: 2; }
.riseo-page-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(8rem, 6rem + 7vw, 11rem);
	padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	text-align: center;
}
.riseo-page-hero__inner { position: relative; z-index: 2; }

/* Floating hero dashboard (home) */
.riseo-hero-visual {
	position: relative;
	margin-inline: auto;
	height: 500px;
	width: 100%;
	max-width: 560px;
}
@media (min-width: 1024px) { .riseo-hero-visual { height: 560px; } }
.riseo-hero-visual__ring {
	position: absolute;
	inset-inline: 0;
	top: 50%;
	translate: 0 -50%;
	margin-inline: auto;
	height: 420px;
	width: 420px;
	border: 1px dashed rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	animation: riseo-spin 28s linear infinite;
}
.riseo-hero-visual__card {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 88%;
	padding: 1.5rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
@media (min-width: 640px) { .riseo-hero-visual__card { width: 78%; } }
.riseo-hero-visual__chart svg { width: 100%; overflow: visible; }
.riseo-hero-visual__bars { display: flex; align-items: flex-end; gap: 0.375rem; margin-top: 0.75rem; }
.riseo-hero-visual__bars i {
	flex: 1 1 0;
	border-radius: 3px 3px 0 0;
	display: block;
	transform-origin: bottom;
}
.riseo-hero-visual__float {
	position: absolute;
	padding: 1rem;
	box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.55);
	z-index: 3;
}
.riseo-hero-visual .riseo-maps { left: 0; top: 1.5rem; width: 210px; }
.riseo-hero-visual .riseo-ai { right: 0; bottom: 1.5rem; width: 230px; }
.riseo-hero-visual .riseo-rank { right: 1rem; top: 0.5rem; border-radius: 999px !important; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; }
@media (min-width: 640px) {
	.riseo-hero-visual .riseo-maps { left: -1rem; }
	.riseo-hero-visual .riseo-ai { right: -1rem; }
}

/* Hero stat / avatar cluster */
.riseo-avatars { display: flex; }
.riseo-avatars img {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 2px solid var(--riseo-bg);
	object-fit: cover;
	margin-left: -12px;
}
.riseo-avatars img:first-child { margin-left: 0; }
.riseo-stars { display: inline-flex; gap: 2px; color: var(--riseo-crimson-hi); }
.riseo-stars svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------------- STATS */
.riseo-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--riseo-line);
	border-radius: 1.75rem;
	overflow: hidden;
}
@media (min-width: 1024px) { .riseo-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.riseo-stats > * { background: var(--riseo-surface); }
.riseo-stat {
	padding: 2rem 1.25rem;
	text-align: center;
}
@media (min-width: 768px) { .riseo-stat { padding: 2.5rem 1.5rem; } }
.riseo-stat__value {
	font-family: var(--ff-display);
	font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
	font-weight: 700;
	line-height: 1;
}
.riseo-stat__label { margin-top: 0.6rem; color: var(--riseo-ash); font-size: 0.9rem; }
@media (min-width: 768px) { .riseo-stat__label { font-size: 1rem; } }

/* ------------------------------------------------------------ MARQUEE */
.riseo-marquee {
	display: flex;
	overflow: hidden;
	align-items: center;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.riseo-marquee__track {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 2.5rem;
	padding-right: 2.5rem;
	animation: riseo-marquee var(--riseo-speed, 40s) linear infinite;
}
.riseo-marquee:hover .riseo-marquee__track { animation-play-state: paused; }
.riseo-marquee.is-reverse .riseo-marquee__track { animation-direction: reverse; }

.riseo-marquee__word {
	margin: 0;
	white-space: nowrap;
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.riseo-marquee__word::after {
	content: "\2726";
	display: inline-block;
	margin-left: 2.5rem;
	color: var(--riseo-crimson);
	font-size: 1.9rem;
	vertical-align: 0.12em;
}
.riseo-marquee__word.is-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

.riseo-marquee__chip {
	margin: 0;
	white-space: nowrap;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 999px;
	padding: 0.6rem 1.4rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--riseo-ash);
}

.riseo-marquee--border {
	border-block: 1px solid var(--riseo-line);
	background: rgba(20, 20, 26, 0.6);
	padding-block: 1.75rem;
}

/* ------------------------------------------------------ BENTO / GRID  */
.riseo-grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .riseo-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .riseo-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.riseo-grid-3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .riseo-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .riseo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.riseo-grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .riseo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.riseo-grid-6 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .riseo-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .riseo-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Service / feature card */
.riseo-tile {
	padding: 1.75rem;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.riseo-tile__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.riseo-tile__num { font-family: var(--ff-display); font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.25); }
.riseo-tile__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--riseo-crimson-hi);
	padding-top: 1.5rem;
	transition: gap 0.3s, color 0.3s;
}
.riseo-card--hover:hover .riseo-tile__link,
a:hover .riseo-tile__link { gap: 0.85rem; color: #fff; }
.riseo-tile__icon { transition: transform 0.5s; }
a:hover .riseo-tile__icon { transform: scale(1.1) rotate(-6deg); }

/* Gradient CTA tile */
.riseo-tile--grad {
	background: var(--riseo-grad);
	border: 0;
	border-radius: var(--riseo-radius);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 280px;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.riseo-tile--grad > * { position: relative; z-index: 2; }

/* ------------------------------------------------------------ WHY / LIST */
.riseo-feature-list { display: grid; gap: 1.5rem; }
.riseo-feature {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

/* -------------------------------------------------------------- PROCESS */
.riseo-stack-card { position: sticky; top: calc(96px + var(--i, 0) * 22px); }
.riseo-proc {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--riseo-line);
	background: var(--riseo-surface);
	border-radius: 1.75rem;
	padding: 2rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	background-image: linear-gradient(135deg, rgba(230, 26, 66, 0.08), transparent 50%);
}
@media (min-width: 768px) { .riseo-proc { padding: 2.5rem; } }
.riseo-proc__ghost {
	position: absolute;
	right: -0.75rem;
	top: -2rem;
	font-family: var(--ff-display);
	font-size: 9rem;
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, 0.04);
	user-select: none;
	pointer-events: none;
}
.riseo-proc__bullets { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .riseo-proc__bullets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.riseo-proc__bullets li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.93rem; }
.riseo-check {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--riseo-grad);
	flex: 0 0 auto;
	margin-top: 0.25rem;
	color: #fff;
}
.riseo-check svg { width: 12px; height: 12px; }

/* Timeline (service process) */
.riseo-timeline { position: relative; display: grid; gap: 2rem; }
.riseo-timeline::before {
	content: "";
	position: absolute;
	left: 26px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, #e61a42 15%, #e61a42 85%, transparent);
	opacity: 0.45;
	display: none;
}
@media (min-width: 782px) { .riseo-timeline::before { display: block; } }
@media (min-width: 1024px) { .riseo-timeline::before { left: 50%; } }
.riseo-timeline__item { position: relative; }
@media (min-width: 782px) { .riseo-timeline__item { padding-left: 5rem; } }
@media (min-width: 1024px) { .riseo-timeline__item { padding-left: 0; } }
.riseo-timeline__dot {
	position: absolute;
	left: 0;
	top: 1.5rem;
	z-index: 2;
	display: none;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	border: 4px solid var(--riseo-bg);
	background: var(--riseo-grad);
	box-shadow: var(--riseo-glow);
	font-family: var(--ff-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}
@media (min-width: 782px) { .riseo-timeline__dot { display: grid; } }
@media (min-width: 1024px) { .riseo-timeline__dot { left: 50%; transform: translateX(-50%); } }
@media (min-width: 1024px) {
	.riseo-timeline__body { width: calc(50% - 3rem); }
	.riseo-timeline__item.is-right .riseo-timeline__body { margin-left: auto; }
}

/* ---------------------------------------------------------- TESTIMONIALS */
.riseo-tst {
	position: relative;
	margin-inline: auto;
	max-width: 64rem;
	overflow: hidden;
	border-radius: 2rem;
	padding: 2rem;
}
@media (min-width: 768px) { .riseo-tst { padding: 3.5rem; } }
.riseo-tst__quote-mark {
	position: absolute;
	right: 2rem;
	top: 2rem;
	color: rgba(230, 26, 66, 0.25);
	pointer-events: none;
}
.riseo-tst__quote-mark svg { width: 120px; height: 120px; }
.riseo-tst__inner { position: relative; display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .riseo-tst__inner { grid-template-columns: auto 1fr; } }
.riseo-tst__avatar-wrap { position: relative; margin-inline: auto; text-align: center; }
@media (min-width: 768px) { .riseo-tst__avatar-wrap { margin-inline: 0; } }
.riseo-tst__avatar {
	position: relative;
	width: 112px;
	height: 112px;
	border-radius: 999px;
	border: 4px solid var(--riseo-bg);
	object-fit: cover;
}
@media (min-width: 768px) { .riseo-tst__avatar { width: 144px; height: 144px; } }
.riseo-tst__avatar-ring {
	position: absolute;
	inset: -6px;
	border-radius: 999px;
	background: var(--riseo-grad);
	filter: blur(2px);
	opacity: 0.9;
}
.riseo-tst__text {
	margin-top: 1.25rem;
	font-family: var(--ff-display);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.6;
	color: #fff;
}
@media (min-width: 768px) { .riseo-tst__text { font-size: 1.6rem; line-height: 1.55; } }
.riseo-slide { display: none; }
.riseo-slide.is-active { display: block; animation: riseo-fade-up 0.7s ease; }
.riseo-tst__dots { display: flex; gap: 0.5rem; }
.riseo-tst__dot {
	height: 8px;
	width: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: all 0.5s;
}
.riseo-tst__dot.is-active { width: 36px; background: var(--riseo-grad); }
.riseo-tst__nav { display: flex; gap: 0.5rem; }
.riseo-tst__nav button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: border-color 0.3s, background 0.3s;
}
.riseo-tst__nav button:hover { border-color: var(--riseo-crimson); background: rgba(230, 26, 66, 0.1); }

.riseo-review-mini {
	background: var(--riseo-surface);
	border: 1px solid var(--riseo-line);
	border-radius: var(--riseo-radius);
	padding: 1.5rem;
	width: 340px;
	flex: 0 0 auto;
}
.riseo-review-mini img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }

/* ------------------------------------------------------------------- FAQ */
.riseo-faq { display: grid; gap: 0.75rem; }
.riseo-faq .wp-block-details {
	background: var(--riseo-surface);
	border: 1px solid var(--riseo-line);
	border-radius: var(--riseo-radius);
	overflow: hidden;
	transition: border-color 0.3s;
	padding: 0;
}
.riseo-faq .wp-block-details[open] { border-color: rgba(230, 26, 66, 0.5); }
.riseo-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--ff-display);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}
@media (min-width: 768px) { .riseo-faq .wp-block-details summary { padding: 1.5rem; font-size: 1.15rem; } }
.riseo-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.riseo-faq .wp-block-details summary::marker { content: ""; }
.riseo-faq__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--riseo-ash);
	transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.riseo-faq__icon svg { width: 18px; height: 18px; }
.riseo-faq .wp-block-details[open] .riseo-faq__icon {
	transform: rotate(180deg);
	background: var(--riseo-grad);
	border-color: transparent;
	color: #fff;
}
.riseo-faq .wp-block-details > div:not(summary) {
	padding: 0 1.25rem 1.5rem;
	color: var(--riseo-ash);
}
@media (min-width: 768px) { .riseo-faq .wp-block-details > div:not(summary) { padding: 0 1.5rem 1.5rem; } }

/* ------------------------------------------------------------- CTA BAND */
.riseo-cta {
	position: relative;
	overflow: hidden;
	border-radius: 2.2rem;
	padding: 2.5rem 1.5rem;
	text-align: center;
	background: var(--riseo-grad);
}
@media (min-width: 768px) { .riseo-cta { padding: 5rem 3rem; } }
.riseo-cta__sheen {
	position: absolute;
	inset: 0;
	opacity: 0.3;
	pointer-events: none;
	background-image: radial-gradient(circle at 20% 20%, #fff 0, transparent 40%),
		radial-gradient(circle at 85% 90%, #000 0, transparent 45%);
}
.riseo-cta__ring {
	position: absolute;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	pointer-events: none;
	animation: riseo-spin 28s linear infinite;
}
.riseo-cta .wp-block-heading,
.riseo-cta p { color: #fff; }
.riseo-cta p { color: rgba(255, 255, 255, 0.85); }

/* ----------------------------------------------------------------- FORM */
.riseo-form { display: block; }
.riseo-form__grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .riseo-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.riseo-form label { display: block; }
.riseo-form__label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: #fff; }
.riseo-field {
	width: 100%;
	background: #0f0f14;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 0.95rem 1.1rem;
	color: #fff;
	font-family: var(--ff-body);
	font-size: 0.98rem;
	line-height: 1.5;
	transition: border-color 0.3s, box-shadow 0.3s;
	outline: none;
}
.riseo-field::placeholder { color: #6b6b73; }
.riseo-field:focus { border-color: var(--riseo-crimson); box-shadow: 0 0 0 4px rgba(230, 26, 66, 0.15); }
textarea.riseo-field { min-height: 140px; resize: vertical; }
select.riseo-field {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B5' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}
select.riseo-field option { background: #14141a; color: #fff; }
.riseo-form__consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--riseo-ash); cursor: pointer; }
.riseo-form__consent input { margin-top: 0.25rem; accent-color: var(--riseo-crimson); width: 16px; height: 16px; }
.riseo-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.riseo-form__msg {
	display: none;
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	font-size: 0.95rem;
}
.riseo-form__msg.is-visible { display: block; }
.riseo-form__msg.is-error { background: rgba(230, 26, 66, 0.12); border: 1px solid rgba(230, 26, 66, 0.4); color: #ff8fa3; }
.riseo-form__msg.is-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.riseo-form.is-busy { opacity: 0.6; pointer-events: none; }
.riseo-form__submit.is-loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 0.6rem;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 999px;
	animation: riseo-spin 0.7s linear infinite;
	vertical-align: -2px;
}

/* Contact Form 7 / Fluent Forms / WPForms inherit the theme look */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select,
.wpcf7-form .wpcf7-text,
.fluentform .ff-el-form-control,
.wpforms-form input:not([type="submit"]),
.wpforms-form textarea,
.wpforms-form select {
	width: 100%;
	background: #0f0f14;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 0.95rem 1.1rem;
	color: #fff;
	font-family: var(--ff-body);
	font-size: 0.98rem;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
.fluentform .ff-el-form-control:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus {
	border-color: var(--riseo-crimson);
	box-shadow: 0 0 0 4px rgba(230, 26, 66, 0.15);
	outline: none;
}
.wpcf7-form input[type="submit"],
.fluentform .ff-btn-submit,
.wpforms-form .wpforms-submit {
	background: var(--riseo-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 1.7rem;
	font-family: var(--ff-body);
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--riseo-glow);
	transition: transform 0.3s;
}
.wpcf7-form input[type="submit"]:hover,
.fluentform .ff-btn-submit:hover,
.wpforms-form .wpforms-submit:hover { transform: translateY(-2px); }
.wpcf7 form .wpcf7-response-output { border-radius: 14px; color: #fff; }

/* ---------------------------------------------------------------- FOOTER */
.riseo-footer {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--riseo-line);
	background: var(--riseo-bg-deep);
}
.riseo-footer__inner { position: relative; padding-top: 5rem; padding-bottom: 2.5rem; }
.riseo-footer__cols { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .riseo-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.riseo-footer h2,
.riseo-footer h3,
.riseo-footer h4 { margin: 0 0 1.25rem; font-size: 1.05rem; }
.riseo-footer ul { list-style: none; margin: 0; padding: 0; }
.riseo-footer li { margin-bottom: 0.75rem; }
.riseo-footer li a { color: var(--riseo-ash); font-size: 0.95rem; transition: color 0.3s; }
.riseo-footer li a:hover { color: #fff; }
.riseo-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.riseo-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--riseo-ash);
	transition: all 0.3s;
}
.riseo-social a:hover { transform: translateY(-4px); border-color: var(--riseo-crimson); background: rgba(230, 26, 66, 0.1); color: #fff; }
.riseo-social svg { width: 17px; height: 17px; fill: currentColor; }
.riseo-footer .wp-block-social-links { gap: 0.75rem; margin: 1.5rem 0 0; }
.riseo-footer .wp-block-social-links .wp-block-social-link__anchor {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: var(--riseo-ash);
	transition: all 0.3s;
}
.riseo-footer .wp-block-social-links .wp-block-social-link__anchor:hover {
	transform: translateY(-4px);
	border-color: var(--riseo-crimson);
	background: rgba(230, 26, 66, 0.1);
	color: #fff;
}
.riseo-wordmark {
	margin-top: 4rem;
	text-align: center;
	font-family: var(--ff-display);
	font-weight: 700;
	line-height: 0.8;
	letter-spacing: -0.05em;
	pointer-events: none;
	user-select: none;
	font-size: clamp(4rem, 17vw, 15rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.riseo-footer__bar {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-top: 1px solid var(--riseo-line);
	padding-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--riseo-steel);
}
@media (min-width: 768px) { .riseo-footer__bar { flex-direction: row; } }
.riseo-footer__bar a { color: var(--riseo-steel); }
.riseo-footer__bar a:hover { color: #fff; }

/* --------------------------------------------------------- SCROLL REVEAL */
.riseo-reveal {
	opacity: 0;
	transform: translate3d(0, 36px, 0);
	transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
	transition-delay: var(--riseo-d, 0ms);
	will-change: opacity, transform;
}
.riseo-reveal[data-anim="left"] { transform: translate3d(-48px, 0, 0); }
.riseo-reveal[data-anim="right"] { transform: translate3d(48px, 0, 0); }
.riseo-reveal[data-anim="zoom"] { transform: scale(0.92); }
.riseo-reveal[data-anim="blur"] { filter: blur(12px); transition-property: opacity, transform, filter; }
.riseo-reveal.is-in { opacity: 1; transform: none; filter: none; }

/* No-JS safety net: never hide content */
.no-js .riseo-reveal { opacity: 1; transform: none; filter: none; }

/* -------------------------------------------------------------- ANIMATION */
@keyframes riseo-marquee { to { transform: translateX(-100%); } }
@keyframes riseo-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes riseo-spin { to { transform: rotate(360deg); } }
@keyframes riseo-pulse-ring { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes riseo-draw-line { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes riseo-bar-grow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }

.riseo-float { animation: riseo-float 6s ease-in-out infinite; }
.riseo-float-slow { animation: riseo-float 8s ease-in-out infinite; animation-delay: -2s; }
.riseo-spin-slow { animation: riseo-spin 28s linear infinite; }
.riseo-pulse-ring { animation: riseo-pulse-ring 2.2s ease-out infinite; }
.riseo-draw-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: riseo-draw-line 2.4s 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
.riseo-bar-grow { transform-origin: bottom; animation: riseo-bar-grow 0.9s both cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.riseo-reveal { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 781px) {
	.riseo-header__nav { display: none; }
}
@media (min-width: 782px) {
	.riseo-header .wp-block-navigation__responsive-container-open { display: none; }
}

/* Core columns gap defaults */
.wp-block-columns { gap: 1.25rem; }
@media (min-width: 782px) { .wp-block-columns { gap: 2rem; } }

/* Editor niceties: constrain images */
.riseo-avatar { border-radius: 999px; object-fit: cover; }
.wp-block-image img { border-radius: 14px; }
.wp-block-image.is-style-rounded img { border-radius: 999px; }

/* Screen reader */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Comments / blog defaults inside content */
.riseo-entry a { color: var(--riseo-crimson-hi); text-decoration: underline; text-underline-offset: 3px; }
.riseo-entry .wp-block-quote { border-left: 3px solid var(--riseo-crimson); }
.comment-form input,
.comment-form textarea { .riseo-field; }
.comment-form .submit {
	background: var(--riseo-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.6rem;
	font-weight: 600;
	cursor: pointer;
}
.posts-navigation a,
.pagination a,
.wp-block-query-pagination a {
	border: 1px solid var(--riseo-line);
	border-radius: 999px;
	padding: 0.5rem 1.1rem;
	color: var(--riseo-ash);
}
.posts-navigation a:hover,
.pagination a:hover,
.wp-block-query-pagination a:hover { border-color: var(--riseo-crimson); color: #fff; }

/* =========================================================================
   Decorative layers as pseudo-elements
   -------------------------------------------------------------------------
   Keeps the block markup clean: no empty "decoration" blocks that clutter
   the editor or that a client could accidentally delete. Just add the class
   to a section group in the editor.
   ========================================================================= */

.riseo-hero,
.riseo-page-hero,
.riseo-service-hero,
.riseo-has-grid {
	position: relative;
	overflow: hidden;
}
.riseo-hero::before,
.riseo-page-hero::before,
.riseo-service-hero::before,
.riseo-has-grid::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* Crimson glow orb */
.riseo-hero::after,
.riseo-page-hero::after,
.riseo-service-hero::after,
.riseo-has-orb::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -160px;
	transform: translateX(-50%);
	width: 760px;
	height: 480px;
	max-width: 130%;
	border-radius: 999px;
	filter: blur(90px);
	z-index: 0;
	pointer-events: none;
	opacity: 0.55;
	background: radial-gradient(circle, rgba(230, 26, 66, 0.55), transparent 70%);
}
.riseo-service-hero::after { left: auto; right: -160px; top: 20px; transform: none; opacity: 0.5; }
.riseo-footer::after {
	content: "";
	position: absolute;
	bottom: -240px;
	left: 50%;
	transform: translateX(-50%);
	width: 700px;
	height: 420px;
	border-radius: 999px;
	filter: blur(90px);
	z-index: 0;
	pointer-events: none;
	opacity: 0.4;
	background: radial-gradient(circle, rgba(230, 26, 66, 0.55), transparent 70%);
}

/* CTA band: sheen + rotating ring (no extra markup needed) */
.riseo-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.3;
	pointer-events: none;
	background-image: radial-gradient(circle at 20% 20%, #fff 0, transparent 40%),
		radial-gradient(circle at 85% 90%, #000 0, transparent 45%);
}
.riseo-cta::after {
	content: "";
	position: absolute;
	right: -6rem;
	top: -6rem;
	width: 18rem;
	height: 18rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	pointer-events: none;
	animation: riseo-spin 28s linear infinite;
}

/* Hero artwork */
.riseo-hero-art { margin: 0 auto; width: 100%; max-width: 560px; }
.riseo-hero-art img { width: 100%; height: auto; border-radius: 0; background: transparent; }

/* Tinted section variants usable straight from the editor */
.riseo-section--tint { background: rgba(20, 20, 26, 0.4); }

/* Avatar clusters: no gap so the cards overlap like the design */
.riseo-avatars { gap: 0 !important; }
.riseo-hero__cols { gap: 3rem !important; align-items: center; }
.riseo-valign-center { align-items: center; }

/* Plain inline icon (no chip) — for use on coloured panels */
.wp-block-image.riseo-icon-plain {
	width: auto;
	height: auto;
	margin: 0;
	display: block;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}
.wp-block-image.riseo-icon-plain img {
	width: 28px;
	height: 28px;
	margin: 0;
	filter: brightness(0) invert(1);
}

/* Sticky process column */
.riseo-process-cols { align-items: start !important; }
@media (min-width: 782px) {
	.riseo-process-sticky { position: sticky; top: 8rem; }
	.riseo-stack-wrap { padding-bottom: 2.5rem; }
}
.riseo-proc__ghost {
	position: absolute;
	right: -0.75rem;
	top: -2rem;
	margin: 0;
	font-family: var(--ff-display);
	font-size: 9rem;
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, 0.04);
	user-select: none;
	pointer-events: none;
}
.riseo-stack-card { position: relative; z-index: 1; }

/* Slider controls (injected by JS) */
.riseo-tst-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
	z-index: 2;
	margin-top: 2.5rem;
}
.riseo-tst__dots { display: flex; gap: 0.5rem; }

/* Decorative quote glyph + gradient avatar ring (no extra markup) */
.riseo-tst::before {
	content: "\\201D";
	position: absolute;
	right: 1.5rem;
	top: -1rem;
	font-family: var(--ff-display);
	font-size: 13rem;
	line-height: 1;
	font-weight: 700;
	color: rgba(230, 26, 66, 0.22);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.wp-block-image.riseo-tst__avatar {
	background: var(--riseo-grad);
	border-radius: 999px;
	padding: 4px;
	line-height: 0;
	width: 152px;
}
.wp-block-image.riseo-tst__avatar img {
	border-radius: 999px;
	border: 4px solid var(--riseo-bg);
	width: 144px;
	height: 144px;
}

/* ============================================================= TEMPLATES */
/* The header is fixed, so page content needs a matching top offset — except
   when a page opens with a full-bleed hero, which carries its own padding. */
.riseo-main { padding-top: calc(var(--riseo-header-h) + 1.5rem); }
/* Both shapes are listed because core/post-content may or may not add its own
   wrapper element around the page's blocks. */
.riseo-main:has(> .riseo-hero:first-child),
.riseo-main:has(> .wp-block-post-content > .riseo-hero:first-child),
.riseo-main:has(> .entry-content > .riseo-hero:first-child),
.riseo-main:has(> .riseo-page-hero:first-child),
.riseo-main:has(> .wp-block-post-content > .riseo-page-hero:first-child),
.riseo-main:has(> .entry-content > .riseo-page-hero:first-child),
.riseo-main:has(> .riseo-service-hero:first-child),
.riseo-main:has(> .wp-block-post-content > .riseo-service-hero:first-child),
.riseo-main:has(> .entry-content > .riseo-service-hero:first-child) { padding-top: 0; }

.riseo-main--article { padding-top: calc(var(--riseo-header-h) + 2.5rem); }
.riseo-main--landing .riseo-section,
.riseo-main--wide .riseo-section { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* Contact page columns */
.riseo-contact-cols { gap: 1.5rem; }
.riseo-contact-info { display: grid; gap: 1rem; }
@media (max-width: 781px) {
	.riseo-contact-cols { gap: 2rem; }
}

/* Service rows (Services page) */
.riseo-service-row { overflow: hidden; }
.riseo-service-row .riseo-row__num { margin: 0; line-height: 1; }
.riseo-service-row a { text-decoration: none; }
.riseo-service-row h2 a { color: inherit; }
.riseo-service-row h2 a:hover { color: var(--riseo-crimson-hi); }
@media (max-width: 781px) {
	.riseo-service-row .wp-block-columns { flex-direction: row; flex-wrap: wrap; }
	.riseo-service-row .wp-block-column { flex-basis: 100% !important; }
	.riseo-service-row .riseo-row__num { font-size: 2rem !important; }
}

/* About page story image */
.riseo-story-img img { border-radius: 24px; }

/* Team member photo */
.riseo-member__photo { margin: 0; }
.riseo-member__photo img { display: block; width: 100%; height: 260px; object-fit: cover; }

/* Wide glass panel width helper */
.riseo-container--wide { width: min(100% - 2rem, 900px); margin-inline: auto; }

/* Language switcher (Polylang / WPML) */
.riseo-lang { display: flex; gap: 0.25rem; }
.riseo-lang__link {
	padding: 0.3rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--riseo-ash);
	text-decoration: none;
	transition: all 0.3s;
}
.riseo-lang__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.riseo-lang__link.is-active { color: #fff; background: var(--riseo-grad); }
.riseo-lang--wpml { margin-right: 0.5rem; }
