/* ============================================================
   MERIDIAN — Interactive (pointer-reactive) layer
   Only active on fine pointers; degrades to static otherwise
   ============================================================ */

/* ---------- CAROUSEL: 3D context + drag affordance ---------- */
.capsule__track { perspective: 1400px; cursor: grab; }
.capsule__track.dragging { cursor: grabbing; }
.card {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), opacity 0.85s var(--ease), filter 0.85s var(--ease);
  will-change: transform;
}
.card.tilt { transition: transform 0.12s linear; }

/* dynamic light overlay that tracks the cursor angle (01) */
.card__media::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), rgba(255,255,255,0.4), rgba(255,255,255,0.05) 38%, transparent 60%);
  mix-blend-mode: soft-light;
}
.card.tilt .card__media::after { opacity: 1; }

/* lookbook tiles tilt too */
.look { transform-style: preserve-3d; transition: transform 0.5s var(--ease); will-change: transform; }
.look.tilt { transition: transform 0.12s linear; }

/* keep inner media flat-lifted in 3D so tilt reads as depth */
.card__info { transform: translateZ(20px); }
.card__tag, .card__wish { transform: translateZ(40px); }

/* ---------- EDITORIAL SPOTLIGHT ---------- */
.editorial__media { position: relative; }
.editorial__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(200,68,14,0.30), rgba(200,68,14,0.08) 38%, transparent 64%);
  mix-blend-mode: screen;
}
.editorial__media:hover .editorial__glow { opacity: 1; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring { display: none; }

@media (pointer: fine) {
  body { cursor: none; }
  a, button, .size, .nav__link, .card, .cat, .look, .icon-btn, .carousel-arrow, .to-top, .footer__social a { cursor: none; }

  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 500;
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff; transform: translate(-50%, -50%);
    pointer-events: none; mix-blend-mode: difference;
  }
  .cursor-ring {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; z-index: 500;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.7);
    transform: translate(-50%, -50%);
    pointer-events: none; mix-blend-mode: difference;
    transition: width 0.32s var(--ease), height 0.32s var(--ease),
                border-color 0.32s var(--ease), background 0.32s var(--ease);
  }
  .cursor-ring__lbl {
    font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
    color: #fff; opacity: 0; transform: scale(0.8);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .cursor-ring.grow { width: 56px; height: 56px; border-color: rgba(255,255,255,0.9); }
  .cursor-ring.label { width: 76px; height: 76px; background: rgba(255,255,255,1); border-color: transparent; }
  .cursor-ring.label .cursor-ring__lbl { opacity: 1; transform: none; }
  .cursor-ring.press { width: 26px; height: 26px; }
}

/* ---------- MAGNETIC BUTTONS (transition handled inline by JS) ---------- */
[data-magnetic] { will-change: transform; }

/* ---------- REDUCED MOTION / COARSE POINTER ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto !important; }
  .card.tilt { transform: none !important; }
}
