/* ==========================================================
   HEJL PRODUCTIONS — PROJECT DETAIL TEMPLATE
   ========================================================== */

.project-body {
    background: #ffffff;
}

.project-main::before {
    background: #f3f4f4;
}


/* ==========================================================
   PROJECT DETAIL
   ========================================================== */

.project-detail {
    position: relative;
    overflow: hidden;

    min-height: calc(100svh - var(--header-h));

    padding:
        clamp(46px, 5vw, 92px)
        clamp(24px, 6vw, 118px)
        clamp(72px, 7vw, 128px);

    background:
        linear-gradient(
            145deg,
            #f3f4f4 0%,
            #ffffff 48%,
            #edf9fb 100%
        );
}

.project-lineart {
    position: absolute;
    left: -11vw;
    bottom: -14vw;

    width: min(46vw, 720px);

    opacity: 0.035;

    pointer-events: none;
    user-select: none;
}

.project-shell {
    position: relative;
    z-index: 2;

    width: min(1500px, 100%);
    margin: 0 auto;
}

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

    margin-bottom: clamp(34px, 4vw, 62px);

    color: #5d6268;

    font-size: clamp(0.78rem, 0.9vw, 0.98rem);
    font-weight: 700;
    text-transform: uppercase;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.project-back i {
    color: var(--cyan-dark);
    font-size: 1.15em;
}

.project-back:hover,
.project-back:focus-visible {
    color: var(--cyan-dark);
    transform: translateX(-4px);
}

.project-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    align-items: center;

    gap: clamp(54px, 7vw, 132px);
}


/* ==========================================================
   COPY
   ========================================================== */

.project-copy {
    min-width: 0;
}

.project-eyebrow {
    margin-bottom: 14px;

    color: var(--cyan-dark);

    font-size: clamp(0.78rem, 0.85vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.project-title {
    max-width: 760px;

    margin: 0;

    color: var(--ink);

    font-size: clamp(3.4rem, 5.7vw, 7.4rem);
    font-weight: 900;
    line-height: 0.84;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.project-title span {
    color: var(--cyan);
}

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

    margin-top: clamp(24px, 2.5vw, 38px);
    margin-bottom: clamp(34px, 3.6vw, 56px);
}

.project-services span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 8px 13px 7px;

    border: 1px solid rgba(17, 19, 24, 0.16);
    border-radius: 999px;

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

    color: #3f454a;

    font-size: clamp(0.68rem, 0.72vw, 0.8rem);
    font-weight: 700;
    text-transform: uppercase;
}

.project-copy-block {
    max-width: 700px;

    padding-top: 22px;
    margin-top: 22px;

    border-top: 1px solid rgba(17, 19, 24, 0.12);
}

.project-copy-label {
    margin-bottom: 8px;

    color: var(--ink);

    font-size: clamp(0.78rem, 0.8vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
}

.project-copy-block > p:last-child {
    color: #5c6267;

    font-size: clamp(0.96rem, 1.02vw, 1.14rem);
    line-height: 1.58;
}

.project-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    max-width: 700px;

    margin-top: clamp(30px, 3vw, 46px);
}

.project-fact {
    min-width: 0;

    padding: 16px 17px;

    border-radius: 14px;

    background: #111318;
}

.project-fact span,
.project-fact strong {
    display: block;
}

.project-fact span {
    margin-bottom: 6px;

    color: var(--cyan);

    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-fact strong {
    color: #ffffff;

    font-size: clamp(0.76rem, 0.8vw, 0.9rem);
    font-weight: 500;
    line-height: 1.3;
}


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

.project-visual-wrap {
    position: relative;

    width: min(100%, 690px);
    margin-left: auto;

    padding: clamp(19px, 2vw, 30px);
}

.project-visual-accent {
    position: absolute;
    z-index: 0;

    top: 5%;
    right: -4%;

    width: 74%;
    height: 88%;

    border-radius: clamp(28px, 3vw, 54px);

    background: var(--cyan);

    transform: rotate(3.5deg);
}

.project-visual-frame {
    position: absolute;
    z-index: 4;
    inset: 0;

    pointer-events: none;
}

.project-corner {
    position: absolute;

    width: clamp(56px, 5vw, 88px);
    height: clamp(56px, 5vw, 88px);
}

.project-corner--tl {
    top: 0;
    left: 0;

    border-top: clamp(7px, 0.55vw, 10px) solid var(--cyan);
    border-left: clamp(7px, 0.55vw, 10px) solid var(--cyan);
}

.project-corner--tr {
    top: 0;
    right: 0;

    border-top: clamp(7px, 0.55vw, 10px) solid var(--cyan);
    border-right: clamp(7px, 0.55vw, 10px) solid var(--cyan);
}

.project-corner--bl {
    bottom: 0;
    left: 0;

    border-bottom: clamp(7px, 0.55vw, 10px) solid var(--cyan);
    border-left: clamp(7px, 0.55vw, 10px) solid var(--cyan);
}

.project-corner--br {
    right: 0;
    bottom: 0;

    border-right: clamp(7px, 0.55vw, 10px) solid var(--cyan);
    border-bottom: clamp(7px, 0.55vw, 10px) solid var(--cyan);
}

.project-visual {
    position: relative;
    z-index: 2;

    width: 100%;
    aspect-ratio: 0.76;

    overflow: hidden;

    border-radius: clamp(24px, 2.5vw, 44px);

    background: #111318;

    box-shadow:
        0 30px 80px rgba(9, 13, 18, 0.2);

    transform: rotate(-1.1deg);
}

.project-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* ==========================================================
   MORE CONTENT PLACEHOLDER
   ========================================================== */

.project-more {
    padding:
        clamp(74px, 8vw, 138px)
        clamp(24px, 6vw, 118px);

    background: #ffffff;
}

.project-more__inner {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.project-more__heading {
    margin-bottom: clamp(30px, 4vw, 58px);
}

.project-more__heading p {
    margin-bottom: 8px;

    color: var(--cyan-dark);

    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-more__heading h2 {
    margin: 0;

    font-size: clamp(2.6rem, 5.5vw, 6.6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.project-more__placeholder {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;

    gap: clamp(24px, 3vw, 54px);

    min-height: 230px;

    padding: clamp(30px, 4vw, 64px);

    border: 2px dashed rgba(18, 157, 179, 0.3);
    border-radius: clamp(24px, 2.6vw, 40px);

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.055),
            rgba(17, 19, 24, 0.018)
        );
}

.project-more__number {
    color: var(--cyan);

    font-size: clamp(4rem, 8vw, 9rem);
    font-weight: 900;
    line-height: 0.8;
}

.project-more__placeholder strong {
    display: block;

    margin-bottom: 10px;

    font-size: clamp(1.25rem, 2vw, 2.1rem);
    font-weight: 700;
    text-transform: uppercase;
}

.project-more__placeholder p {
    max-width: 720px;

    color: #656b70;

    font-size: clamp(0.94rem, 1vw, 1.08rem);
    line-height: 1.55;
}


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

.project-cta {
    padding:
        0
        clamp(24px, 6vw, 118px)
        clamp(74px, 8vw, 128px);

    background: #ffffff;
}

.project-cta__inner {
    width: min(1500px, 100%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;

    padding: clamp(32px, 4vw, 62px);

    border-radius: clamp(24px, 2.6vw, 42px);

    background:
        linear-gradient(
            145deg,
            #090d12 0%,
            #101923 56%,
            #07333c 100%
        );
}

.project-cta__eyebrow {
    margin-bottom: 8px;

    color: var(--cyan);

    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-cta h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2.2rem, 4.4vw, 5.2rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.project-cta__button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 54px;

    padding: 15px 20px;

    border-radius: 14px;

    background: var(--cyan);
    color: #071116;

    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease;
}

.project-cta__button:hover,
.project-cta__button:focus-visible {
    transform: translateY(-3px);
    background: var(--cyan-light);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .project-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
        gap: 46px;
    }

    .project-title {
        font-size: clamp(3.2rem, 6.5vw, 5.2rem);
    }

    .project-facts {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   MOBILE / PORTRAIT
   ========================================================== */

@media (max-width: 820px) {

    .project-detail {
        min-height: auto;

        padding:
            34px
            20px
            74px;
    }

    .project-back {
        margin-bottom: 30px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .project-copy {
        order: 1;
    }

    .project-visual-wrap {
        order: 2;

        width: min(100%, 580px);
        margin: 0 auto;
    }

    .project-title {
        font-size: clamp(3.4rem, 15vw, 6.2rem);
    }

    .project-copy-block,
    .project-facts {
        max-width: none;
    }

    .project-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-more,
    .project-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-more__placeholder {
        grid-template-columns: 1fr;
    }

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

    .project-cta__button {
        width: 100%;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 560px) {

    .project-title {
        font-size: clamp(3rem, 15.4vw, 4.8rem);
    }

    .project-services {
        margin-bottom: 30px;
    }

    .project-facts {
        grid-template-columns: 1fr;
    }

    .project-visual-wrap {
        padding: 14px;
    }

    .project-corner {
        width: 50px;
        height: 50px;
    }

    .project-corner--tl,
    .project-corner--tr {
        border-top-width: 6px;
    }

    .project-corner--bl,
    .project-corner--br {
        border-bottom-width: 6px;
    }

    .project-corner--tl,
    .project-corner--bl {
        border-left-width: 6px;
    }

    .project-corner--tr,
    .project-corner--br {
        border-right-width: 6px;
    }

    .project-more__placeholder {
        min-height: 0;
        padding: 24px;
    }
}


/* ==========================================================
   PHONE LANDSCAPE
   ========================================================== */

@media
(max-width: 1100px)
and
(max-height: 700px)
and
(orientation: landscape) {

    .project-detail {
        min-height: auto;

        padding:
            30px
            clamp(24px, 5vw, 62px)
            64px;
    }

    .project-back {
        margin-bottom: 26px;
    }

    .project-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(310px, 1.05fr);
        gap: 36px;
        align-items: start;
    }

    .project-title {
        font-size: clamp(2.8rem, 7vw, 4.5rem);
    }

    .project-services {
        margin-top: 18px;
        margin-bottom: 22px;
    }

    .project-copy-block {
        padding-top: 15px;
        margin-top: 15px;
    }

    .project-copy-block > p:last-child {
        font-size: 0.9rem;
    }

    .project-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 22px;
    }

    .project-fact {
        padding: 12px;
    }

    .project-visual-wrap {
        width: min(100%, 470px);
    }
}
