/* =============================================================================
   Obsi Artists Carousel — 1:1 match to Figma node 12:116
   Figma: Obsi Wireframe V1 > Desktop-Black Main Page > Meet The Artist Section

   Figma measurements (px @ 1440 viewport):
   ─ Section: 1440 × 748, bg: #000
   ─ Title:   Avenir Heavy Oblique 62px, white, italic
   ─ Card base (side): 250 × 414
   ─ Card active (center): 307 × 508  →  scale = 307/250 = 1.228
   ─ Photo (side): 240 × 240 (inset 5px from card edges), border-radius 15px
   ─ Photo (center): 283 × 302 (inset ~12px sides, 5px top), border-radius 15px
   ─ Card border: 1px solid white (outer)
   ─ Accent border: 1px solid #9c8ddc, inset 4px from card edge
   ─ Side card opacity: 0.5
   ─ Card translateX offsets from center: ±220px (adj), ±520px (far)
   ─ Dots: 13px circles, gap ~14px, active = #9c8ddc fill
   ─ Arrows: #9C8DDC chevrons at x≈73 and x≈1368
   ============================================================================= */

/* ── Section ──────────────────────────────────────────────────────────── */
.obsi-mta {
    background: #000000;
    padding: 56px 0 64px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ── Title — Figma: Avenir Heavy Oblique 62px #fff ────────────────────── */
.obsi-mta__title {
    font-family: 'Avenir Next', 'Avenir', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(36px, 4.3vw, 62px);
    line-height: 1.0;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-align: center;
    margin: 0 0 52px;
}

/* ── Stage (arrows + track) ──────────────────────────────────────────── */
.obsi-mta__stage {
    position: relative;
    width: 100%;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Arrows — Figma: x≈73 left, x≈1368 right ────────────────────────── */
.obsi-mta__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 20;
    line-height: 0;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.obsi-mta__arrow--prev { left: clamp(12px, 5vw, 73px); }
.obsi-mta__arrow--next { right: clamp(12px, 5vw, 73px); }
.obsi-mta__arrow:hover { opacity: 0.55; }
.obsi-mta__arrow:focus-visible {
    outline: 2px solid #9c8ddc;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ── Track ────────────────────────────────────────────────────────────── */
.obsi-mta__track {
    position: relative;
    width: 100%;
    height: 520px;
}

/* ── Card — base = side-card size: 250 × 414 ─────────────────────────── */
.obsi-mta__card {
    position: absolute;
    width: 250px;
    height: 414px;
    left: 50%;
    top: 50%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    /* outer border — Figma: 1px solid white */
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity   0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
}

/* ── Position classes ─────────────────────────────────────────────────── */
/*  All use translate(-50%, -50%) to center the card on its anchor,
    then add horizontal offset. Center also applies scale(1.228).       */

.obsi-mta__card--far-left {
    transform: translate(calc(-50% - 520px), -50%);
    opacity: 0.5;
    z-index: 1;
}
.obsi-mta__card--left {
    transform: translate(calc(-50% - 220px), -50%);
    opacity: 0.5;
    z-index: 2;
}
.obsi-mta__card--center {
    transform: translate(-50%, -50%) scale(1.228);
    opacity: 1;
    z-index: 5;
    border-color: rgba(255, 255, 255, 0.8);
}
.obsi-mta__card--right {
    transform: translate(calc(-50% + 220px), -50%);
    opacity: 0.5;
    z-index: 2;
}
.obsi-mta__card--far-right {
    transform: translate(calc(-50% + 520px), -50%);
    opacity: 0.5;
    z-index: 1;
}
.obsi-mta__card--hidden {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Card BG texture layer — Figma: Rectangle 45 (artist-card-bg) ───── */
.obsi-mta__card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ── Card purple accent border — Figma: #9c8ddc, inset 4px ──────────── */
.obsi-mta__card-accent {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #9c8ddc;
    border-radius: 12px;
    z-index: 4;
    pointer-events: none;
}

/* ── Card photo — Figma: 240×240 (side), inset 5px, radius 15px ──────── */
.obsi-mta__card-photo {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 58%;
    max-height: 58%;
    border-radius: 13px 13px 0 0; /* top corners only */
    overflow: hidden;
    z-index: 1;
}
.obsi-mta__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* overridden inline via focal point */
    display: block;
}
.obsi-mta__card-photo-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1e1e2e 0%, #0a0a0f 100%);
}

/* ── Card info — name + specialty, sits below photo via margin-top ──────── */
.obsi-mta__card-info {
    position: absolute;
    top: calc(5px + 58%); /* flush with bottom of photo */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px 10px;
    text-align: center;
}

/* Name — wraps freely, anchored from top of info area */
.obsi-mta__card-name {
    font-family: 'Avenir Next', 'Avenir', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
    color: #c2b8eb;
    margin-top: 18px;   /* ← gap between photo bottom and name — adjust freely */
    margin-bottom: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Specialty — pinned to bottom of info area so name length never moves it */
.obsi-mta__card-spec {
    position: absolute;
    bottom: 28px;       /* ← distance from card bottom — adjust freely */
    left: 10px;
    right: 10px;
    font-family: 'Inter', 'Arial', Helvetica, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
    color: #999696;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

/* ── Dot indicators — Figma: ~13px, gap 14px, active #9c8ddc ─────────── */
.obsi-mta__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}
.obsi-mta__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    cursor: pointer;
    transition:
        background   0.25s ease,
        border-color 0.25s ease,
        transform    0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.obsi-mta__dot--on {
    background: #9c8ddc;
    border-color: #9c8ddc;
    transform: scale(1.25);
}
.obsi-mta__dot:hover:not(.obsi-mta__dot--on) {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.15);
}
.obsi-mta__dot:focus-visible {
    outline: 2px solid #9c8ddc;
    outline-offset: 3px;
}

/* ── No artists fallback ─────────────────────────────────────────────── */
.obsi-no-artists {
    color: #666;
    text-align: center;
    padding: 40px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .obsi-mta__card--far-left  { transform: translate(calc(-50% - 420px), -50%); }
    .obsi-mta__card--far-right { transform: translate(calc(-50% + 420px), -50%); }
    .obsi-mta__card--left      { transform: translate(calc(-50% - 190px), -50%); }
    .obsi-mta__card--right     { transform: translate(calc(-50% + 190px), -50%); }
}
@media (max-width: 900px) {
    .obsi-mta__stage { height: 480px; }
    .obsi-mta__card--far-left,
    .obsi-mta__card--far-right { opacity: 0; pointer-events: none; }
    .obsi-mta__card--left  { transform: translate(calc(-50% - 160px), -50%); opacity: 0.45; }
    .obsi-mta__card--right { transform: translate(calc(-50% + 160px), -50%); opacity: 0.45; }
}
@media (max-width: 600px) {
    .obsi-mta__stage { height: 440px; }
    .obsi-mta__card--left  { transform: translate(calc(-50% - 130px), -50%); opacity: 0.3; }
    .obsi-mta__card--right { transform: translate(calc(-50% + 130px), -50%); opacity: 0.3; }
    .obsi-mta__arrow--prev { left: 6px; }
    .obsi-mta__arrow--next { right: 6px; }
}
