/* =========================================================
   RAVEN REALM SECTION
========================================================= */

.raven-realm {
    position: relative;
    isolation: isolate;

    min-height: clamp(44rem, 67vw, 58rem);

    padding:
        clamp(7rem, 11vw, 10rem)
        var(--page-gutter)
        clamp(7rem, 10vw, 9rem);

    overflow: hidden;

    background: #000;
    color: var(--color-white);
}

/* =========================================================
   BACKGROUND
========================================================= */

.raven-realm__background {
    position: absolute;
    z-index: 0;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.18) 18%,
            rgba(0, 0, 0, 0.08) 55%,
            rgba(0, 0, 0, 0.76) 100%
        ),
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.08) 37%,
            rgba(0, 0, 0, 0.08) 63%,
            rgba(0, 0, 0, 0.42) 100%
        ),
        url("../assets/images/mythic-raven.webp")
        center / cover no-repeat;

    transform: scale(1.02);

    will-change:
        transform,
        opacity,
        filter;
}

/*
 * Dark lower fade for the CTA area.
 */
.raven-realm::after {
    content: "";

    position: absolute;
    z-index: 1;

    right: 0;
    bottom: 0;
    left: 0;

    height: clamp(8rem, 15vw, 13rem);

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.45) 55%,
            #000 100%
        );
}

/* =========================================================
   INNER GRID
========================================================= */

.raven-realm__inner {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: start;

    gap: clamp(5rem, 13vw, 14rem);

    width: min(100%, 78rem);
    margin-inline: auto;
}

.raven-realm__column {
    min-width: 0;

    will-change:
        opacity,
        transform,
        filter;
}

.raven-realm__column--left {
    text-align: left;
}

.raven-realm__column--right {
    text-align: right;
}

/* =========================================================
   HEADINGS
========================================================= */

.raven-realm__heading-group {
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

.raven-realm__title {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.raven-realm__title-muted {
    color: var(--color-white);
}

.raven-realm__title-accent {
    color: var(--color-raven-red);
}

.raven-realm__subtitle {
    margin:
        clamp(0.45rem, 0.9vw, 0.8rem)
        0
        0;

    color: rgba(255, 255, 255, 0.9);

    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.15vw, 1rem);
    font-weight: 600;
    line-height: 1.2;
}

/* =========================================================
   LISTS
========================================================= */

.raven-realm__list {
    display: flex;
    flex-direction: column;

    gap: clamp(0.7rem, 1.25vw, 1rem);

    margin: 0;
    padding: 0;

    list-style: none;

    color: rgba(255, 255, 255, 0.84);

    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    font-weight: 300;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.raven-realm__list--right {
    align-items: flex-end;
}

/* =========================================================
   CTA
========================================================= */

.raven-realm__cta {
    position: absolute;
    z-index: 4;

    left: 50%;
    bottom: clamp(2.5rem, 4vw, 4rem);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: calc(100% - (var(--page-gutter) * 2));

    min-height: clamp(2.2rem, 3vw, 2.7rem);

    padding:
        0.35rem
        clamp(1rem, 2vw, 1.65rem);

    border-radius: 999px;

    background: var(--color-raven-red);
    color: var(--color-white);

    font-family: var(--font-body);
    font-size: clamp(0.78rem, 1.2vw, 1rem);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transform: translateX(-50%);

    will-change:
        opacity,
        transform;

    transition:
        background-color 250ms ease,
        box-shadow 350ms ease;
}

.raven-realm__cta:hover {
    background: #ff2929;

    box-shadow:
        0 0.8rem 2.2rem rgba(245, 25, 25, 0.22);
}

.raven-realm__cta:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 0.3rem;
}

/* =========================================================
   CLOUD OVERLAP FROM PREVIOUS SECTION
========================================================= */

/*
 * Τα clouds του προηγούμενου section πρέπει να περάσουν
 * οπτικά πάνω από το realm section.
 */
.raven-method {
    z-index: 2;

    margin-bottom: clamp(-8rem, -10vw, -5rem);
}

.raven-method__clouds {
    overflow: visible;
}

.raven-realm {
    z-index: 1;

    padding-top: clamp(10rem, 15vw, 14rem);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .raven-realm {
        min-height: clamp(44rem, 85vw, 54rem);
    }

    .raven-realm__inner {
        gap: clamp(3rem, 8vw, 7rem);
    }

    .raven-realm__title {
        font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .raven-method {
        margin-bottom: -5rem;
    }

    .raven-realm {
        min-height: auto;

        padding:
            clamp(9rem, 30vw, 12rem)
            var(--page-gutter)
            clamp(8rem, 26vw, 11rem);
    }

    .raven-realm__background {
        background:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.2) 25%,
                rgba(0, 0, 0, 0.3) 62%,
                rgba(0, 0, 0, 0.85) 100%
            ),
            url("../assets/images/mythic-raven.webp")
            center / cover no-repeat;
    }

    .raven-realm__inner {
        grid-template-columns: 1fr;

        gap: clamp(4rem, 16vw, 6rem);
    }

    .raven-realm__column--left,
    .raven-realm__column--right {
        text-align: left;
    }

    .raven-realm__list--right {
        align-items: flex-start;
    }

    .raven-realm__title {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .raven-realm__list {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .raven-realm__cta {
        position: relative;

        left: auto;
        bottom: auto;

        width: max-content;
        max-width: 100%;

        margin:
            clamp(4rem, 14vw, 6rem)
            auto
            0;

        white-space: normal;

        transform: none!important;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
    .raven-realm__cta {
        width: 100%;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .raven-realm__background,
    .raven-realm__column,
    .raven-realm__cta {
        transition: none;
    }
}