/* ============================================================
   Tilt Slider — replica of Framer Marketplace "3D Tilt Slider".
   Measured from interactive3dtilt.framer.website
   ============================================================ */

.tilt {
  /* ---- geometry (measured) ---- */
  --tl-card-w: 280px;
  --tl-card-h: 460px;
  --tl-gap: 16px;             /* pitch 296 */
  --tl-shot-h: 209px;
  --tl-shot-radius: 8px;
  --tl-perspective: 1400px;

  /* ---- type (measured) ---- */
  --tl-ink: rgb(242, 243, 240);
  --tl-ink-dim: rgba(242, 243, 240, .68);

  /* ---- tilt (measured) ---- */
  --tl-max: 18deg;            /* cards cap at ~18deg of rotateY */

  position: relative;
  width: 100%;
  overflow: hidden;
  perspective: var(--tl-perspective);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tilt:active { cursor: grabbing; }

.tilt__track {
  display: flex;
  gap: var(--tl-gap);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt__card {
  flex: 0 0 var(--tl-card-w);
  width: var(--tl-card-w);
  height: var(--tl-card-h);
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-origin: center;
  backface-visibility: hidden;
}

.tilt__shot {
  width: 100%;
  height: var(--tl-shot-h);
  border-radius: var(--tl-shot-radius);
  overflow: hidden;
  background: #1a1a1a;
  flex: none;
}
.tilt__shot > img,
.tilt__shot > .tilt__art { width: 100%; height: 100%; object-fit: cover; display: block; }

.tilt__role {
  margin: 26px 0 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--tl-ink-dim);
}

.tilt__name {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 31.36px;
  font-weight: 500;
  letter-spacing: -0.98px;
  color: var(--tl-ink);
}

.tilt__desc {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  letter-spacing: -0.18px;
  color: var(--tl-ink-dim);
}

.tilt__more {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.tilt__more i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--tl-ink-dim);
}

@media (prefers-reduced-motion: reduce) {
  .tilt { --tl-max: 0deg; }
}
