/* =========================================================
   RAVEN FLOCK SECTION
========================================================= */

.raven-flock {
    position: relative;
    isolation: isolate;

    padding:
        clamp(7rem, 11vw, 11rem)
        0
        clamp(7rem, 11vw, 11rem);

    overflow: hidden;

    background: #fff;
    color: #1d1d1d;
}

/*
 * Smooth transition from the previous dark section.
 */
.raven-flock::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    left: 0;

    height: clamp(6rem, 12vw, 11rem);

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            #000 0%,
            rgba(0, 0, 0, 0.78) 14%,
            rgba(0, 0, 0, 0.26) 52%,
            rgba(255, 255, 255, 0.75) 82%,
            #fff 100%
        );
}

/* =========================================================
   TOP / EYEBROW
========================================================= */

.raven-flock__top {
    position: relative;
    z-index: 2;
}

.raven-flock__eyebrow {
    margin:
        clamp(1rem, 3vw, 2.5rem)
        0
        clamp(2.5rem, 4vw, 4rem);

    color: var(--color-raven-red);

    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1vw, 0.95rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;

    will-change:
        opacity,
        transform,
        filter;
}

/* =========================================================
   LOGO MARQUEE
========================================================= */

.raven-flock__marquee {
    position: relative;

    width: 100%;

    overflow: hidden;

    /*
     * Soft mask so logos fade at both edges.
     */
    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%
        );
}

.raven-flock__marquee-track {
    display: flex;

    width: max-content;

    animation:
        ravenFlockMarquee
        26s
        linear
        infinite;

    will-change: transform;
}

.raven-flock__marquee:hover
.raven-flock__marquee-track {
    animation-play-state: paused;
}

.raven-flock__logo-group {
    display: flex;
    align-items: center;

    gap: clamp(3rem, 7vw, 7rem);

    padding-right: clamp(3rem, 7vw, 7rem);
}

.raven-flock__logo-group img {
    width: clamp(7rem, 12vw, 11rem);
    height: clamp(2.5rem, 4.5vw, 4rem);

    object-fit: contain;

    opacity: 0.58;

    filter:
        grayscale(1)
        brightness(0.38);

    transition:
        opacity 300ms ease,
        filter 300ms ease,
        transform 350ms var(--ease-premium);
}

.raven-flock__logo-group img:nth-child(3n + 1) {
    opacity: 0.36;
}

.raven-flock__logo-group img:nth-child(3n + 2) {
    opacity: 0.72;
}

.raven-flock__logo-group img:hover {
    opacity: 1;

    filter:
        grayscale(1)
        brightness(0.18);

    transform: scale(1.04);
}

@keyframes ravenFlockMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* =========================================================
   CONTENT GRID
========================================================= */

.raven-flock__inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    align-items: center;

    gap: clamp(3rem, 7vw, 7rem);

    width: min(
        calc(100% - (var(--page-gutter) * 2)),
        78rem
    );

    margin:
        clamp(5rem, 9vw, 8rem)
        auto
        0;
}

/* =========================================================
   VISUAL
========================================================= */

.raven-flock__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    will-change:
        opacity,
        transform,
        filter;
}

.raven-flock__image {
    display: block;

    width: min(100%, 35rem);
    height: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}

/* =========================================================
   CONTENT
========================================================= */

.raven-flock__content {
    width: min(100%, 36rem);

    will-change:
        opacity,
        transform,
        filter;
}

.raven-flock__title {
    margin: 0 0 clamp(0.4rem, 1vw, 0.75rem);

    color: var(--color-raven-red);

    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.3rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.raven-flock__identity {
    display: flex;
    flex-direction: column;

    margin-bottom: clamp(1.5rem, 2.8vw, 2.2rem);

    font-family: var(--font-body);
}

.raven-flock__identity strong {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.15;
}

.raven-flock__identity span {
    margin-top: 0.1rem;

    color: rgba(29, 29, 29, 0.7);

    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    font-weight: 300;
    line-height: 1.2;
}

.raven-flock__body {
    margin: 0;

    color: rgba(29, 29, 29, 0.82);

    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.35vw, 1.15rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* =========================================================
   CTA
========================================================= */

.raven-flock__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: 100%;

    min-height: clamp(2.15rem, 3vw, 2.65rem);

    margin-top: clamp(2rem, 3.5vw, 3rem);

    padding:
        0.35rem
        clamp(1rem, 2vw, 1.6rem);

    border-radius: 999px;

    background: var(--color-raven-red);
    color: #fff;

    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.15vw, 0.95rem);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 350ms var(--ease-premium),
        background-color 250ms ease,
        box-shadow 350ms ease;
}

.raven-flock__cta:hover {
    transform: translateY(-0.2rem);

    background: #ff2929;

    box-shadow:
        0 0.8rem 2.2rem rgba(245, 25, 25, 0.22);
}

.raven-flock__cta:focus-visible {
    outline: 2px solid #111;
    outline-offset: 0.3rem;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .raven-flock__inner {
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .raven-flock__image {
        width: min(100%, 30rem);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .raven-flock {
        padding:
            clamp(7rem, 25vw, 10rem)
            0
            clamp(6rem, 20vw, 8rem);
    }

    .raven-flock__eyebrow {
        margin-bottom: clamp(2rem, 8vw, 3rem);
    }

    .raven-flock__logo-group {
        gap: clamp(2.5rem, 12vw, 4rem);
        padding-right: clamp(2.5rem, 12vw, 4rem);
    }

    .raven-flock__logo-group img {
        width: clamp(6rem, 30vw, 9rem);
    }

    .raven-flock__inner {
        grid-template-columns: 1fr;

        gap: clamp(3rem, 12vw, 5rem);

        width:
            calc(
                100% -
                (var(--page-gutter) * 2)
            );

        margin-top: clamp(4rem, 16vw, 6rem);
    }

    .raven-flock__visual {
        order: 1;
    }

    .raven-flock__content {
        order: 2;

        width: 100%;
    }

    .raven-flock__image {
        width: min(100%, 31rem);
    }

    .raven-flock__title {
        font-size: clamp(2.9rem, 14vw, 4.3rem);
    }

    .raven-flock__body {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .raven-flock__cta {
        width: 100%;

        white-space: normal;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .raven-flock__marquee-track {
        animation: none;
    }

    .raven-flock__logo-group:nth-child(2) {
        display: none;
    }

    .raven-flock__cta,
    .raven-flock__logo-group img {
        transition: none;
    }
}