/* =============================================================
   Site motion — the home hero's "living" language, site-wide.
   Everything here only applies once site-motion.js adds
   `sbr-motion` to <html>, so without JS, with reduced motion or on
   excluded pages (cart, checkout, account, brand panel) the content
   renders static and complete.
   ============================================================= */

/* ---- Living aura behind the first section (light backgrounds) ---- */
.sbr-aura-host { position: relative; isolation: isolate; }
.sbr-aura {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}
/* First section: lights on top, fading toward the content below. */
.sbr-aura--top {
	bottom: auto;
	height: min(720px, 100%);
	-webkit-mask-image: linear-gradient(#000 45%, transparent);
	        mask-image: linear-gradient(#000 45%, transparent);
}
/* Following sections: softer lights hugging one side, faded at the edges. */
.sbr-aura--left,
.sbr-aura--right {
	-webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
	        mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.sbr-aura::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 1px 1px, rgba(0, 29, 54, 0.08) 1px, transparent 0) 0 0 / 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	        mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.sbr-aura span {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.7;
	animation: sbr-drift 18s ease-in-out infinite alternate;
	animation-play-state: paused;
}
.sbr-aura.is-live span { animation-play-state: running; }

.sbr-aura--top span:nth-child(1) { width: 520px; height: 520px; left: 6%; top: -180px; background: #C2E6CE; }
.sbr-aura--top span:nth-child(2) { width: 460px; height: 460px; right: 4%; top: -100px; background: #D3E3F4; animation-duration: 22s; animation-delay: -6s; }
.sbr-aura--top span:nth-child(3) { width: 360px; height: 360px; left: 40%; top: 120px; background: #E7F3EA; animation-duration: 26s; animation-delay: -12s; }

.sbr-aura--left span,
.sbr-aura--right span { opacity: 0.75; }
.sbr-aura--left span:nth-child(1)  { width: 480px; height: 480px; left: -120px; top: 10%; background: #C2E6CE; }
.sbr-aura--left span:nth-child(2)  { width: 380px; height: 380px; right: -80px; bottom: 5%; background: #D3E3F4; animation-duration: 22s; animation-delay: -8s; }
.sbr-aura--left span:nth-child(3)  { width: 300px; height: 300px; left: 35%; top: 40%; background: #EEF6F0; animation-duration: 26s; animation-delay: -14s; }
.sbr-aura--right span:nth-child(1) { width: 480px; height: 480px; right: -120px; top: 5%; background: #C2E6CE; }
.sbr-aura--right span:nth-child(2) { width: 380px; height: 380px; left: -80px; bottom: 10%; background: #D3E3F4; animation-duration: 22s; animation-delay: -8s; }
.sbr-aura--right span:nth-child(3) { width: 300px; height: 300px; right: 30%; top: 35%; background: #EEF6F0; animation-duration: 26s; animation-delay: -14s; }

@keyframes sbr-drift {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	50%  { transform: translate3d(40px, 30px, 0) scale(1.08); }
	100% { transform: translate3d(-30px, 10px, 0) scale(0.95); }
}

/* ---- Reveal: blocks and staggered grid items ---- */
.sbr-motion .sbr-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--sbr-i, 0) * 80ms);
	will-change: opacity, transform;
}
.sbr-motion .sbr-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---- Headings: word-by-word blur-in ---- */
/* Word spans are an animation detail: page rules written for "h1 span"
   (meant for an accent word) must not restyle them, so they inherit
   everything from where they sit. */
.sbr-motion .sbr-split .sbr-w {
	color: inherit !important;
	-webkit-text-fill-color: inherit !important;
	background: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	box-shadow: none !important;
	display: inline-block !important;
	opacity: 0;
	transform: translateY(0.4em);
	filter: blur(6px);
}
.sbr-motion .sbr-split.is-in .sbr-w {
	opacity: 1;
	transform: none;
	filter: none;
	transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
	transition-delay: calc(var(--w, 0) * 55ms);
}
/* Intro paragraph waits for its title. */
.sbr-motion .sbr-reveal.sbr-after { transition-delay: var(--sbr-after, 0ms); }

@media (max-width: 640px) {
	.sbr-aura span:nth-child(1) { width: 300px; height: 300px; }
	.sbr-aura span:nth-child(2) { width: 260px; height: 260px; }
	.sbr-aura span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sbr-aura span { animation: none; }
}
