/* =========================================================
   FEATURED PROJECTS
   ========================================================= */

.projects-section {
    position: relative;

    padding: 155px 0 175px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 35%,
            rgba(255, 45, 45, 0.07),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 70%,
            rgba(255, 132, 0, 0.08),
            transparent 32%
        ),
        #070707;

    isolation: isolate;
}

.projects-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: min(90%, 1200px);
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.14),
            transparent
        );

    transform: translateX(-50%);
}

.projects-section__glow {
    position: absolute;
    z-index: -1;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    filter: blur(150px);

    opacity: 0.14;

    pointer-events: none;
}

.projects-section__glow--red {
    top: 15%;
    left: -420px;

    background: #ff3333;
}

.projects-section__glow--orange {
    right: -440px;
    bottom: 5%;

    background: #ff8a00;
}

.projects-heading {
    margin-bottom: 72px;
}

/* =========================================================
   PROJECT GRID
   ========================================================= */

.projects-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    grid-template-rows: repeat(2, minmax(330px, auto));
    gap: 22px;
}

.project-card {
    --pointer-x: 50%;
    --pointer-y: 50%;
    --project-rgb: 255, 91, 29;

    position: relative;

    min-width: 0;

    overflow: hidden;

    color: #ffffff;

    background: #101010;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 32px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);

    isolation: isolate;

    transition:
        transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 350ms ease,
        box-shadow 350ms ease;
}

.project-card::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    opacity: 0;

    background:
        radial-gradient(
            550px circle at var(--pointer-x) var(--pointer-y),
            rgba(var(--project-rgb), 0.17),
            transparent 48%
        );

    transition: opacity 300ms ease;

    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-9px);

    border-color: rgba(var(--project-rgb), 0.3);

    box-shadow:
        0 45px 120px rgba(0, 0, 0, 0.5),
        0 20px 65px rgba(var(--project-rgb), 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card--featured {
    grid-row: 1 / span 2;

    min-height: 720px;
}

.project-card--secondary {
    min-height: 340px;
}

.project-card--film {
    --project-rgb: 255, 63, 63;
}

.project-card--workshop {
    --project-rgb: 255, 139, 20;
}

/* =========================================================
   BACKGROUND AND OVERLAY
   ========================================================= */

.project-card__background,
.project-card__overlay {
    position: absolute;
    inset: 0;
}

.project-card__background {
    z-index: -3;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #131010,
            #080808
        );
}

.project-card__overlay {
    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(7, 7, 7, 0.05) 0%,
            rgba(7, 7, 7, 0.18) 35%,
            rgba(7, 7, 7, 0.94) 100%
        );

    pointer-events: none;
}

.project-card--secondary .project-card__overlay {
    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 7, 0.97) 0%,
            rgba(7, 7, 7, 0.72) 53%,
            rgba(7, 7, 7, 0.18) 100%
        );
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.project-card__content {
    position: relative;
    z-index: 3;

    display: flex;
    height: 100%;
    min-height: inherit;
    flex-direction: column;

    padding: 34px;
}

.project-card--featured .project-card__content {
    padding: 42px;
}

.project-card__header,
.project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.project-card__featured-label,
.project-card__status {
    display: inline-flex;
    align-items: center;
}

.project-card__featured-label {
    padding: 9px 13px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.project-card__status {
    gap: 8px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.73rem;
    font-weight: 650;
}

.project-card__status span {
    width: 7px;
    height: 7px;

    background: #ff8a16;

    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(255, 138, 22, 0.09),
        0 0 16px rgba(255, 138, 22, 0.7);

    animation: projectStatusPulse 2.2s ease-in-out infinite;
}

.project-card__body {
    margin-top: auto;
}

.project-card--featured .project-card__body {
    max-width: 680px;
    margin-top: auto;
}

.project-card__category {
    display: block;

    margin-bottom: 15px;

    color: #ff8b20;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-card h3 {
    margin: 0;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.project-card--featured h3 {
    font-size: clamp(4.5rem, 10vw, 8.7rem);
    line-height: 0.82;
    text-transform: uppercase;
}

.project-card__tagline,
.project-card p {
    max-width: 620px;
    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.98rem;
    line-height: 1.7;
}

.project-card--featured .project-card__tagline {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin: 27px 0 0;
    padding: 0;

    list-style: none;
}

.project-card__meta li {
    padding: 8px 11px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.project-card__footer {
    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.project-card__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 0.86rem;
    font-weight: 750;

    transition:
        gap 180ms ease,
        color 180ms ease;
}

.project-card__action span {
    color: #ff8b20;
}

.project-card__action:hover {
    gap: 16px;
    color: #ffb25b;
}

.project-card__index {
    color: rgba(255, 255, 255, 0.31);

    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

/* =========================================================
   SPACE VISUAL
   ========================================================= */

.space-visual {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 65% 32%,
            rgba(255, 112, 17, 0.21),
            transparent 25%
        ),
        radial-gradient(
            circle at 28% 78%,
            rgba(255, 44, 44, 0.15),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #160c0c,
            #070707 62%
        );
}

.space-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.16;

    background-image:
        linear-gradient(
            rgba(255, 125, 52, 0.25) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 77, 48, 0.2) 1px,
            transparent 1px
        );

    background-size: 58px 58px;

    mask-image:
        linear-gradient(
            to top,
            transparent,
            #000
        );

    -webkit-mask-image:
        linear-gradient(
            to top,
            transparent,
            #000
        );

    transform:
        perspective(520px)
        rotateX(66deg)
        scale(1.5);

    transform-origin: center bottom;
}

.space-visual__planet {
    position: absolute;
    top: 14%;
    right: -4%;

    width: 55%;
    aspect-ratio: 1;

    background:
        radial-gradient(
            circle at 32% 30%,
            #ffb057 0%,
            #ff6526 25%,
            #a91d1d 52%,
            #170707 73%
        );

    border-radius: 50%;

    box-shadow:
        -30px 30px 110px rgba(255, 65, 26, 0.3),
        inset -55px -35px 80px rgba(0, 0, 0, 0.65);

    filter: saturate(0.9);

    transition:
        transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .space-visual__planet {
    transform: scale(1.05) translate(-12px, 12px);
}

.space-visual__orbit {
    position: absolute;
    top: 28%;
    right: -15%;

    width: 80%;
    height: 25%;

    border: 1px solid rgba(255, 153, 68, 0.35);
    border-radius: 50%;

    transform: rotate(-18deg);
}

.space-visual__orbit--two {
    top: 22%;
    right: -20%;

    width: 90%;

    opacity: 0.45;

    transform: rotate(-11deg);
}

.space-visual__star {
    position: absolute;

    width: 4px;
    height: 4px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow:
        0 0 13px #ffffff;
}

.star-one {
    top: 18%;
    left: 18%;
}

.star-two {
    top: 37%;
    left: 38%;
}

.star-three {
    top: 11%;
    left: 52%;
}

/* =========================================================
   FILM VISUAL
   ========================================================= */

.film-visual {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            125deg,
            #1b0909,
            #080808 65%
        );
}

.film-visual::before {
    content: "";

    position: absolute;
    top: -30%;
    right: -10%;

    width: 65%;
    height: 160%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 80, 48, 0.13),
            transparent
        );

    transform: rotate(17deg);
}

.film-visual__frame {
    position: absolute;
    right: 7%;

    width: 42%;
    height: 25%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 94, 57, 0.21),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 124, 80, 0.19);
    border-radius: 18px;

    transform: rotate(-7deg);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    transition: transform 450ms ease;
}

.film-visual__frame:nth-child(1) {
    top: 14%;
}

.film-visual__frame:nth-child(2) {
    top: 39%;
    right: 2%;

    opacity: 0.75;
}

.film-visual__frame:nth-child(3) {
    top: 64%;

    opacity: 0.5;
}

.project-card:hover .film-visual__frame {
    transform: rotate(-3deg) translateX(-8px);
}

.film-visual__light {
    position: absolute;
    right: -10%;
    bottom: -35%;

    width: 60%;
    aspect-ratio: 1;

    background:
        radial-gradient(
            circle,
            rgba(255, 61, 35, 0.38),
            transparent 67%
        );

    filter: blur(18px);
}

/* =========================================================
   WORKSHOP VISUAL
   ========================================================= */

.workshop-visual {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            130deg,
            #151008,
            #070707 66%
        );
}

.workshop-visual__ring {
    position: absolute;
    top: -18%;
    right: -5%;

    width: 57%;
    aspect-ratio: 1;

    border: 1px solid rgba(255, 145, 45, 0.34);
    border-radius: 50%;

    box-shadow:
        inset 0 0 55px rgba(255, 123, 0, 0.06),
        0 0 55px rgba(255, 123, 0, 0.07);

    transition:
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.workshop-visual__ring--small {
    top: 5%;
    right: 8%;

    width: 32%;
}

.project-card:hover .workshop-visual__ring {
    transform: rotate(17deg) scale(1.06);
}

.project-card:hover .workshop-visual__ring--small {
    transform: rotate(-24deg) scale(0.94);
}

.workshop-visual__core {
    position: absolute;
    top: 25%;
    right: 19%;

    width: 12%;
    aspect-ratio: 1;

    background:
        radial-gradient(
            circle at 35% 30%,
            #ffd06a,
            #ff7900 45%,
            #9d2700 100%
        );

    border-radius: 50%;

    box-shadow:
        0 0 45px rgba(255, 126, 0, 0.55);
}

.workshop-visual__line {
    position: absolute;
    right: 4%;

    width: 50%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 145, 52, 0.35)
        );
}

.line-one {
    top: 56%;

    transform: rotate(-13deg);
}

.line-two {
    top: 69%;

    transform: rotate(8deg);
}

/* =========================================================
   BOTTOM CTA
   ========================================================= */

.projects-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    margin-top: 45px;
    padding: 25px 29px;

    color: rgba(255, 255, 255, 0.53);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 21px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.projects-bottom p {
    margin: 0;

    font-size: 0.91rem;
}

.projects-bottom__link {
    flex: 0 0 auto;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.88rem;
    font-weight: 650;
}

.projects-bottom__link span {
    margin-left: 5px;

    color: #ff942c;

    transition: color 180ms ease;
}

.projects-bottom__link:hover span {
    color: #ffc06f;
}

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes projectStatusPulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .projects-showcase {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .project-card--featured {
        grid-row: auto;

        min-height: 660px;
    }

    .project-card--secondary {
        min-height: 390px;
    }

}

@media (max-width: 650px) {

    .projects-section {
        padding: 110px 0 125px;
    }

    .projects-heading {
        margin-bottom: 48px;
    }

    .project-card,
    .project-card--featured,
    .project-card--secondary {
        min-height: 550px;

        border-radius: 26px;
    }

    .project-card__content,
    .project-card--featured .project-card__content {
        padding: 25px;
    }

    .project-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-card--featured h3 {
        font-size: clamp(4rem, 24vw, 6.7rem);
    }

    .project-card--secondary .project-card__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 7, 7, 0.22),
                rgba(7, 7, 7, 0.95) 70%
            );
    }

    .projects-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}