/* ==========================================================
   HOME — PERFORMANCE FILMS GATEWAY
   ========================================================== */

.home-films-gateway {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding:
        clamp(90px, 11vw, 170px)
        0;
    border-top: 1px solid rgba(215, 181, 112, .18);
    border-bottom: 1px solid rgba(215, 181, 112, .16);
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(206, 168, 91, .15),
            transparent 32%
        ),
        radial-gradient(
            circle at 8% 92%,
            rgba(126, 89, 40, .09),
            transparent 29%
        ),
        linear-gradient(
            145deg,
            #17130f 0%,
            #0d0b09 52%,
            #070706 100%
        );
    color: #f5efe5;
}

.home-films-gateway::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 18%,
            #000 82%,
            transparent
        );
}

.home-films-gateway::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(620px, 76vw);
    height: 1px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(240, 208, 140, .9),
            transparent
        );
    box-shadow:
        0 0 30px rgba(224, 186, 108, .24);
}

.home-films-gateway-inner {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.home-films-gateway-heading {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(270px, .65fr);
    gap: clamp(44px, 7vw, 110px);
    align-items: end;
    margin-bottom: clamp(48px, 7vw, 90px);
}

.home-films-gateway-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: #d8b775;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.home-films-gateway-kicker::before {
    content: "";
    width: 46px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            #d8b775,
            rgba(216,183,117,.12)
        );
}

.home-films-gateway h2 {
    max-width: 940px;
    margin: 0;
    color: #f6f0e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6.5vw, 94px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.home-films-gateway-intro {
    max-width: 520px;
    margin: 0 0 8px;
    padding-left: 28px;
    border-left: 1px solid rgba(219, 181, 107, .34);
    color: rgba(246, 240, 230, .72);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.75;
}

.home-films-gateway-preview {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin-bottom: clamp(42px, 6vw, 72px);
}

.home-films-gateway-card {
    position: relative;
    overflow: hidden;
    min-height: clamp(260px, 31vw, 470px);
    border: 1px solid rgba(221, 184, 111, .18);
    background:
        linear-gradient(
            145deg,
            #1d1812,
            #090807
        );
    box-shadow:
        0 28px 70px rgba(0,0,0,.28);
    transition:
        transform .45s ease,
        border-color .45s ease,
        box-shadow .45s ease;
}

.home-films-gateway-card:nth-child(2) {
    transform: translateY(34px);
}

.home-films-gateway-card:hover {
    transform: translateY(-7px);
    border-color: rgba(231, 198, 129, .48);
    box-shadow:
        0 42px 95px rgba(0,0,0,.42),
        0 0 36px rgba(197,151,72,.08);
}

.home-films-gateway-card:nth-child(2):hover {
    transform: translateY(27px);
}

.home-films-gateway-card-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition:
        transform .8s ease,
        filter .6s ease;
    filter:
        saturate(.88)
        contrast(1.04)
        brightness(.8);
}

.home-films-gateway-card:hover
.home-films-gateway-card-image {
    transform: scale(1.07);
    filter:
        saturate(1)
        contrast(1.06)
        brightness(.92);
}

.home-films-gateway-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(5,5,4,.02) 22%,
            rgba(5,5,4,.22) 52%,
            rgba(5,5,4,.9) 100%
        );
}

.home-films-gateway-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(245, 220, 162, .58);
    border-radius: 50%;
    background:
        rgba(8,7,6,.46)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 14 16'%3E%3Cpath fill='%23f2dca5' d='M1 1l12 7-12 7z'/%3E%3C/svg%3E")
        center / 12px 14px
        no-repeat;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-films-gateway-card-content {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding:
        clamp(22px, 2.5vw, 36px);
}

.home-films-gateway-card-number {
    display: block;
    margin-bottom: 10px;
    color: #d8b775;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.home-films-gateway-card-title {
    margin: 0;
    color: #f5efe5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 2.1vw, 32px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.home-films-gateway-actions {
    display: flex;
    justify-content: center;
    padding-top: 26px;
}

.home-films-gateway-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 58px;
    padding: 0 34px;
    border: 1px solid rgba(235, 202, 135, .64);
    border-radius: 999px;
    background:
        linear-gradient(
            145deg,
            rgba(211, 174, 100, .18),
            rgba(20, 17, 13, .72)
        );
    color: #f5efe5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .17em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow:
        0 18px 46px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.08);
    transition:
        transform .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.home-films-gateway-button:hover,
.home-films-gateway-button:focus-visible {
    transform: translateY(-3px);
    color: #f1d593;
    border-color: rgba(242, 212, 147, .94);
    box-shadow:
        0 24px 60px rgba(0,0,0,.38),
        0 0 28px rgba(201,158,77,.12);
    outline: none;
}

.home-films-gateway-button span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 900px) {
    .home-films-gateway-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-films-gateway-intro {
        max-width: 720px;
    }

    .home-films-gateway-preview {
        grid-template-columns: 1fr;
    }

    .home-films-gateway-card,
    .home-films-gateway-card:nth-child(2) {
        min-height: 420px;
        transform: none;
    }

    .home-films-gateway-card:nth-child(2):hover {
        transform: translateY(-7px);
    }
}

@media (max-width: 620px) {
    .home-films-gateway-inner {
        width: min(100% - 28px, 1380px);
    }

    .home-films-gateway-card,
    .home-films-gateway-card:nth-child(2) {
        min-height: 330px;
    }

    .home-films-gateway-intro {
        padding-left: 20px;
    }

    .home-films-gateway-button {
        width: 100%;
        padding: 0 20px;
        text-align: center;
    }

    .home-films-gateway-card:hover,
    .home-films-gateway-card:nth-child(2):hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-films-gateway-card,
    .home-films-gateway-card-image,
    .home-films-gateway-button {
        transition: none;
    }
}
