.social {
    position: relative;
    z-index: 0;
    padding: var(--space-xl) 0;
    background-color: var(--color-surface);
}

.social::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    z-index: -1;
    background-image: linear-gradient(to bottom, var(--color-bg), var(--color-surface));
}

.social-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-header .eyebrow,
.social-header .section-heading {
    margin-bottom: 0;
}

.social-follow-btn {
    display: none;
    flex-shrink: 0;
}

.social-follow-btn-mobile {
    display: block;
    width: fit-content;
    margin: var(--space-md) auto 0;
}

.social-reels {
    position: relative;
    overflow: hidden;
    height: min(calc(70vw * 16 / 9), 900px);
}

.social-reel-item {
    position: absolute;
    left: 15%;
    width: 70%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-text);
    cursor: pointer;
}

.social-reel-item.is-center {
    box-shadow: 0 0 0 1px rgba(46, 36, 28, 0.15);
}

.social-carousel-btn {
    display: none;
}

.social-reel-item.is-side .social-reel-overlay {
    background-color: rgba(46, 36, 28, 0.55);
}

.social-reel-item.is-center .social-reel-overlay {
    background-image: linear-gradient(180deg, transparent 60%, rgba(46, 36, 28, 0.55) 100%);
}

.social-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 0.5s ease;
}

.social-reel-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, transparent 60%, rgba(46, 36, 28, 0.55) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-sm);
    transition: opacity 0.3s ease;
}

.social-reel-ig {
    width: 22px;
    height: 22px;
    color: var(--color-surface);
    opacity: 0.9;
}

.social-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.social-scroll-hint-arrow--right {
    animation: socialHintRight 1.6s ease-in-out infinite;
}

.social-scroll-hint-arrow--left {
    animation: socialHintLeft 1.6s ease-in-out infinite;
}

@keyframes socialHintRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

@keyframes socialHintLeft {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-4px);
        opacity: 1;
    }
}

@media (max-width: 899px) {
    .social {
        padding: var(--space-lg) 0;
    }

    .social-reels {
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
    }
}

@media (min-width: 900px) {
    .social-follow-btn {
        display: inline-block;
    }

    .social-follow-btn-mobile {
        display: none;
    }

    .social-reels {
        height: clamp(420px, calc(100vh - 200px), 820px);
        aspect-ratio: 1360 / 1050;
        max-width: 100%;
        margin: 0 auto;
    }

    .social-reel-item {
        width: 50%;
        left: 25%;
        z-index: 1;
        box-shadow: 0 20px 40px rgba(46, 36, 28, 0.2);
    }

    .social-reel-item.is-center {
        box-shadow: 0 0 0 1px rgba(46, 36, 28, 0.2), 0 25px 60px rgba(46, 36, 28, 0.24);
    }

    .social-reel-item.is-side .social-reel-overlay {
        background-color: rgba(46, 36, 28, 0.6);
    }

    .social-carousel-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        width: 50px;
        height: 50px;
        background-color: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-full);
        color: var(--color-text);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(46, 36, 28, 0.1);
        transition: border-color 0.2s ease, color 0.2s ease;
    }

    .social-carousel-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent-dark);
    }

    .social-carousel-prev {
        left: 24px;
    }

    .social-carousel-next {
        right: 24px;
    }

    .social-reel-ig {
        width: 28px;
        height: 28px;
    }

    .social-scroll-hint {
        display: none;
    }
}
