/* ============================================================
   MERIDIAN — FX styles (premium animation system)
   ============================================================ */

/* ===== 03 COLOUR BLOCK WIPE ===== */
[data-wipe] { position: relative; display: inline-block; overflow: hidden; }
[data-wipe] .wipe-inner { display: inline-block; opacity: 0; }
[data-wipe]::after {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: left; z-index: 2; pointer-events: none;
}
[data-wipe].go::after { animation: wipeBlock 1.05s var(--ease) forwards; }
[data-wipe].go .wipe-inner { animation: wipeText 1.05s steps(1, end) forwards; }
[data-wipe].reduce .wipe-inner { opacity: 1; animation: none; }
[data-wipe].reduce::after { display: none; }
@keyframes wipeBlock {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  58%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes wipeText {
  0%, 57% { opacity: 0; }
  60%, 100% { opacity: 1; }
}
/* safety escape hatch: force final visible state regardless of animation clock */
[data-wipe].wipe-done::after { animation: none !important; transform: scaleX(0) !important; }
[data-wipe].wipe-done .wipe-inner { animation: none !important; opacity: 1 !important; }
/* rust wipe variant for dark sections */
[data-wipe="rust"]::after { background: var(--rust); }

/* ===== 06 CHARACTER SCATTER ===== */
[data-scatter] { display: inline-block; }
.scatter-ch { display: inline-block; will-change: transform, opacity; }

/* ===== 07 DIAGONAL STAGGER ===== */
.diag-item { opacity: 0; transform: scale(0.8); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); will-change: transform, opacity; }
.diag-item.in { opacity: 1; transform: none; }

/* ===== 10 CURSOR TRAIL ===== */
.trail-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust); z-index: 480; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(1); will-change: transform, opacity;
}

/* ===== 13/15 CANVAS LAYERS ===== */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .fx-canvas { z-index: 1; }
.hero__overlay-tint, .hero__content, .hero__scroll { z-index: 5; }
.editorial__media .fx-canvas { z-index: 0; opacity: 0.9; }

/* ===== 09 RIPPLE + ELASTIC ===== */
.ripple-host { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.35);
  transform: translate(-50%, -50%) scale(0); pointer-events: none;
  animation: rippleOut 0.6s var(--ease) forwards;
}
.btn-ghost .ripple, .btn-primary .ripple { background: rgba(255,255,255,0.3); }
@keyframes rippleOut { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ===== 18 MARQUEE (rAF-driven) ===== */
.ticker__row { animation: none !important; will-change: transform; }
