/* RedMinds Campaign Studio — Cinematic Motion Layer v2
 * Engineering notes:
 * - All decorative layers are aria-hidden; content/order is never touched.
 * - CSS variables for pointer tracking: no JS layout reads in rAF loops.
 * - will-change declared only on elements actively animated.
 * - Reduced-motion: immediate full visibility, zero animation.
 * - WebGL fallback: CSS depth composition replaces the canvas scene.
 * - Shelf track transforms remain owned by mela.js; only visual cards receive tilt.
 * -------------------------------------------------------------------------*/

/* ═══════════════════════════════════════════════════════════════════════════
   1. HERO — Signature 3D dimensional composition
   ═══════════════════════════════════════════════════════════════════════════ */

/* Progressive enhancement: legacy entrance primitives must not hide content
   when scripts are blocked, or the motion initializer cannot finish. */
.rwm-campaign:not(.rwm-motion-ready) :is(.rwm-reveal, .rwm-hero__lead,
  .rwm-mela-visual, .rwm-mela-visual__core strong, .rwm-founder__visual,
  .rwm-founder__story, .rwm-founder__badge, .rwm-value__headline--reveal,
  .rwm-value article, .rwm-showshelf__track, .rwm-final__copy) {
  opacity: 1; transform: none; animation: none;
}

/* Establish 3D perspective context on the hero section */
.rwm-motion-offscreen::before, .rwm-motion-offscreen::after,
.rwm-motion-offscreen :is(.rwm-hero__glow, .rwm-hero__orbit, .rwm-reel-frame,
  .rwm-proof--price, .rwm-intro__glow, .rwm-mela-visual__ring,
  .rwm-value__orbit, .rwm-value__blob, .rwm-value__dot, .rwm-value__glow,
  .rwm-value__shine, .rwm-founder__glow, .rwm-founder__ring--inner,
  .rwm-founder__badge),
.rwm-motion-offscreen .rwm-hero__backplate::before,
.rwm-motion-offscreen .rwm-hero__backplate::after,
.rwm-motion-offscreen .rwm-reel-frame::after,
.rwm-motion-offscreen .rwm-mela-visual__ring::after { animation-play-state: paused !important; }
.rwm-campaign.rwm-motion-ready .rwm-hero {
  perspective: 1600px;
  perspective-origin: 50% 38%;
}

/* Hero copy: staggered dimensional entrance, each child from slightly different axis */
.rwm-motion-ready .rwm-hero__copy > * {
  animation: rwm-hero-line-rise 0.9s var(--ease) both;
}
.rwm-motion-ready .rwm-hero__copy > *:nth-child(1) { animation-delay: 0.04s; }
.rwm-motion-ready .rwm-hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
.rwm-motion-ready .rwm-hero__copy > *:nth-child(3) { animation-delay: 0.2s; }
.rwm-motion-ready .rwm-hero__copy > *:nth-child(4) { animation-delay: 0.28s; }
.rwm-motion-ready .rwm-hero__copy > *:nth-child(5) { animation-delay: 0.36s; }
.rwm-motion-ready .rwm-hero__copy > *:nth-child(6) { animation-delay: 0.44s; }

@keyframes rwm-hero-line-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, -40px) rotateX(6deg);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ── Visual panel: 3-layer parallax using CSS variables ── */
.rwm-motion-ready .rwm-hero__visual {
  transform:
    perspective(1400px)
    rotateX(calc(var(--rwm-py, 0) * -4deg))
    rotateY(calc(var(--rwm-px, 0) * 5deg));
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
  will-change: transform;
  animation: rwm-hero-visual-arrive 1.0s var(--ease) 0.14s both;
}
@keyframes rwm-hero-visual-arrive {
  from {
    opacity: 0;
    transform: perspective(1400px) translate3d(0, 28px, -60px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateX(0) rotateY(0);
  }
}

/* Backplate: deepest layer, moves opposite and most aggressively */
.rwm-motion-ready .rwm-hero__backplate {
  transform:
    translate3d(
      calc(var(--rwm-px, 0) * -18px),
      calc(var(--rwm-py, 0) * -12px),
      -40px
    )
    rotate(-3deg);
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

/* Orbit ring: slow rotation plus pointer nudge at mid-depth */
.rwm-motion-ready .rwm-hero__orbit {
  transform:
    translate3d(
      calc(var(--rwm-px, 0) * 10px),
      calc(var(--rwm-py, 0) * 8px),
      -20px
    )
    rotate(calc(var(--rwm-orbit-deg, 0) * 1deg));
  transition: transform 0.65s var(--ease);
  will-change: transform;
  animation: rwm-orbit-slow 42s linear infinite;
}
@keyframes rwm-orbit-slow {
  to { --rwm-orbit-deg: 360; }
}

/* Reel wrap: foreground layer, moves with pointer at gentle rate */
.rwm-motion-ready .rwm-hero__visual > .rwm-reel-wrap {
  translate: calc(var(--rwm-px, 0) * 10px) calc(var(--rwm-py, 0) * 7px);
  transition: translate 0.52s var(--ease);
  will-change: translate;
}

/* Showcase owns its geometry. No Reel classes, clipping, or card surface. */
.rwm-hero__visual--showcase { align-self: center; min-height: 0; }
.rwm-showcase-wrap { position: relative; width: 100%; max-width: clamp(570px,46vw,760px); margin-inline: auto; }
.rwm-showcase-depth { perspective: 1400px; }
.rwm-motion-ready .rwm-hero__visual--showcase { animation: none; transform: none; will-change: auto; }
.rwm-showcase[data-showcase-pointer="1"] .rwm-showcase__stage { rotate: y calc(clamp(-1, var(--rwm-px,0), 1) * 2deg); transition: rotate .55s var(--ease); }
.rwm-showcase { position: relative; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.rwm-showcase__stage { position: relative; width: 100%; aspect-ratio: 1; perspective: 1600px; transform-style: preserve-3d; }
.rwm-showcase__stage::before { position: absolute; inset: 6% 0 2%; border-radius: 50%; background: radial-gradient(ellipse, rgba(143,227,197,.27), rgba(201,242,74,.1) 42%, transparent 70%); content: ''; pointer-events: none; }
.rwm-hero__visual--showcase > .rwm-hero__backplate { background: none; filter: none; }
.rwm-hero__visual--showcase > .rwm-hero__backplate::before,
.rwm-hero__visual--showcase > .rwm-hero__backplate::after { content: none; }
.rwm-showcase__device { position: absolute; top: 58%; left: 50%; z-index: 1; transform-style: preserve-3d; transform-origin: center; transition: transform .75s cubic-bezier(.2,.75,.2,1), opacity .65s ease, filter .65s ease; }
.rwm-showcase__device--desktop { width: 88%; }
.rwm-showcase__device--tablet { width: 76%; }
.rwm-showcase__device--mobile { width: 32%; }
.rwm-showcase__device:not(.is-selected) { opacity: .22; filter: contrast(.7); pointer-events: none; transform: translate(-50%,-50%) translate3d(-32%,5%,-160px) rotateY(18deg) rotateZ(-5deg) scale(.62); }
.rwm-showcase__device[data-scene-state="right"] { transform: translate(-50%,-50%) translate3d(32%,5%,-160px) rotateY(-18deg) rotateZ(5deg) scale(.62); }
.rwm-showcase__device.is-selected { z-index: 4; opacity: 1; filter: none; transform: translate(-50%,-50%) translateZ(24px); }
.rwm-showcase__device[aria-hidden="true"] { pointer-events: none; }
.rwm-showcase[data-showcase-expand="0"] .rwm-showcase__device.is-selected { transform: translate(-50%,-50%); }
.rwm-showcase__monitor, .rwm-showcase__phone, .rwm-showcase__tablet { position: relative; padding: 6px; border: 1px solid rgba(255,255,255,.7); background: var(--ink); box-shadow: 3px 5px 0 rgba(0,28,39,.65), 0 28px 38px rgba(0,28,39,.22), inset 0 0 0 1px rgba(255,255,255,.3); transition: box-shadow .8s var(--ease); transform-style: preserve-3d; }
.rwm-showcase__monitor { border-radius: 13px; }
.rwm-showcase__phone { padding: 6px; border-radius: 24px; }
.rwm-showcase__tablet { padding: 7px; border-radius: 17px; }
.rwm-showcase__device:not(.is-selected) .rwm-showcase__monitor,
.rwm-showcase__device:not(.is-selected) .rwm-showcase__tablet,
.rwm-showcase__device:not(.is-selected) .rwm-showcase__phone { box-shadow: 2px 3px 0 rgba(0,28,39,.6), 0 12px 20px rgba(0,28,39,.14); }
.rwm-showcase__screen { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; background: var(--paper, #fffdf7); isolation: isolate; }
.rwm-showcase__phone .rwm-showcase__screen { aspect-ratio: 1 / 2; border-radius: 18px; }
.rwm-showcase__tablet .rwm-showcase__screen { aspect-ratio: 4 / 3; border-radius: 10px; }
.rwm-showcase__screen::after { position: absolute; inset: 0; z-index: 3; background: linear-gradient(125deg, rgba(255,255,255,.16), transparent 28%, transparent 82%, rgba(255,255,255,.09)); content: ''; pointer-events: none; }
/* Fixed internal layout viewports; ResizeObserver scales only presentation. */
.rwm-showcase .rwm-showcase__frame { position: absolute; top: 0; left: 0; display: block; width: 1440px; height: 810px; min-width: 0; max-width: none; min-height: 0; border: 0; transform: scale(var(--rwm-screen-scale, .25)); transform-origin: 0 0; visibility: hidden; background: var(--paper, #fffdf7); }
.rwm-showcase__phone .rwm-showcase__frame { width: 390px; height: 780px; }
.rwm-showcase__tablet .rwm-showcase__frame { width: 1024px; height: 768px; }
.rwm-showcase__screen.is-live .rwm-showcase__frame { visibility: visible; }
.rwm-showcase__fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rwm-showcase__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 8%; color: var(--ink); background: linear-gradient(135deg, var(--paper, #fffdf7), rgba(143,227,197,.3)); overflow-wrap: anywhere; }
.rwm-showcase__placeholder span { display: block; width: 70%; height: 8%; border-radius: 3px; background: rgba(0,28,39,.08); }
.rwm-showcase__placeholder span:first-child { width: 90%; height: 32%; background: rgba(143,227,197,.25); }
.rwm-showcase__external { position: absolute; top: 10px; right: 10px; z-index: 7; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--paper); box-shadow: 0 2px 7px rgba(0,28,39,.16); }
.rwm-showcase__external svg { display: block; width: 17px; height: 17px; }
.rwm-showcase__external:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.rwm-showcase__camera, .rwm-showcase__speaker { position: absolute; z-index: 5; left: 50%; background: var(--ink); transform: translateX(-50%); pointer-events: none; }
.rwm-showcase__camera { top: 2px; width: 3px; height: 3px; border-radius: 50%; }
.rwm-showcase__speaker { top: 6px; width: 30%; height: 7px; border-radius: 0 0 9px 9px; }
.rwm-showcase__tablet .rwm-showcase__speaker { left: 3px; top: 50%; width: 3px; height: 3px; border-radius: 50%; }
.rwm-showcase__stand { position: relative; display: block; width: 14%; height: clamp(20px,4vw,45px); margin: 0 auto; background: linear-gradient(90deg, var(--ink), #315263 48%, var(--ink)); clip-path: polygon(23% 0,77% 0,100% 100%,0 100%); }
.rwm-showcase__base { display: block; width: 34%; height: 7px; margin: -2px auto 0; border-radius: 50% 50% 3px 3px; background: linear-gradient(var(--ink), #315263); box-shadow: 0 14px 15px rgba(0,28,39,.22); }
.rwm-showcase__controls { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.rwm-showcase__controls button { position: absolute; top: 7%; left: 9%; width: 70px; height: 78px; padding: 6px; border: 0; background: none; color: var(--ink); cursor: pointer; pointer-events: auto; }
.rwm-showcase__controls [data-showcase-device-button="tablet"] { top: 2%; left: calc(50% - 35px); }
.rwm-showcase__controls [data-showcase-device-button="mobile"] { top: 7%; left: auto; right: 7%; }
.rwm-showcase__satellite { display: grid; gap: 3px; justify-items: center; padding: 9px; border: 1px solid rgba(0,28,39,.16); border-radius: 16px; background: rgba(255,253,247,.85); box-shadow: 0 9px 18px rgba(0,28,39,.13), inset 0 1px rgba(255,255,255,.95); transition: background .5s ease, box-shadow .5s ease, scale .5s ease; }
.rwm-showcase__satellite svg { display: block; flex: none; width: 28px; height: 28px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rwm-showcase__satellite small { font-size: .6rem; font-weight: 700; }
.rwm-showcase__controls [aria-pressed="true"] .rwm-showcase__satellite { background: var(--lime); scale: 1.08; border: 2px solid var(--ink); box-shadow: 0 12px 24px rgba(0,28,39,.18), 0 0 0 5px rgba(201,242,74,.16); }
.rwm-showcase__controls button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 18px; }
.rwm-showcase__controls button:hover .rwm-showcase__satellite { animation-play-state: paused; }
.rwm-motion-ready .rwm-showcase.is-in-view .rwm-showcase__satellite { animation: rwm-device-orbit 6s ease-in-out infinite; }
.rwm-motion-ready .rwm-showcase.is-in-view button + button .rwm-showcase__satellite { animation-delay: -3s; }
.rwm-motion-ready .rwm-showcase.is-in-view .rwm-showcase__controls button:is(:hover,:focus-visible) .rwm-showcase__satellite { animation-play-state: paused; }
.rwm-motion-ready .rwm-showcase.is-arriving[data-showcase-entrance="1"] .rwm-showcase__device.is-selected { animation: rwm-device-arrive .8s var(--ease) both; }
.rwm-motion-ready .rwm-showcase.is-arriving[data-showcase-entrance="1"] .rwm-showcase__device--mobile { animation-delay: .16s; }
.rwm-motion-ready .rwm-showcase.is-arriving[data-showcase-entrance="1"] .rwm-showcase__satellite { animation: rwm-control-arrive .8s var(--ease) .25s both; }
.rwm-motion-ready .rwm-showcase.is-arriving[data-showcase-entrance="1"] button + button .rwm-showcase__satellite { animation-delay: .4s; }
.rwm-showcase[data-showcase-separation="1"] .is-settling .rwm-showcase__screen { animation: rwm-device-glass .7s var(--ease); }
.rwm-showcase[data-showcase-separation="1"] .is-settling .rwm-showcase__stand,
.rwm-showcase[data-showcase-separation="1"] .is-settling .rwm-showcase__base { animation: rwm-device-stand .7s var(--ease) .05s; }
@keyframes rwm-device-orbit { 0%,100% { transform: translate3d(-2px,0,0) rotate(-3deg); } 50% { transform: translate3d(3px,-5px,5px) rotate(3deg); } }
@keyframes rwm-control-arrive { from { opacity: 0; transform: translate3d(0,12px,-24px) rotate(-9deg); } to { opacity: 1; transform: none; } }
@keyframes rwm-device-arrive { from { opacity: 0; translate: 0 28px -180px; rotate: y -14deg; } to { opacity: 1; translate: 0 0 0; rotate: y 0deg; } }
@keyframes rwm-device-glass { 0%,100% { transform: translateZ(0); } 38% { transform: translate3d(0,-2px,10px); } }
@keyframes rwm-device-stand { 0%,100% { transform: translateY(0); } 45% { transform: translateY(5px); } }
@media (hover:hover) and (pointer:fine) {
  .rwm-showcase[data-showcase-hover="desktop"] .rwm-showcase__device--desktop:not(.is-selected),
  .rwm-showcase[data-showcase-hover="mobile"] .rwm-showcase__device--mobile:not(.is-selected),
  .rwm-showcase[data-showcase-hover="tablet"] .rwm-showcase__device--tablet:not(.is-selected) { opacity: .3; }
}
@media (max-width:1024px) { .rwm-showcase-wrap { max-width: 570px; } }
@media (max-width:700px) {
  .rwm-hero__visual.rwm-hero__visual--showcase { min-height: 0; margin-top: 1.5rem; }
  .rwm-showcase-wrap { width: 100%; }
  .rwm-showcase__stage { aspect-ratio: .96; perspective: 1800px; }
  .rwm-showcase__controls button { top: 3%; left: 5%; width: 64px; height: 72px; }
  .rwm-showcase__controls [data-showcase-device-button="tablet"] { top: 0; left: calc(50% - 32px); }
  .rwm-showcase__controls [data-showcase-device-button="mobile"] { top: 3%; right: 5%; left: auto; }
  .rwm-showcase__satellite small { font-size: .58rem; }
}
@media (prefers-reduced-motion:reduce) {
  .rwm-showcase .rwm-showcase__device { transition: none; translate: none; }
  .rwm-showcase .rwm-showcase__satellite, .rwm-showcase .rwm-showcase__device,
  .rwm-showcase .rwm-showcase__screen, .rwm-showcase .rwm-showcase__stand, .rwm-showcase .rwm-showcase__base { animation: none !important; transition: none; }
}
.rwm-animation-none .rwm-showcase .rwm-showcase__device,
.rwm-animation-none .rwm-showcase .rwm-showcase__satellite,
.rwm-animation-none .rwm-showcase .rwm-showcase__screen,
.rwm-animation-none .rwm-showcase .rwm-showcase__stand,
.rwm-animation-none .rwm-showcase .rwm-showcase__base { animation: none !important; transition: none; }

/* Hero geometric ornaments: three distinct depth objects via pseudo-elements */
/* Object 1: Background hexagonal accent (deep layer) */
.rwm-motion-ready .rwm-hero__backplate::before {
  content: '';
  position: absolute;
  right: -18%;
  top: -14%;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  border-radius: 38% 62% 58% 42% / 44% 40% 60% 56%;
  background: linear-gradient(
    135deg,
    rgba(201, 242, 74, 0.18) 0%,
    rgba(143, 227, 197, 0.12) 50%,
    rgba(127, 216, 232, 0.08) 100%
  );
  border: 1px solid rgba(201, 242, 74, 0.2);
  animation: rwm-blob-morph 9s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: border-radius, transform;
}

/* Object 2: Midground floating diamond */
.rwm-motion-ready .rwm-hero__backplate::after {
  content: '';
  position: absolute;
  left: -10%;
  bottom: 10%;
  width: clamp(60px, 8vw, 110px);
  height: clamp(60px, 8vw, 110px);
  border: 1.5px solid rgba(143, 227, 197, 0.38);
  border-radius: 4px;
  transform: rotate(45deg);
  animation: rwm-diamond-float 6.5s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
  background: linear-gradient(
    135deg,
    rgba(127, 216, 232, 0.08),
    rgba(201, 242, 74, 0.06)
  );
}

@keyframes rwm-blob-morph {
  0%   { border-radius: 38% 62% 58% 42% / 44% 40% 60% 56%; transform: translate(0, 0) scale(1); }
  50%  { border-radius: 58% 42% 44% 56% / 56% 60% 40% 44%; transform: translate(6px, -8px) scale(1.04); }
  100% { border-radius: 48% 52% 62% 38% / 52% 44% 56% 48%; transform: translate(-4px, 4px) scale(0.97); }
}

@keyframes rwm-diamond-float {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%       { transform: rotate(48deg) translate(0, -10px); }
}

/* Object 3: Foreground glowing circle accent */
.rwm-motion-ready .rwm-hero__orbit::before {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: clamp(24px, 3.5vw, 46px);
  height: clamp(24px, 3.5vw, 46px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 242, 74, 0.7), rgba(201, 242, 74, 0.0));
  animation: rwm-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes rwm-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.35); opacity: 0.45; }
}

/* ── Hero WebGL canvas (legacy): maintain if scene started, improve visibility ── */
.rwm-motion-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: screen; /* Changed from multiply → screen: visible on dark/light */
}

/* Ensure hero content always renders above canvas */
.rwm-hero > *:not(.rwm-hero__bg):not(.rwm-hero__glow):not(.rwm-motion-hero-canvas) {
  position: relative;
  z-index: 1;
}

/* ── Hero glow enhancement ── */
.rwm-motion-ready .rwm-hero__glow {
  animation: rwm-breathe 8s ease-in-out infinite alternate;
  filter: blur(60px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. INTRO — Guided visual transition with complementary motion
   ═══════════════════════════════════════════════════════════════════════════ */

/* Left column slides from left */
.rwm-motion-ready .rwm-intro__heading {
  opacity: 0;
  transform: translate3d(-32px, 12px, 0);
  transition:
    opacity 0.82s var(--ease),
    transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.rwm-intro.is-visible .rwm-intro__heading {
  opacity: 1;
  transform: none;
}

/* Right column (capacity ring) rises and scales in */
.rwm-motion-ready .rwm-mela-visual {
  opacity: 0;
  transform: translate3d(24px, 16px, 0) scale(0.94);
  transition:
    opacity 0.85s var(--ease) 0.14s,
    transform 0.92s var(--ease) 0.14s;
  will-change: opacity, transform;
}
.rwm-motion-ready .rwm-mela-visual.is-visible {
  opacity: 1;
  transform: none;
}

/* Metrics bar: sequential left-to-right reveal */
.rwm-motion-ready .rwm-metrics {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.72s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.rwm-intro.is-visible .rwm-metrics {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. VALUE — Content-aware animated cards
   Handled via JS data attributes; CSS provides the visual outcome.
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-motion-ready .rwm-value__headline--reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.72s var(--ease), transform 0.82s var(--ease);
}
.rwm-value.is-visible .rwm-value__headline--reveal {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

/* Single-item: centered scale reveal */
.rwm-motion-ready .rwm-value__grid[data-count="1"] article,
.rwm-motion-ready .rwm-value__grid[data-rwm-count="1"] article {
  opacity: 0;
  transform: scale(0.92) translate3d(0, 20px, 0);
  transition: opacity 0.75s var(--ease) 0.1s, transform 0.85s var(--ease) 0.1s;
}
.rwm-value.is-visible .rwm-value__grid[data-count="1"] article,
.rwm-value.is-visible .rwm-value__grid[data-rwm-count="1"] article {
  opacity: 1;
  transform: none;
}

/* Two-item: opposing horizontal approach */
.rwm-value__grid[data-rwm-count="2"] article:nth-child(1) {
  opacity: 0;
  transform: translate3d(-36px, 16px, 0);
  transition: opacity 0.78s var(--ease) 0.1s, transform 0.88s var(--ease) 0.1s;
}
.rwm-value__grid[data-rwm-count="2"] article:nth-child(2) {
  opacity: 0;
  transform: translate3d(36px, 16px, 0);
  transition: opacity 0.78s var(--ease) 0.2s, transform 0.88s var(--ease) 0.2s;
}
.rwm-value.is-visible .rwm-value__grid[data-rwm-count="2"] article {
  opacity: 1;
  transform: none;
}

/* Three-item: staggered perspective tilt */
.rwm-value__grid[data-rwm-count="3"] article {
  opacity: 0;
  transform: translate3d(0, 28px, 0) perspective(800px) rotateX(8deg);
  transition: opacity 0.72s var(--ease), transform 0.85s var(--ease);
}
.rwm-value.is-visible .rwm-value__grid[data-rwm-count="3"] article:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.rwm-value.is-visible .rwm-value__grid[data-rwm-count="3"] article:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.18s; }
.rwm-value.is-visible .rwm-value__grid[data-rwm-count="3"] article:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.28s; }

/* Four+ items: default stagger (rows) via JS-set --rwm-motion-index */
.rwm-motion-ready .rwm-value__grid article {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  transition:
    opacity 0.7s var(--ease),
    transform 0.78s var(--ease),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  transition-delay: calc(var(--rwm-motion-index, 0) * 100ms);
}
.rwm-value.is-visible .rwm-value__grid article {
  opacity: 1;
  transform: none;
}

/* Value card accent line draw */
.rwm-value article::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease) 0.25s;
}
.rwm-value.is-visible article::after {
  transform: scaleX(1);
}

/* Value card hover: restrained perspective tilt with depth shadow */
.rwm-motion-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
  will-change: transform;
}
.rwm-motion-card-3d.is-pointer-active {
  transition: none;
}
.rwm-motion-card-3d > * {
  transform: translateZ(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. TEMPLATES & PORTFOLIO — Premium interactive device showroom
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section reveal */
.rwm-motion-ready .rwm-showshelf {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.82s var(--ease), transform 0.9s var(--ease);
}
.rwm-motion-ready .rwm-showshelf.is-visible {
  opacity: 1;
  transform: none;
}

/* Showcard track settles vertically inside its existing scroll container. */
.rwm-motion-ready .rwm-showshelf__track {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.78s ease, transform 0.9s var(--ease);
  transition-delay: 0.08s;
}
.rwm-showshelf.is-visible .rwm-showshelf__track {
  opacity: 1;
  transform: none;
}

/* Individual cards stagger when shelf is visible */
.rwm-showshelf.is-visible .rwm-showcard {
  animation: rwm-card-depth-in 0.72s var(--ease) both;
}
.rwm-showshelf.is-visible .rwm-showcard:nth-child(1) { animation-delay: 0.04s; }
.rwm-showshelf.is-visible .rwm-showcard:nth-child(2) { animation-delay: 0.12s; }
.rwm-showshelf.is-visible .rwm-showcard:nth-child(3) { animation-delay: 0.2s; }
.rwm-showshelf.is-visible .rwm-showcard:nth-child(4) { animation-delay: 0.28s; }
.rwm-showshelf.is-visible .rwm-showcard:nth-child(5) { animation-delay: 0.36s; }
.rwm-showshelf.is-visible .rwm-showcard:nth-child(6) { animation-delay: 0.44s; }

@keyframes rwm-card-depth-in {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, -30px) perspective(800px) rotateX(6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Showcard: depth elevation on hover via internal wrapper */
.rwm-showcard {
  transform-style: flat;
  transition: box-shadow 0.38s var(--ease), transform 0.38s var(--ease);
  will-change: transform, box-shadow;
}

/* Card tilt wrapper — the inner layer that receives pointer tilt */
/* (mela.js does NOT interfere here; shelf track transform is separate) */
.rwm-showcard__inner-tilt {
  transform-style: preserve-3d;
  transition: transform 0.38s var(--ease);
  will-change: transform;
}
.rwm-showcard__inner-tilt.is-pointer-active {
  transition: none;
}

/* Browser chrome: responds to hover with a subtle highlight sweep */
.rwm-showcard:hover .rwm-browser__bar {
  background: linear-gradient(
    90deg,
    rgba(201, 242, 74, 0.08),
    rgba(143, 227, 197, 0.06)
  );
  transition: background 0.4s ease;
}

/* Phone mockup: elevates on card hover */
.rwm-showcard .rwm-phone {
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease);
}
.rwm-showcard:hover .rwm-phone {
  transform: translate3d(3px, -6px, 0);
  box-shadow: 0 16px 40px rgba(0, 28, 39, 0.18);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. PACKAGES — Conversion-focused 3D cards with spatial depth
   ═══════════════════════════════════════════════════════════════════════════ */

/* Package shelf reveal */
.rwm-motion-ready .rwm-package-grid.rwm-showshelf {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.78s var(--ease), transform 0.88s var(--ease);
}
.rwm-motion-ready .rwm-package-grid.rwm-showshelf.is-visible {
  opacity: 1;
  transform: none;
}

/* Package card: perspective + restrained rotation */
.rwm-package {
  transform-style: preserve-3d;
  transition:
    transform 0.42s var(--ease),
    box-shadow 0.42s var(--ease),
    border-color 0.3s ease;
  will-change: transform;
}
.rwm-package.is-pointer-active {
  transition-duration: 0s;
}

/* Featured package: slightly elevated in 3D space */
.rwm-package.is-featured {
  transform: translateZ(8px) translateY(-4px);
  box-shadow: 0 32px 80px rgba(0, 28, 39, 0.22);
}
.rwm-package.is-featured:hover,
.rwm-package.is-featured.is-pointer-active {
  box-shadow: 0 44px 100px rgba(0, 28, 39, 0.28);
}

/* Package stagger on reveal */
.rwm-motion-ready .rwm-motion-stagger.is-visible > .rwm-motion-stagger-item {
  opacity: 1;
  transform: none;
  transition-property: opacity, transform, box-shadow, border-color;
  transition-duration: 0.72s;
  transition-timing-function: var(--ease);
}
.rwm-motion-ready .rwm-motion-stagger:not(.is-visible) > .rwm-motion-stagger-item {
  opacity: 0;
  transform: translate3d(0, 24px, -20px) perspective(900px) rotateX(5deg);
}
.rwm-motion-stagger > .rwm-motion-stagger-item {
  transition-delay: calc(var(--rwm-motion-index, 0) * 110ms);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. FOUNDER — Elegant depth with complementary entrance motion
   ═══════════════════════════════════════════════════════════════════════════ */

/* Photo/visual: enters from left with subtle depth */
.rwm-motion-ready .rwm-founder__visual {
  opacity: 0;
  transform: translate3d(-28px, 12px, 0);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--ease);
  will-change: opacity, transform;
}
.rwm-motion-ready .rwm-founder__visual.is-visible {
  opacity: 1;
  transform: none;
}

/* Story/text: enters from right, complementary timing */
.rwm-motion-ready .rwm-founder__story {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.85s var(--ease) 0.1s, transform 0.95s var(--ease) 0.1s;
  will-change: opacity, transform;
}
.rwm-motion-ready .rwm-founder__story.is-visible {
  opacity: 1;
  transform: none;
}

/* Founder badge: gentle float */
.rwm-founder__badge {
  animation: rwm-founder-badge-float 5s ease-in-out infinite;
}
@keyframes rwm-founder-badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Founder portrait: subtle parallax on hover */
.rwm-founder__visual:hover .rwm-founder__portrait {
  transform: scale(1.02) translateY(-3px);
  transition: transform 0.55s var(--ease);
}
.rwm-founder__portrait {
  transition: transform 0.55s var(--ease);
}
.rwm-founder__visual.rwm-founder__visual--reel { width: min(100%,400px); aspect-ratio: auto; padding: 2.5rem 0; }
.rwm-founder__reel { position: relative; z-index: 2; width: min(76%,280px); aspect-ratio: 9 / 16; padding: 7px; border: 1px solid rgba(255,255,255,.8); border-radius: 25px; background: var(--ink); box-shadow: 4px 5px 0 rgba(0,28,39,.5), 0 28px 55px rgba(0,28,39,.2); transform: perspective(1100px) rotateY(-7deg) rotateZ(-2deg); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.rwm-founder__reel-screen { position: absolute; inset: 7px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: var(--ink); }
.rwm-founder__reel-screen::after { position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg,rgba(255,255,255,.15),transparent 38%); pointer-events: none; content: ''; }
.rwm-founder__reel .rwm-founder__video-poster,
.rwm-founder__reel .rwm-founder__video-frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border: 0; object-fit: cover; }
.rwm-founder__reel [hidden] { display: none !important; }
.rwm-founder__reel [data-founder-native] { z-index: 4; object-fit: contain; }
.rwm-founder__video-play { position: relative; z-index: 3; display: grid; justify-items: center; gap: .4rem; width: 76px; height: 76px; place-content: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(0,28,39,.78); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.22); font: inherit; font-size: .7rem; }
.rwm-founder__video-play:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.rwm-founder__video-play[hidden] { display: none; }
.rwm-founder__video-close { position: absolute; z-index: 5; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(0,28,39,.78); color: #fff; cursor: pointer; font: inherit; font-size: 1.6rem; line-height: 1; }
.rwm-founder__video-close:focus-visible { outline: 3px solid var(--coral); outline-offset: -4px; }
.rwm-founder__reel.is-playing { transform: none; }
.rwm-founder__reel.is-playing .rwm-founder__video-frame { z-index: 4; }
.rwm-founder__video-external { position: absolute; top: calc(100% + .6rem); left: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; width: 100%; text-align: center; color: var(--ink); font-size: .7rem; text-underline-offset: 4px; }
.rwm-founder__video-external svg { display: block; width: 13px; height: 13px; flex: none; }
.rwm-founder__visual--reel .rwm-founder__badge { top: 0; right: 0; z-index: 5; min-width: 82px; }
@media (hover:hover) and (pointer:fine) {
  .rwm-founder__reel:hover { transform: perspective(1100px) translateY(-5px) rotateY(-2deg); box-shadow: 3px 4px 0 rgba(0,28,39,.5), 0 35px 65px rgba(0,28,39,.24); }
  .rwm-founder__reel.is-playing:hover { transform: none; }
}
@media (prefers-reduced-motion:reduce) {
  .rwm-founder__reel, .rwm-founder__reel:hover { transform: none; transition: none; }
  .rwm-showcase .rwm-showcase__stage { rotate: none; transition: none; }
}

/* Promises row stagger */
.rwm-motion-ready .rwm-founder__promises {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.72s var(--ease) 0.22s, transform 0.82s var(--ease) 0.22s;
}
.rwm-founder__story.is-visible .rwm-founder__promises {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. TESTIMONIALS — Restrained social proof reveals
   ═══════════════════════════════════════════════════════════════════════════ */

/* Review grid stagger via .rwm-reveal + .rwm-motion-stagger-item */
.rwm-review-grid blockquote.rwm-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.72s var(--ease), transform 0.82s var(--ease);
  transition-delay: calc(var(--rwm-motion-index, 0) * 100ms);
}
.rwm-review-grid blockquote.rwm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Testimonial card hover: gentle lift */
.rwm-review-grid blockquote {
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.rwm-review-grid blockquote:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0, 28, 39, 0.16);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. FAQ — Polished visual reveals
   ═══════════════════════════════════════════════════════════════════════════ */

/* FAQ items: staggered reveal; FAQ list uses grid so items are always visible */
.rwm-motion-ready .rwm-faq__item {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.65s var(--ease), transform 0.72s var(--ease);
  transition-delay: calc(var(--rwm-motion-index, 0) * 70ms);
}
.rwm-motion-ready .rwm-faq__item.is-visible {
  opacity: 1;
  transform: none;
}

/* FAQ note block */
.rwm-motion-ready .rwm-faq-note {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.72s var(--ease) 0.3s, transform 0.82s var(--ease) 0.3s;
}
.rwm-motion-ready .rwm-faq-note.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. BOOKING CTA — Final cinematic emphasis
   ═══════════════════════════════════════════════════════════════════════════ */

/* Final section: layered entrance */
.rwm-motion-ready .rwm-final {
  overflow: hidden;
}

/* Kicker: masked clip reveal from bottom */
.rwm-motion-ready .rwm-final__kicker {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.65s ease, clip-path 0.72s var(--ease);
}
.rwm-final.is-visible .rwm-final__kicker {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
}

/* Copy block enters */
.rwm-motion-ready .rwm-final__copy {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.82s var(--ease), transform 0.9s var(--ease);
}
.rwm-final.is-visible .rwm-final__copy {
  opacity: 1;
  transform: none;
}

/* h2: underline sweep on reveal */
.rwm-final h2::after {
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  animation: none;
}
.rwm-final.is-visible h2::after {
  animation: rwm-sweep 1.3s var(--ease) 0.4s forwards;
}

/* Action buttons: sequential appearance */
.rwm-final.is-visible .rwm-actions .rwm-button:nth-child(1) {
  animation: rwm-btn-rise 0.72s var(--ease) 0.35s both;
}
.rwm-final.is-visible .rwm-actions .rwm-button:nth-child(2) {
  animation: rwm-btn-rise 0.72s var(--ease) 0.48s both;
}
.rwm-final.is-visible .rwm-actions .rwm-button:nth-child(3),
.rwm-final.is-visible .rwm-actions a:nth-child(3) {
  animation: rwm-btn-rise 0.72s var(--ease) 0.58s both;
}

@keyframes rwm-btn-rise {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* Ambient layered depth for the CTA section */
.rwm-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 110%,
    rgba(201, 242, 74, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.rwm-final > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. MICROFLOW — Process step line draw
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-microflow { position: relative; overflow: hidden; }
.rwm-microflow::before {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  content: '';
}
.rwm-microflow::after {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-mela);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.rwm-microflow.is-drawn::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. GENERAL REVEAL — Base scroll reveal
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-campaign.rwm-motion-ready .rwm-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--rwm-motion-reveal-duration, 0.72s) ease,
    transform var(--rwm-motion-reveal-duration, 0.72s) var(--ease);
  will-change: opacity, transform;
}
.rwm-campaign.rwm-motion-ready .rwm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. SECTION HEADINGS — Consistent branded reveals
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-motion-ready .rwm-section-heading {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 16px, -12px) rotateX(3deg);
  transition: opacity 0.72s var(--ease), transform 0.82s var(--ease);
}
.rwm-motion-ready .rwm-section-heading.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. BUTTON TACTILE — Restrained interactive feedback
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-motion-ready .rwm-button {
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.rwm-motion-ready .rwm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 28, 39, 0.18);
}
.rwm-motion-ready .rwm-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE CORRECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Mobile: hero layout corrections */
@media (max-width: 700px) {
  .rwm-hero,
  .rwm-hero__copy,
  .rwm-hero-title,
  .rwm-hero-title-primary,
  .rwm-hero-title-accent { min-width: 0; max-width: 100%; }

  .rwm-hero__copy {
    width: 100%;
    max-width: calc(100vw - 2.4rem);
    inline-size: calc(100vw - 2.4rem);
    overflow: visible;
  }
  .rwm-hero-title { width: 100%; inline-size: 100%; overflow: visible; white-space: normal; }

  .rwm-campaign.rwm-motion-ready .rwm-hero h1,
  .rwm-campaign.rwm-motion-ready .rwm-hero h1 > .rwm-hero-title-primary,
  .rwm-campaign.rwm-motion-ready .rwm-hero h1 > .rwm-hero-title-accent {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
    text-wrap: wrap;
  }
  .rwm-hero-title-primary,
  .rwm-hero-title-accent {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
    text-wrap: wrap;
  }
  .rwm-hero__lead,
  .rwm-hero__offer,
  .rwm-hero .rwm-actions { width: 100%; max-width: 100%; min-width: 0; }
  .rwm-hero__lead { overflow-wrap: anywhere; }
  .rwm-hero .rwm-actions { min-width: 0; }
  .rwm-hero .rwm-actions .rwm-wa-link { min-width: 0; max-width: 100%; }
  .rwm-hero .rwm-actions .rwm-wa-link__label { white-space: normal; overflow-wrap: anywhere; text-align: center; }

  /* Disable pointer parallax on touch devices */
  .rwm-hero__backplate::before,
  .rwm-hero__backplate::after,
  .rwm-hero__orbit::before { display: none; }
}

@media (max-width: 480px) {
  .rwm-hero h1 {
    width: calc(100vw - 2.4rem);
    max-width: calc(100vw - 2.4rem);
    font-size: clamp(1.75rem, 7.5vw, 2.25rem) !important;
    letter-spacing: -0.035em;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .rwm-hero .rwm-actions { padding-right: clamp(3.5rem, 8vw, 5rem); }
  .rwm-hero .rwm-actions .rwm-wa-link { min-width: 0; max-width: 100%; }
  .rwm-hero .rwm-actions .rwm-wa-link__label { white-space: normal; overflow-wrap: anywhere; text-align: center; }

  /* Reduce ornament sizes on tablet */
  .rwm-hero__backplate::before {
    width: clamp(80px, 14vw, 160px);
    height: clamp(80px, 14vw, 160px);
  }
}

/* Mobile: disable 3D tilt and card interactions that require fine pointer */
@media (pointer: coarse) {
  .rwm-motion-card-3d,
  .rwm-showcard__inner-tilt,
  .rwm-package {
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
  }
  .rwm-showcard:hover .rwm-phone {
    transform: none;
  }
  .rwm-review-grid blockquote:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. REDUCED MOTION — All content immediately visible, zero animation
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  /* Zero-duration overrides (mela.css design-v2 handles * already, but
     explicitly restore hidden elements to ensure visibility) */
  .rwm-motion-hero-canvas,
  .rwm-motion-float,
  .rwm-founder__badge { animation: none !important; }

  .rwm-campaign.rwm-motion-ready .rwm-reveal,
  .rwm-campaign.rwm-motion-ready .rwm-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rwm-motion-ready .rwm-hero__copy > * { animation: none !important; opacity: 1; transform: none; }
  .rwm-motion-ready .rwm-hero__visual   { animation: none !important; opacity: 1; transform: none; }

  .rwm-motion-stagger > .rwm-motion-stagger-item,
  .rwm-motion-ready .rwm-motion-stagger:not(.is-visible) > .rwm-motion-stagger-item,
  .rwm-motion-ready .rwm-motion-stagger.is-visible > .rwm-motion-stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rwm-motion-card-3d,
  .rwm-package,
  .rwm-showcard { transform: none !important; transition: none; }

  .rwm-motion-ready .rwm-intro__heading,
  .rwm-motion-ready .rwm-mela-visual,
  .rwm-motion-ready .rwm-metrics,
  .rwm-motion-ready .rwm-value__grid article,
  .rwm-motion-ready .rwm-value__headline--reveal,
  .rwm-motion-ready .rwm-showshelf,
  .rwm-motion-ready .rwm-showshelf__track,
  .rwm-motion-ready .rwm-founder__visual,
  .rwm-motion-ready .rwm-founder__story,
  .rwm-motion-ready .rwm-founder__promises,
  .rwm-motion-ready .rwm-section-heading,
  .rwm-motion-ready .rwm-faq__item,
  .rwm-motion-ready .rwm-faq-note,
  .rwm-motion-ready .rwm-final__copy,
  .rwm-motion-ready .rwm-final__kicker,
  .rwm-motion-ready .rwm-package-grid.rwm-showshelf,
  .rwm-review-grid blockquote.rwm-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }

  .rwm-microflow::after { transform: scaleX(1); }

  .rwm-final.is-visible .rwm-final__kicker,
  .rwm-final.is-visible .rwm-actions .rwm-button:nth-child(1),
  .rwm-final.is-visible .rwm-actions .rwm-button:nth-child(2),
  .rwm-final.is-visible .rwm-actions .rwm-button:nth-child(3),
  .rwm-final.is-visible .rwm-actions a:nth-child(3) {
    animation: none !important;
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .rwm-motion-hero-canvas { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. WEBGL FALLBACK — Graceful CSS-only depth when canvas unavailable
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-motion-webgl-fallback .rwm-hero__backplate {
  box-shadow: 0 30px 90px rgba(0, 28, 39, 0.18);
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. ANIMATION NONE (accessibility class fallback)
   ═══════════════════════════════════════════════════════════════════════════ */

.rwm-animation-none .rwm-reveal,
.rwm-animation-none .rwm-value__headline--reveal,
.rwm-animation-none .rwm-value article,
.rwm-animation-none .rwm-founder__story,
.rwm-animation-none .rwm-intro__heading,
.rwm-animation-none .rwm-mela-visual,
.rwm-animation-none .rwm-section-heading,
.rwm-animation-none .rwm-showshelf,
.rwm-animation-none .rwm-final__copy,
.rwm-animation-none .rwm-faq__item,
.rwm-animation-none .rwm-faq-note {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  transition: none !important;
  animation: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. SHARED KEYFRAMES (consolidated)
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes rwm-breathe  { to { transform: scale(1.08) translate(-2%, 2%); } }
@keyframes rwm-sweep    { from { transform: translateX(-50%) scaleX(0); opacity: 1; } to { transform: translateX(-50%) scaleX(1); opacity: 1; } }
