/* ============================================================
   LevelMob · Motion system
   Springy, layered, scroll-aware motion. Transforms/opacity only.
   ============================================================ */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}

/* ---------- Ambient page orbs ---------- */
@media (prefers-reduced-motion: no-preference) {
  .orb {
    will-change: transform;
    animation: orbDrift 18s ease-in-out infinite alternate;
  }
  .orb-a { animation-duration: 21s; }
  .orb-b { animation-duration: 25s; animation-delay: -8s; }
  .orb-c { animation-duration: 19s; animation-delay: -13s; }
}

@keyframes orbDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(28px, -22px, 0) scale(1.06); }
  100% { transform: translate3d(-18px, 18px, 0) scale(0.96); }
}

/* ---------- Page-load choreography ----------
   Elements start hidden via .motion-ready on <html>, then
   .motion-in fires the cascade. Reduces jank on first paint. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .site-header,
  .motion-ready .hero-copy .eyebrow,
  .motion-ready .hero-copy .hero-line,
  .motion-ready .hero-copy .hero-lead,
  .motion-ready .hero-copy .hero-actions,
  .motion-ready .hero-stage,
  .motion-ready .floating-card,
  .motion-ready .spark,
  .motion-ready .bubble,
  .motion-ready .ticker {
    opacity: 0;
  }

  .motion-in .site-header {
    animation: dropIn 0.75s var(--ease-out) 0.05s both;
  }
  .motion-in .hero-copy .eyebrow {
    animation: riseIn 0.8s var(--ease-out) 0.12s both;
  }
  .motion-in .hero-copy .hero-line:first-of-type {
    animation: riseIn 0.9s var(--ease-out) 0.18s both;
  }
  .motion-in .hero-copy .hero-line:last-of-type {
    animation: riseIn 0.9s var(--ease-out) 0.28s both;
  }
  .motion-in .hero-copy .hero-lead {
    animation: riseIn 0.85s var(--ease-out) 0.36s both;
  }
  .motion-in .hero-copy .hero-actions {
    animation: riseIn 0.85s var(--ease-out) 0.44s both;
  }
  .motion-in .hero-stage {
    animation: stageIn 1.1s var(--ease-out) 0.22s both;
  }
  /* Entry + idle composed: entry animates opacity/scale/rotate
     (individual props), idle animates `transform`. Both coexist. */
  .motion-in .fc-left {
    animation:
      cardPop 0.9s var(--ease-spring) 0.62s both,
      cardDrift 5s ease-in-out infinite;
  }
  .motion-in .fc-right {
    animation:
      cardPop 0.9s var(--ease-spring) 0.74s both,
      cardDrift 5.6s ease-in-out -2.1s infinite;
  }
  .motion-in .spark-1 {
    animation: sparkIn 0.7s var(--ease-spring) 0.85s both, sparkleOrbit 3.6s ease-in-out infinite;
  }
  .motion-in .spark-2 {
    animation: sparkIn 0.7s var(--ease-spring) 0.95s both, sparkleOrbit 3.6s ease-in-out -1.1s infinite;
  }
  .motion-in .spark-3 {
    animation: sparkIn 0.7s var(--ease-spring) 1.05s both, sparkleOrbit 3.6s ease-in-out -2.2s infinite;
  }
  .motion-in .bubble-one {
    animation: bubbleIn 0.75s var(--ease-spring) 0.9s both, bubbleFloat 3.8s ease-in-out infinite;
  }
  .motion-in .bubble-two {
    animation: bubbleIn 0.75s var(--ease-spring) 1.02s both, bubbleFloat 4.2s ease-in-out -1.4s infinite;
  }
  .motion-in .ticker {
    animation: tickerIn 0.9s var(--ease-out) 0.55s both;
  }
}

@keyframes dropIn {
  from { opacity: 0; transform: translate3d(0, -28px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 34px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes stageIn {
  from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.92); filter: blur(10px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
/* Entry keyframes animate only opacity/scale so they never fight the
   idle `transform` loops or the JS depth vars (--dx/--dy). */
@keyframes cardPop {
  from { opacity: 0; scale: 0.88; }
  to   { opacity: 1; scale: 1; }
}
@keyframes sparkIn {
  from { opacity: 0; scale: 0; }
  to   { opacity: 1; scale: 1; }
}
@keyframes bubbleIn {
  from { opacity: 0; scale: 0.5; }
  to   { opacity: 1; scale: 1; }
}
@keyframes tickerIn {
  from { opacity: 0; transform: rotate(-1.2deg) translateY(60px); }
  to   { opacity: 1; transform: rotate(-1.2deg) translateY(0); }
}

/* ---------- Hero stage: glow + particles ---------- */
.stage-glow {
  position: absolute;
  width: 58%;
  height: 58%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 76, 255, 0.32) 0%, rgba(255, 79, 154, 0.14) 42%, transparent 70%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .stage-glow {
    animation: glowPulse 6s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.12); opacity: 1; }
  }

  .particle-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
  }
  .particle {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: particleRise linear infinite;
  }
  @keyframes particleRise {
    0%   { transform: translate3d(0, 0, 0) scale(0.4); opacity: 0; }
    12%  { opacity: 0.75; }
    80%  { opacity: 0.45; }
    100% { transform: translate3d(var(--drift-x, 12px), -118vh, 0) scale(1); opacity: 0; }
  }
}

/* ---------- Phone float (3D, multi-frequency) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .phone-float {
    will-change: transform;
    animation: phoneFloat 6.5s ease-in-out infinite;
  }

}

@keyframes phoneFloat {
  0%   { transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(4deg) rotateY(-3deg); }
  33%  { transform: translate3d(calc(var(--dx, 0px) + 4px), calc(var(--dy, 0px) - 12px), 0) rotate(3.2deg) rotateY(-1deg); }
  66%  { transform: translate3d(calc(var(--dx, 0px) - 5px), calc(var(--dy, 0px) - 18px), 0) rotate(2.4deg) rotateY(2deg); }
  100% { transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(4deg) rotateY(-3deg); }
}

/* ---------- Sparks (orbit + twinkle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .spark {
    will-change: transform, opacity;
    animation: sparkleOrbit 3.6s ease-in-out infinite;
  }
  .spark-1 { animation-delay: 0s; }
  .spark-2 { animation-delay: -1.1s; }
  .spark-3 { animation-delay: -2.2s; }
}

/* Twinkle lives on `filter` so sparkIn can own `opacity` without clashing. */
@keyframes sparkleOrbit {
  0%, 100% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(0.72) rotate(0deg);
    filter: opacity(0.55) drop-shadow(0 0 0 rgba(255, 217, 61, 0));
  }
  35% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(1.18) rotate(28deg);
    filter: opacity(1) drop-shadow(0 0 10px rgba(255, 217, 61, 0.55));
  }
  70% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(0.92) rotate(-12deg);
    filter: opacity(0.75) drop-shadow(0 0 4px rgba(255, 217, 61, 0.2));
  }
}

/* ---------- Score bubbles (pop + float) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bubble {
    --rest-rotate: 9deg;
    will-change: transform;
    animation: bubbleFloat 3.8s ease-in-out infinite;
  }
  .bubble-two {
    --rest-rotate: -11deg;
    animation-delay: -1.4s;
    animation-duration: 4.2s;
  }
}

@keyframes bubbleFloat {
  0%, 100% { transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--rest-rotate)) scale(1); }
  30%      { transform: translate3d(var(--dx, 0px), calc(var(--dy, 0px) - 13px), 0) rotate(calc(var(--rest-rotate) + 2deg)) scale(1.04); }
  60%      { transform: translate3d(var(--dx, 0px), calc(var(--dy, 0px) - 6px), 0) rotate(calc(var(--rest-rotate) - 1.5deg)) scale(0.98); }
}

/* ---------- Floating cards (parallax base + drift) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .floating-card {
    --rest-rotate: 0deg;
    will-change: transform;
    animation: cardDrift 5s ease-in-out infinite;
  }
  .fc-left  { --rest-rotate: -7deg; animation-delay: -0.6s; }
  .fc-right { --rest-rotate: 7deg;  animation-delay: -2.1s; animation-duration: 5.6s; }
}

@keyframes cardDrift {
  0%, 100% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--rest-rotate)) scale(1);
  }
  50% {
    transform: translate3d(var(--dx, 0px), calc(var(--dy, 0px) - 14px), 0) rotate(calc(var(--rest-rotate) + 1.5deg)) scale(1.015);
  }
}

/* ---------- Ticker with edge fade + hover accel ---------- */
.ticker {
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: ticker 28s linear infinite;
    will-change: transform;
  }
  .ticker:hover .ticker-track {
    animation-duration: 14s;
  }
  .ticker-track i {
    display: inline-block;
    animation: tickStar 2.8s ease-in-out infinite;
  }
  .ticker-track i:nth-child(even) {
    animation-delay: -1.4s;
  }
}

@keyframes ticker {
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes tickStar {
  0%, 100% { transform: rotate(0) scale(1); }
  50%      { transform: rotate(45deg) scale(1.18); }
}

/* ---------- Scroll reveals (blur + rise, staggered) ---------- */
.reveal-up,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.reveal-up.is-visible {
  animation: revealUp 1s var(--ease-out) both;
}
.reveal-scale.is-visible {
  animation: revealScale 1.05s var(--ease-out) both;
}

/* Stagger siblings inside grids / groups */
.stat:nth-child(1).is-visible { animation-delay: 0s; }
.stat:nth-child(2).is-visible { animation-delay: 0.08s; }
.stat:nth-child(3).is-visible { animation-delay: 0.16s; }
.stat:nth-child(4).is-visible { animation-delay: 0.24s; }

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.93) translate3d(0, 22px, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
    filter: blur(0);
  }
}

/* Fake-play button pulse (deeper, springy) */
@media (prefers-reduced-motion: no-preference) {
  .fake-play {
    animation: playPulse 2.4s var(--ease-soft) infinite;
    will-change: transform, box-shadow;
  }
}

@keyframes playPulse {
  0%, 100% {
    box-shadow: 0 7px 0 #4a36b8, 0 12px 28px rgba(74, 54, 184, 0.35);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow: 0 11px 0 #4a36b8, 0 20px 42px rgba(74, 54, 184, 0.5);
    transform: translateX(-50%) scale(1.045);
  }
}

/* ---------- Sound bars (spectrum) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sound-bars i {
    animation: soundbar 0.9s ease-in-out infinite alternate;
    will-change: height;
  }
  .sound-bars i:nth-child(1) { animation-delay: 0s; animation-duration: 0.85s; }
  .sound-bars i:nth-child(2) { animation-delay: -0.28s; animation-duration: 0.7s; }
  .sound-bars i:nth-child(3) { animation-delay: -0.52s; animation-duration: 1s; }
}

@keyframes soundbar {
  0%   { height: 5px; border-radius: 4px; }
  55%  { height: 17px; }
  100% { height: 10px; border-radius: 4px 4px 2px 2px; }
}

/* ---------- Hero word rotator (blur + rise) ---------- */
.hero-rotator {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.hero-rotator.swap-out {
  animation: wordOut 0.32s var(--ease-in) forwards;
}
.hero-rotator.swap-in {
  animation: wordIn 0.55s var(--ease-out) forwards;
}

@keyframes wordOut {
  to {
    opacity: 0;
    transform: translate3d(0, -26px, 0) rotate(-2.5deg);
    filter: blur(6px);
  }
}
@keyframes wordIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) rotate(2.5deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
    filter: blur(0);
  }
}

/* ---------- Manifesto: scrub-linked highlight ---------- */
.manifesto-line {
  transition:
    color 0.55s var(--ease-soft),
    transform 0.55s var(--ease-out),
    opacity 0.55s var(--ease-soft),
    filter 0.55s var(--ease-soft);
  will-change: transform, color, opacity;
  opacity: 0.38;
  filter: blur(1.2px);
}

.manifesto-line.active {
  color: #fff;
  transform: translate3d(18px, 0, 0);
  opacity: 1;
  filter: blur(0);
}
.manifesto-line.active em {
  color: var(--yellow);
  display: inline-block;
  animation: emphasisPop 0.55s var(--ease-spring);
}

@keyframes emphasisPop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.loop-arrow {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .loop-arrow {
    animation: spinSlow 9s linear infinite;
  }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* ---------- Family avatar stack ---------- */
@media (prefers-reduced-motion: no-preference) {
  .avatar-card {
    will-change: transform;
    /* Hover uses the independent scale/translate props so it never
       collides with the avatarFloat `transform` keyframes. */
    transition: scale 0.55s var(--ease-spring), translate 0.55s var(--ease-spring), box-shadow 0.45s ease;
  }
  .av-1 { animation: avatarFloat 6.2s ease-in-out infinite; }
  .av-2 { animation: avatarFloat 7.1s ease-in-out infinite -1.8s; }
  .av-3 { animation: avatarFloat 5.7s ease-in-out infinite -3.2s; }
  .av-4 { animation: avatarFloat 6.8s ease-in-out infinite -4.6s; }
}

@keyframes avatarFloat {
  0%, 100% {
    transform: rotate(var(--av-rot)) translateY(0);
  }
  50% {
    transform: rotate(calc(var(--av-rot) + 1.2deg)) translateY(-12px);
  }
}

.av-1 { --av-rot: -8deg; }
.av-2 { --av-rot: 8deg; }
.av-3 { --av-rot: 7deg; }
.av-4 { --av-rot: -7deg; }

.family-stack:hover .avatar-card {
  scale: 1.03;
  translate: 0 -6px;
}
.family-stack .avatar-card:hover {
  scale: 1.07;
  translate: 0 -16px;
  z-index: 5;
  box-shadow: 0 32px 80px rgba(47, 33, 86, 0.22);
}

/* ---------- Stats count-up pop ---------- */
.stat strong {
  display: inline-block;
}
.stat strong.count-done {
  animation: countPop 0.55s var(--ease-spring);
}

@keyframes countPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12) translateY(-3px); }
  100% { transform: scale(1); }
}

/* ---------- CTA: sheen + richer confetti ---------- */
.cta-card {
  isolation: isolate;
}

.cta-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.14) 55%,
    transparent 70%
  );
  transform: translateX(-120%);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-sheen {
    animation: sheenSweep 7s var(--ease-soft) infinite;
  }
  @keyframes sheenSweep {
    0%, 68%  { transform: translateX(-120%); }
    100%     { transform: translateX(120%); }
  }
}

.confetti i {
  position: absolute;
  opacity: 0.92;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .confetti i:nth-child(1) {
    width: 14px; height: 48px; border-radius: 99px;
    background: var(--yellow);
    right: 10%; top: 10%;
    animation: confettiDrift 5.2s ease-in-out infinite;
  }
  .confetti i:nth-child(2) {
    width: 12px; height: 38px; border-radius: 99px;
    background: var(--aqua);
    right: 20%; top: 35%;
    animation: confettiDrift 6.1s ease-in-out infinite -1.2s;
  }
  .confetti i:nth-child(3) {
    width: 16px; height: 52px; border-radius: 99px;
    background: white;
    right: 8%; bottom: 10%;
    animation: confettiDrift 4.8s ease-in-out infinite -2.4s;
  }
  .confetti i:nth-child(4) {
    width: 11px; height: 42px; border-radius: 99px;
    background: var(--pink);
    left: 46%; top: 7%;
    animation: confettiDrift 5.6s ease-in-out infinite -0.8s;
  }
  .confetti i:nth-child(5) {
    width: 15px; height: 46px; border-radius: 99px;
    background: var(--orange);
    left: 55%; bottom: 9%;
    animation: confettiDrift 6.4s ease-in-out infinite -3s;
  }
  .confetti i:nth-child(6) {
    width: 10px; height: 34px; border-radius: 99px;
    background: var(--yellow);
    right: 35%; bottom: 21%;
    animation: confettiDrift 5s ease-in-out infinite -1.7s;
  }
  .confetti i:nth-child(7) {
    width: 9px; height: 28px; border-radius: 99px;
    background: var(--aqua);
    left: 18%; top: 22%;
    animation: confettiDrift 5.8s ease-in-out infinite -2.1s;
  }
  .confetti i:nth-child(8) {
    width: 13px; height: 36px; border-radius: 99px;
    background: white;
    left: 72%; top: 48%;
    animation: confettiDrift 6.7s ease-in-out infinite -4.2s;
  }
  .confetti i:nth-child(9) {
    width: 11px; height: 30px; border-radius: 99px;
    background: var(--pink);
    left: 28%; bottom: 18%;
    animation: confettiDrift 5.3s ease-in-out infinite -3.5s;
  }
}

/* Static positions when motion is off */
.confetti i:nth-child(7)  { left: 18%; top: 22%; transform: rotate(-20deg); }
.confetti i:nth-child(8)  { left: 72%; top: 48%; transform: rotate(35deg); }
.confetti i:nth-child(9)  { left: 28%; bottom: 18%; transform: rotate(-55deg); }

@keyframes confettiDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--c-rot, 25deg)) scale(1);
  }
  35% {
    transform: translate3d(10px, -22px, 0) rotate(calc(var(--c-rot, 25deg) + 18deg)) scale(1.08);
  }
  65% {
    transform: translate3d(-8px, -10px, 0) rotate(calc(var(--c-rot, 25deg) - 12deg)) scale(0.95);
  }
}

.confetti i:nth-child(1) { --c-rot: 25deg; }
.confetti i:nth-child(2) { --c-rot: -30deg; }
.confetti i:nth-child(3) { --c-rot: 60deg; }
.confetti i:nth-child(4) { --c-rot: 80deg; }
.confetti i:nth-child(5) { --c-rot: 8deg; }
.confetti i:nth-child(6) { --c-rot: -58deg; }
.confetti i:nth-child(7) { --c-rot: -20deg; }
.confetti i:nth-child(8) { --c-rot: 35deg; }
.confetti i:nth-child(9) { --c-rot: -55deg; }

/* ---------- Pill buttons: magnetic + shine ---------- */
.pill-button {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
  will-change: transform;
}

.pill-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.32) 52%,
    transparent 75%
  );
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease-soft);
  pointer-events: none;
}

.pill-button:hover::before {
  transform: translateX(130%);
}

.pill-button span {
  display: inline-block;
  transition: transform 0.4s var(--ease-spring);
}
.pill-button:hover span {
  transform: translate(3px, -3px) rotate(12deg);
}

/* ---------- Feature pills stagger ---------- */
.feature-pills span {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}
.feature-pills span:hover {
  transform: translateY(-3px) rotate(-1.5deg);
  box-shadow: 0 14px 34px rgba(47, 33, 86, 0.14);
}

/* ---------- Nav + brand micro ---------- */
.desktop-nav a {
  position: relative;
  transition: opacity 0.25s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.brand-logo {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.35s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 12px 32px rgba(83, 63, 218, 0.35);
}

.pulse-dot {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot {
    animation: pulseDot 2.1s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(49, 209, 124, 0.55);
  }
}
@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(49, 209, 124, 0.55);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(49, 209, 124, 0);
  }
}

/* ---------- Footer brand float-in ---------- */
.footer-brand {
  transition: transform 0.45s var(--ease-spring);
}
.footer-brand:hover {
  transform: translateY(-3px) rotate(-2deg);
}

/* ---------- Scroll-linked parallax helper ----------
   JS writes --parallax-y; we translate via the independent
   `translate` property so it never fights `transform` animations. */
[data-parallax] {
  will-change: transform;
  translate: 0 var(--parallax-y, 0px);
}

[data-depth] {
  will-change: transform;
}

/* ---------- Motion pause (manual toggle) ---------- */
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: 0.01ms !important;
}

/* ---------- Reduced motion: hard fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up,
  .reveal-scale {
    opacity: 1 !important;
    filter: none !important;
  }
  .manifesto-line {
    opacity: 1;
    filter: none;
    color: #fff;
    transform: none;
  }
  .manifesto-line em {
    color: var(--yellow);
  }
}
