/* Cinematic hero stage — WhatsApp mockup + 3D effects */

.rf-hero-stage {
	--wa-dark: #075e54;
	--wa-mid: #128c7e;
	--wa-green: #25d366;
	--chat-bg: #efe7dd;
	--bot-bubble: #dcf8c6;
	--client-bubble: #ffffff;

	position: relative;
	min-height: clamp(380px, 52vw, 520px);
	display: grid;
	place-items: center;
	perspective: 1200px;
	isolation: isolate;
}

.rf-hero-canvas {
	width: 100%;
	max-width: 520px;
	aspect-ratio: 4 / 5;
	position: relative;
	display: grid;
	place-items: center;
	margin-inline: auto;
}

.rf-hero-glow {
	position: absolute;
	width: 72%;
	aspect-ratio: 1;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(37, 211, 102, 0.28) 0%,
		rgba(124, 58, 237, 0.14) 42%,
		transparent 68%
	);
	filter: blur(20px);
	z-index: 0;
	animation: rf-hero-glow-pulse 4s ease-in-out infinite;
	transition: opacity 0.45s ease, transform 0.5s ease;
}

.rf-hero.is-switching .rf-hero-glow {
	opacity: 0.5;
	transform: translate(-50%, -50%) scale(1.04);
}

.rf-hero-blob {
	position: absolute;
	width: min(62%, 320px);
	aspect-ratio: 1;
	border-radius: 44% 56% 62% 38% / 45% 46% 54% 55%;
	background-image: var(--rf-msg-icon);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 1;
	opacity: 0.55;
	filter: drop-shadow(0 24px 48px rgba(37, 211, 102, 0.3));
	animation: rf-hero-blob-morph 9s ease-in-out infinite;
	pointer-events: none;
}

.rf-hero-ring {
	position: absolute;
	width: 72%;
	aspect-ratio: 1;
	border: 2px solid rgba(37, 211, 102, 0.14);
	border-radius: 50%;
	z-index: 0;
	animation: rf-hero-ring-spin 18s linear infinite;
}

.rf-hero-ring::before {
	content: "";
	position: absolute;
	inset: 28px;
	border-radius: 50%;
	border: 1px dashed rgba(239, 186, 96, 0.2);
}

.rf-hero-spark {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wa-green);
	box-shadow: 0 0 22px 8px rgba(37, 211, 102, 0.35);
	z-index: 1;
	animation: rf-hero-sparkle 3s ease-in-out infinite;
}

.rf-hero-spark--1 { left: 18%; top: 12%; animation-delay: 0.2s; }
.rf-hero-spark--2 { right: 16%; top: 14%; animation-delay: 1s; }
.rf-hero-spark--3 { left: 20%; bottom: 14%; animation-delay: 1.7s; }
.rf-hero-spark--4 { right: 22%; bottom: 10%; animation-delay: 2.2s; }

.rf-hero-float {
	position: absolute;
	display: grid;
	place-items: center;
	border-radius: 30px;
	font-weight: 900;
	color: white;
	box-shadow: 0 28px 40px rgba(0, 0, 0, 0.22), inset 0 3px 8px rgba(255, 255, 255, 0.35);
	z-index: 2;
	user-select: none;
	animation: rf-hero-icon-enter 0.8s ease forwards, rf-hero-icon-float 4.8s ease-in-out infinite 1s;
}

.rf-hero-float--wa {
	background-color: #25d366;
	background-image: var(--rf-msg-icon), linear-gradient(145deg, #42f785, #1bb45c 55%, #07954b);
	background-size: 62%, cover;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: clamp(22px, 4vw, 30px);
	box-shadow:
		0 20px 40px rgba(37, 211, 102, 0.35),
		inset 0 4px 12px rgba(255, 255, 255, 0.35);
}

.rf-hero-float--lg {
	width: clamp(64px, 11vw, 88px);
	height: clamp(64px, 11vw, 88px);
	left: 0;
	top: 14%;
	animation-delay: 0s, 1s;
}

.rf-hero-floats-model {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transform: scale(0.92);
	transition:
		opacity 0.45s ease,
		transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rf-hero-stage[data-rf-model="services"] .rf-hero-floats-model[data-rf-floats="services"],
.rf-hero-stage[data-rf-model="ecommerce"] .rf-hero-floats-model[data-rf-floats="ecommerce"],
.rf-hero-stage[data-rf-model="rentals"] .rf-hero-floats-model[data-rf-floats="rentals"] {
	opacity: 1;
	transform: scale(1);
}

.rf-hero.is-switching .rf-hero-floats-model {
	opacity: 0;
	transform: scale(0.88);
}

.rf-hero.is-switching .rf-hero-stage[data-rf-model] .rf-hero-floats-model[data-rf-floats] {
	opacity: 0;
}

.rf-hero:not(.is-switching) .rf-hero-stage[data-rf-model="services"] .rf-hero-floats-model[data-rf-floats="services"],
.rf-hero:not(.is-switching) .rf-hero-stage[data-rf-model="ecommerce"] .rf-hero-floats-model[data-rf-floats="ecommerce"],
.rf-hero:not(.is-switching) .rf-hero-stage[data-rf-model="rentals"] .rf-hero-floats-model[data-rf-floats="rentals"] {
	opacity: 1;
	transform: scale(1);
}

.rf-hero-float--feat {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(230, 230, 235, 0.88));
	color: #0a0118;
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.2),
		inset 0 3px 8px rgba(255, 255, 255, 0.65);
	border-radius: clamp(18px, 3vw, 24px);
}

.rf-hero-float__glyph {
	font-size: clamp(22px, 3.6vw, 30px);
	line-height: 1;
}

.rf-hero-float--pos-tr {
	width: clamp(52px, 9vw, 68px);
	height: clamp(52px, 9vw, 68px);
	right: 2%;
	top: 18%;
	animation-delay: 0.15s, 1.15s;
}

.rf-hero-float--pos-br {
	width: clamp(56px, 9vw, 74px);
	height: clamp(56px, 9vw, 74px);
	right: 8%;
	bottom: 18%;
	animation-delay: 0.35s, 1.35s;
}

.rf-hero-float--pos-bl {
	width: clamp(48px, 8vw, 62px);
	height: clamp(48px, 8vw, 62px);
	left: 6%;
	bottom: 16%;
	animation-delay: 0.25s, 1.25s;
}

.rf-hero-phone-wrap {
	position: relative;
	width: clamp(260px, 78%, 340px);
	filter: drop-shadow(0 42px 44px rgba(0, 0, 0, 0.38));
	transform-style: preserve-3d;
	z-index: 6;
	animation: rf-hero-phone-enter 1.1s ease both, rf-hero-phone-float 5.5s ease-in-out 1.1s infinite;
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.rf-hero.is-switching .rf-hero-phone-wrap {
	transform: scale(0.97) translateY(4px);
	filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.32));
}

.rf-hero-phone {
	position: relative;
	aspect-ratio: 9 / 18.5;
	background: linear-gradient(145deg, #1f222b, #07080b 52%, #17191f);
	border-radius: clamp(34px, 5vw, 44px);
	padding: clamp(8px, 1.5vw, 12px);
	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.08),
		inset -8px -8px 18px rgba(255, 255, 255, 0.04),
		inset 9px 9px 18px rgba(0, 0, 0, 0.78);
}

.rf-hero-phone__notch {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 36%;
	height: 24px;
	background: #050506;
	border-radius: 0 0 18px 18px;
	z-index: 9;
}

.rf-hero-phone__screen {
	height: 100%;
	border-radius: clamp(26px, 4vw, 34px);
	overflow: hidden;
	background: var(--chat-bg);
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
}

.rf-hero-phone__status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 14px 2px;
	font-size: 0.625rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	background: #0b141a;
	position: relative;
	z-index: 6;
}

.rf-hero-phone__status-icons {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.rf-hero-icon-signal,
.rf-hero-icon-wifi,
.rf-hero-icon-battery {
	display: inline-block;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 1px;
}

.rf-hero-icon-signal {
	width: 14px;
	height: 8px;
	clip-path: polygon(0 100%, 25% 60%, 50% 80%, 75% 40%, 100% 70%, 100% 100%);
}

.rf-hero-icon-wifi {
	width: 10px;
	height: 8px;
	border-radius: 50% 50% 0 0;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-bottom: none;
	background: transparent;
}

.rf-hero-icon-battery {
	width: 16px;
	height: 8px;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 2px;
	position: relative;
}

.rf-hero-icon-battery::after {
	content: "";
	position: absolute;
	right: -3px;
	top: 2px;
	width: 2px;
	height: 4px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 0 1px 1px 0;
}

.rf-hero-icon-battery::before {
	content: "";
	position: absolute;
	inset: 2px 4px 2px 2px;
	background: #25d366;
	border-radius: 1px;
}

.rf-hero-phone__shine {
	pointer-events: none;
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.14) 44%, transparent 53% 100%);
	transform: translateX(-120%);
	animation: rf-hero-shine 4.8s ease-in-out infinite 1.5s;
	z-index: 20;
}

.rf-hero-phone__topbar {
	height: clamp(56px, 8vw, 64px);
	background: linear-gradient(135deg, var(--wa-dark), var(--wa-mid));
	padding: 8px 12px 10px;
	color: white;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 5;
}

.rf-hero-phone__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 38%, #efc49d 0 19%, transparent 20%),
		radial-gradient(circle at 50% 28%, #2c1a12 0 27%, transparent 28%),
		linear-gradient(145deg, #637184, #202a33);
	border: 2px solid rgba(255, 255, 255, 0.75);
	flex-shrink: 0;
}

.rf-hero-phone__contact {
	flex: 1;
	line-height: 1.1;
	min-width: 0;
}

.rf-hero-phone__contact strong {
	display: block;
	font-size: 0.9375rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rf-hero-phone__contact span {
	font-size: 0.6875rem;
	opacity: 0.85;
}

.rf-hero-phone__contact span::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 4px;
	background: #25d366;
	border-radius: 50%;
	vertical-align: middle;
}

.rf-hero-phone__topbar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	opacity: 0.95;
}

.rf-hero-topbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	min-height: 28px;
	font-size: 1.25rem;
	line-height: 1;
	opacity: 0.95;
}

.rf-hero-topbar-btn--menu {
	font-size: 1.45rem;
	letter-spacing: 0.05em;
}

.rf-hero-phone__chat {
	flex: 1;
	min-height: 0;
	padding: 0;
	position: relative;
	overflow: hidden;
	background-color: var(--chat-bg);
	background-image:
		radial-gradient(circle at 20px 20px, rgba(7, 94, 84, 0.05) 0 2px, transparent 3px),
		radial-gradient(circle at 55px 48px, rgba(7, 94, 84, 0.045) 0 2px, transparent 3px);
	background-size: 76px 76px;
	pointer-events: none;
	touch-action: none;
	overscroll-behavior: none;
	user-select: none;
	-webkit-user-select: none;
}

.rf-hero-thread {
	display: none;
	flex-direction: column;
	position: absolute;
	inset: 0 0 52px;
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px) scale(0.985);
	transition:
		opacity 0.38s ease,
		transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rf-hero-thread.is-active,
.rf-hero-thread.is-entering {
	display: flex;
	opacity: 1;
	transform: translateY(0) scale(1);
}

.rf-hero-thread.is-leaving {
	display: flex;
	opacity: 0;
	transform: translateY(-8px) scale(0.98);
	pointer-events: none;
}

.rf-hero-thread__scroll {
	flex: 1;
	overflow-x: hidden;
	overflow-y: scroll;
	padding: 10px 10px 8px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	pointer-events: none;
	touch-action: none;
	overscroll-behavior: contain;
	user-select: none;
	-webkit-user-select: none;
	scroll-behavior: smooth;
}

.rf-hero-thread__scroll::-webkit-scrollbar {
	display: none;
}

.rf-hero-thread.is-playing .rf-hero-bubble,
.rf-hero-thread.is-playing .rf-hero-date,
.rf-hero-thread.is-playing .rf-hero-typing {
	animation: none;
	opacity: 0;
	transform: translateY(10px) scale(0.98);
}

.rf-hero-thread.is-playing .rf-hero-gallery,
.rf-hero-thread.is-playing .rf-hero-media,
.rf-hero-thread.is-playing .rf-hero-location {
	opacity: 1;
	transform: none;
}

.rf-hero-thread.is-playing .rf-hero-date { animation: rf-hero-pop-in 0.4s ease forwards 0.12s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d1 { animation: rf-hero-msg-left 0.42s ease forwards 0.45s; }
.rf-hero-thread.is-playing .rf-hero-typing--t1 { animation: rf-hero-typing-show 0.95s ease forwards 1s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d2 { animation: rf-hero-msg-right 0.42s ease forwards 1.65s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d3 { animation: rf-hero-msg-left 0.42s ease forwards 2.35s; }
.rf-hero-thread.is-playing .rf-hero-typing--t2 { animation: rf-hero-typing-show 0.95s ease forwards 2.95s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d4 { animation: rf-hero-msg-right 0.42s ease forwards 3.55s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d5 { animation: rf-hero-msg-left 0.42s ease forwards 4.35s; }
.rf-hero-thread.is-playing .rf-hero-typing--t3 { animation: rf-hero-typing-show 0.95s ease forwards 4.95s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d6 { animation: rf-hero-msg-right 0.42s ease forwards 5.55s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d7 { animation: rf-hero-msg-left 0.42s ease forwards 6.25s; }
.rf-hero-thread.is-playing .rf-hero-typing--t4 { animation: rf-hero-typing-show 0.95s ease forwards 6.85s; }
.rf-hero-thread.is-playing .rf-hero-bubble--d8 { animation: rf-hero-msg-right 0.42s ease forwards 7.45s; }

.rf-hero-date {
	margin: 0 auto 12px;
	width: fit-content;
	padding: 5px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.78);
	color: #606060;
	font-size: 0.625rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	opacity: 0;
}

.rf-hero-bubble {
	max-width: 88%;
	padding: 8px 10px 18px;
	border-radius: 14px;
	margin: 5px 0;
	font-size: 0.72rem;
	line-height: 1.38;
	position: relative;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
	color: #111;
	opacity: 0;
	transform: translateY(12px) scale(0.97);
}

.rf-hero-bubble__text {
	margin: 0 0 6px;
}

.rf-hero-bubble__text:last-of-type {
	margin-bottom: 0;
}

.rf-hero-link,
.rf-hero-bubble a {
	color: #027eb5;
	text-decoration: none;
	font-weight: 600;
}

.rf-hero-phone .rf-hero-link,
.rf-hero-phone .rf-hero-bubble a {
	pointer-events: none;
	cursor: default;
}

.rf-hero-link:hover,
.rf-hero-bubble a:hover {
	text-decoration: underline;
}

.rf-hero-phone .rf-hero-link:hover,
.rf-hero-phone .rf-hero-bubble a:hover {
	text-decoration: none;
}

.rf-hero-bubble--client {
	background: var(--client-bubble);
	border-top-left-radius: 4px;
	margin-right: auto;
}

.rf-hero-bubble--bot {
	background: var(--bot-bubble);
	border-top-right-radius: 4px;
	margin-left: auto;
}

.rf-hero-bubble__time {
	position: absolute;
	right: 8px;
	bottom: 3px;
	font-size: 0.5625rem;
	color: rgba(0, 0, 0, 0.45);
}

.rf-hero-media {
	display: block;
	width: auto;
	max-width: 118px;
	height: auto;
	border-radius: 8px;
	margin: 6px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.rf-hero-media--payment {
	aspect-ratio: 1;
	object-fit: cover;
}

.rf-hero-gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 6px 0 2px;
	max-width: 100%;
}

.rf-hero-gallery img {
	display: block;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.rf-hero-location {
	display: flex;
	gap: 8px;
	margin-top: 2px;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.5);
}

.rf-hero-location__map {
	flex: 0 0 72px;
	min-height: 72px;
	background:
		linear-gradient(180deg, rgba(7, 94, 84, 0.15), rgba(7, 94, 84, 0.35)),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect fill='%23c8e6c9' width='80' height='80'/%3E%3Cpath stroke='%23075E54' stroke-width='2' fill='none' d='M10 50 L30 30 L50 45 L70 20'/%3E%3Ccircle cx='48' cy='38' r='6' fill='%23EFBA60'/%3E%3C/svg%3E");
	background-size: cover;
	position: relative;
}

.rf-hero-location__map::after {
	content: "📍";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -55%);
	font-size: 1.25rem;
}

.rf-hero-location__body {
	padding: 8px 8px 8px 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.65rem;
	line-height: 1.35;
}

.rf-hero-location__body strong {
	font-size: 0.7rem;
	color: #111;
}

.rf-hero-location__body span {
	color: #444;
}

@keyframes rf-hero-media-in {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.rf-hero-typing {
	width: 62px;
	padding: 11px 12px;
	border-radius: 14px;
	border-top-right-radius: 4px;
	background: var(--bot-bubble);
	margin-left: auto;
	display: flex;
	justify-content: center;
	gap: 4px;
	opacity: 0;
	transform: translateY(14px) scale(0.96);
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.rf-hero-typing span {
	width: 5px;
	height: 5px;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	animation: rf-hero-dot 1s infinite ease-in-out;
}

.rf-hero-typing span:nth-child(2) { animation-delay: 0.15s; }
.rf-hero-typing span:nth-child(3) { animation-delay: 0.3s; }

.rf-hero-composer {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 7px;
	z-index: 5;
}

.rf-hero-composer__input {
	flex: 1;
	background: white;
	border-radius: 20px;
	height: 38px;
	display: flex;
	align-items: center;
	padding: 0 12px;
	color: #777;
	font-size: 0.75rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rf-hero-composer__send {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--wa-dark);
	display: grid;
	place-items: center;
	color: white;
	font-size: 1.125rem;
	box-shadow: 0 6px 12px rgba(7, 94, 84, 0.28);
}

@keyframes rf-hero-glow-pulse {
	0%, 100% {
		opacity: 0.75;
		transform: translate(-50%, -50%) scale(0.96);
	}

	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.05);
	}
}

@keyframes rf-hero-blob-morph {
	0%, 100% { transform: rotate(0deg) scale(0.95); border-radius: 44% 56% 62% 38% / 45% 46% 54% 55%; }
	50% { transform: rotate(12deg) scale(1.05); border-radius: 58% 42% 39% 61% / 57% 43% 57% 43%; }
}

@keyframes rf-hero-ring-spin {
	to { transform: rotate(360deg); }
}

@keyframes rf-hero-sparkle {
	0%, 100% { opacity: 0.25; transform: scale(0.65); }
	50% { opacity: 1; transform: scale(1.2); }
}

@keyframes rf-hero-icon-enter {
	from { opacity: 0; transform: translateY(18px) scale(0.82); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rf-hero-icon-float {
	0%, 100% { transform: translateY(0) rotate(-6deg); }
	50% { transform: translateY(-14px) rotate(6deg); }
}

@keyframes rf-hero-phone-enter {
	from { opacity: 0; transform: rotateY(-32deg) rotateX(8deg) translateY(28px) scale(0.9); }
	to { opacity: 1; transform: rotateY(-10deg) rotateX(4deg) translateY(0) scale(1); }
}

@keyframes rf-hero-phone-float {
	0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
	50% { transform: rotateY(6deg) rotateX(2deg) translateY(-12px); }
}

@keyframes rf-hero-shine {
	0%, 58% { transform: translateX(-125%); }
	78%, 100% { transform: translateX(125%); }
}

@keyframes rf-hero-pop-in {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rf-hero-msg-left {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rf-hero-msg-right {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rf-hero-typing-show {
	0% { opacity: 0; transform: translateY(14px) scale(0.96); }
	22%, 78% { opacity: 1; transform: translateY(0) scale(1); }
	100% { opacity: 0; transform: translateY(0) scale(0.96); }
}

@keyframes rf-hero-dot {
	0%, 70%, 100% { transform: translateY(0); opacity: 0.35; }
	35% { transform: translateY(-4px); opacity: 1; }
}

@keyframes rf-hero-pill-in {
	to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes rf-hero-pill-pulse {
	0%, 100% { box-shadow: 0 12px 24px rgba(7, 94, 84, 0.28), 0 0 0 rgba(37, 211, 102, 0); }
	50% { box-shadow: 0 12px 24px rgba(7, 94, 84, 0.28), 0 0 20px rgba(37, 211, 102, 0.45); }
}

@media (max-width: 1024px) {
	.rf-hero-stage {
		min-height: clamp(324px, 79vw, 396px);
		overflow: visible;
		perspective: none;
	}

	.rf-hero-canvas {
		max-width: min(100%, 324px);
		width: 90%;
		overflow: visible;
		aspect-ratio: 4 / 5;
		transform: scale(0.9);
		transform-origin: top center;
		margin-inline: auto;
	}

	.rf-hero-glow,
	.rf-hero-blob,
	.rf-hero-ring,
	.rf-hero-spark,
	.rf-hero-float {
		opacity: 1;
	}

	.rf-hero-float--lg {
		left: 0;
		top: 8%;
	}

	.rf-hero-float--pos-tr {
		right: 0;
		top: 8%;
	}

	.rf-hero-float--pos-br {
		right: 4%;
		bottom: 10%;
	}

	.rf-hero-float--pos-bl {
		left: 4%;
		bottom: 10%;
	}

	.rf-hero-phone-wrap {
		width: min(70vw, 288px);
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.rf-hero-phone-wrap {
		width: min(74vw, 270px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rf-hero-phone-wrap,
	.rf-hero-float,
	.rf-hero-glow,
	.rf-hero-blob,
	.rf-hero-ring,
	.rf-hero-spark,
	.rf-hero-phone__shine,
	.rf-hero-phone-wrap {
		opacity: 1;
		transform: none;
	}

	.rf-hero-thread.is-playing .rf-hero-bubble,
	.rf-hero-thread.is-playing .rf-hero-date,
	.rf-hero-thread.is-active .rf-hero-bubble,
	.rf-hero-thread.is-active .rf-hero-date {
		opacity: 1;
		transform: none;
	}

	.rf-hero-typing { display: none; }
	.rf-hero-gallery,
	.rf-hero-gallery img,
	.rf-hero-media,
	.rf-hero-location {
		opacity: 1;
		transform: none;
	}
}
