.fsl {
    --fsl-gutter: max(24px, calc((100vw - 1280px) / 2 + 24px));
    position: relative;
    background: #fff;
    color: #0a0a0b;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.fsl__sticky {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    padding: 96px 0 88px;
}

.fsl__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.fsl__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fsl__eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
}

.fsl__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.06;
    text-wrap: balance;
}

.fsl__desc {
    max-width: 480px;
    margin: 0;
    color: #52525b;
    font-size: 17px;
    line-height: 1.6;
}

.fsl__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.fsl__count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 64px;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.fsl__count b {
    color: #0a0a0b;
    font-size: 15px;
    font-weight: 600;
}

.fsl__bar {
    position: relative;
    flex: 1;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: #ececef;
}

.fsl__bar i {
    position: absolute;
    inset: 0;
    background: #0a0a0b;
    transform: scaleX(0);
    transform-origin: left;
}

.fsl__btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(10, 10, 11, .12);
    border-radius: 50%;
    background: #fff;
    color: #0a0a0b;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}

.fsl__btn svg {
    width: 16px;
    height: 16px;
}

.fsl__btn[data-fsl-prev] svg {
    transform: rotate(180deg);
}

.fsl__btn:hover {
    border-color: #0a0a0b;
    background: #fafafa;
}

.fsl__btn:disabled {
    opacity: .35;
    cursor: default;
}

.fsl__btn:focus-visible,
.fsl__link:focus-visible,
.fsl__pill:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 3px;
}

.fsl__viewport {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--fsl-gutter);
    scrollbar-width: none;
}

.fsl__viewport::-webkit-scrollbar {
    display: none;
}

.fsl__track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 var(--fsl-gutter);
    will-change: transform;
}

.fsl__card {
    --f: 1;
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    height: clamp(380px, 52vh, 480px);
    overflow: hidden;
    border-radius: 28px;
    scroll-snap-align: start;
    transition: box-shadow .4s ease;
}

.fsl__card--text {
    width: 400px;
    padding: 28px;
    border: 1px solid rgba(10, 10, 11, .07);
    background: #fafafa;
}

.fsl__card--text.is-dark {
    border-color: #0a0a0b;
    background:
        radial-gradient(70% 50% at 100% 0%, rgba(124, 58, 237, .38), transparent 70%),
        #0a0a0b;
    color: #fff;
}

.fsl__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fsl__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ede9fe;
    color: #6d28d9;
}

.is-dark .fsl__icon {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.fsl__svg {
    width: 22px;
    height: 22px;
}

.fsl__num {
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.is-dark .fsl__num {
    color: #71717a;
}

.fsl__name {
    margin: 28px 0 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.2;
    text-wrap: balance;
}

.fsl__text {
    margin: 12px 0 0;
    color: #52525b;
    font-size: 15px;
    line-height: 1.6;
}

.is-dark .fsl__text {
    color: #a1a1aa;
}

.fsl__card-foot {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding-top: 24px;
}

.fsl__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fsl__tags span {
    padding: 5px 10px;
    border: 1px solid rgba(10, 10, 11, .08);
    border-radius: 999px;
    background: #fff;
    color: #3f3f46;
    font-size: 12.5px;
    font-weight: 500;
}

.is-dark .fsl__tags span {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #d4d4d8;
}

.fsl__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.fsl__link svg,
.fsl__pill svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.fsl__link:hover svg,
.fsl__pill:hover svg {
    transform: translateX(3px);
}

.fsl__card--media {
    width: 560px;
    border: 1px solid rgba(10, 10, 11, .07);
    background: #f4f4f5;
}

.fsl__card--media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.fsl__card--media .fsl__num {
    position: absolute;
    top: 20px;
    right: 26px;
    z-index: 2;
    color: #71717a;
}

.fsl__mock {
    position: absolute;
    inset: 52px 28px 92px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(10, 10, 11, .06);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 48px -28px rgba(46, 16, 101, .35);
}

.fsl__mock-bar {
    display: flex;
    gap: 6px;
}

.fsl__mock-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e4e4e7;
}

.fsl__mock-bar i:first-child {
    background: #c4b5fd;
}

.fsl__mock-grid {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fsl__mock-grid i {
    border-radius: 12px;
    background: #f4f4f5;
}

.fsl__mock-grid i:first-child {
    grid-column: span 2;
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
}

.fsl__media-foot {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.fsl__card--media:has(> img) .fsl__media-foot {
    background: linear-gradient(180deg, transparent, rgba(9, 9, 11, .7));
    color: #fff;
}

.fsl__media-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.fsl__pill {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: #0a0a0b;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.fsl__card--media:has(> img) .fsl__pill {
    background: #fff;
    color: #0a0a0b;
}

.fsl.is-pinned .fsl__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
}

.fsl.is-pinned .fsl__viewport {
    overflow: visible;
    scroll-snap-type: none;
}

.fsl.is-pinned .fsl__card {
    opacity: calc(.5 + var(--f) * .5);
    transform: scale(calc(.94 + var(--f) * .06));
    transform-origin: left center;
}

.fsl.is-pinned .fsl__card--text:not(.is-dark),
.fsl.is-pinned .fsl__card--media {
    box-shadow: 0 30px 60px -40px rgba(16, 24, 40, calc(var(--f) * .35));
}

@media (max-width: 1023px) {
    .fsl__sticky {
        gap: 32px;
        padding: 72px 0;
    }

    .fsl__head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .fsl__card--text {
        width: min(82vw, 380px);
        padding: 24px;
    }

    .fsl__card--media {
        width: min(86vw, 480px);
    }

    .fsl__card {
        height: 420px;
    }
}

@media (max-width: 640px) {
    .fsl {
        --fsl-gutter: 16px;
    }

    .fsl__head {
        padding: 0 16px;
    }

    .fsl__btn {
        display: none;
    }

    .fsl__name {
        font-size: 21px;
    }

    .fsl__mock {
        inset: 48px 20px 84px;
    }
}
