/* ==========================================================
   GREAT AGENCY — SINGLE PROJECT PAGE
   ========================================================== */

/* 1. GLOBAL PROJECT STYLES */

.ga-project {
    width: 100%;
    background: #f5f5f5;
    color: #111;
}

.ga-project *,
.ga-project *::before,
.ga-project *::after {
    box-sizing: border-box;
}


/* ==========================================================
   2. HERO — FULL VIEWPORT WIDTH
   ========================================================== */

.ga-project-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    width: 100%;
    min-height: clamp(450px, 43vw, 760px);
    overflow: hidden;
}

.ga-project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ga-project-hero-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ga-project-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
}

.ga-project-hero-inner {
    width: min(calc(100% - 40px), 1300px);
    margin-inline: auto;
    text-align: center;
}

.ga-project-hero.has-background {
    color: #fff;
}

.ga-project-category {

    font-size: 18px;
    font-weight: 500;
}

.ga-project-tagline {
    margin: 0;
    color: inherit;
    font-size: clamp(42px, 5.3vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}


/* ==========================================================
   3. PROJECT BODY — MAX WIDTH 1300PX
   ========================================================== */

.ga-project-body {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    align-items: stretch;
    gap: 30px;

    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding: 100px 10px 0 10px;
}

.ga-project-left,
.ga-project-right {
    min-width: 0;
}


/* ==========================================================
   4. LEFT COLUMN — STICKY DETAILS
   No internal scrolling or scrollbar
   ========================================================== */

.ga-project-left {
    padding: 0;
}

.ga-project-left-sticky {
    position: sticky;
    top: 80px;
    align-self: start;

    padding: 80px 0 90px;

    height: auto;
    max-height: none;

    overflow: visible;
}


/* ==========================================================
   5. PROJECT TITLE AND INTRODUCTION
   ========================================================== */

.ga-project-intro-title {
    margin: 0;
    font-size: clamp(32px, 3vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.ga-project-intro-subtitle {
    margin: 0 0 30px;
    color: #929292;
    font-size: 16px;
}

.ga-project-intro {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
}

.ga-project-intro p {
    margin: 0 0 20px;
}

.ga-project-intro p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   6. PROJECT INFORMATION — CLIENT / YEAR / WEBSITE
   ========================================================== */

.ga-project-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ga-project-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ga-project-info-label {
    color: #999;
    font-size: 14px;
}

.ga-project-info-value {
    color: #111;
    font-size: 16px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.ga-project-info-value:hover {
    text-decoration: underline;
}


/* ==========================================================
   7. OPTIONAL WORDPRESS EDITOR CONTENT
   ========================================================== */

.ga-project-editor-content {
    margin-top: 35px;
    font-size: 17px;
    line-height: 1.7;
}

.ga-project-editor-content p {
    margin: 0 0 20px;
}

.ga-project-editor-content h2,
.ga-project-editor-content h3 {
    margin: 28px 0 12px;
}


/* ==========================================================
   8. PROJECT CREDITS
   ========================================================== */

.ga-project-credits {
    margin-top: 35px;
    font-size: 16px;
    line-height: 1.6;
}

.ga-project-credits h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}


/* ==========================================================
   9. RIGHT COLUMN — PROJECT IMAGE GALLERY
   ========================================================== */

.ga-project-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.ga-project-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.ga-project-image-img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================
   10. DYNAMIC OPPOSITES
   Appears after the fourth gallery image
   ========================================================== */

.ga-opposites {
    width: 100%;
    padding:
        clamp(30px, 4vw, 65px)
        clamp(12px, 2vw, 32px);

    background: #fff;
    border-radius: 12px;
}

.ga-opposites-heading {
    margin: 0 0 34px;
    color: #303030;
    text-align: center;
    font-size: clamp(18px, 1.8vw, 27px);
    font-weight: 700;
    line-height: 1.3;
}

.ga-opposites-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.ga-opposites-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 100px;
}

.ga-opposites-left,
.ga-opposites-right {
    font-size: clamp(11px, 1.2vw, 20px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ga-opposites-left {
    text-align: right;
}

.ga-opposites-right {
    text-align: left;
}


/* Four circular indicators */

.ga-opposites-scale {
    display: flex;
    align-items: center;
    gap: clamp(5px, 0.65vw, 12px);
}

.ga-opposites-circle {
    position: relative;
    display: block;
    flex-shrink: 0;

    width: clamp(13px, 1.5vw, 23px);
    height: clamp(13px, 1.5vw, 23px);

    border: 3px solid #303030;
    border-radius: 50%;
}

.ga-opposites-circle.is-selected::after {
    content: "";
    position: absolute;
    inset: 25%;
    background: #303030;
    border-radius: 50%;
}


/* ==========================================================
   11. PREVIOUS / NEXT PROJECT NAVIGATION
   ========================================================== */

.ga-project-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;

    width: 100%;
    max-width: 1300px;

    margin: 80px auto 0;
    padding: 50px 10px;

    border-top: 1px solid #ddd;
}

.ga-project-nav-next {
    text-align: right;
}

.ga-project-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;

    max-width: 100%;
    color: #111;
    text-decoration: none;
}

.ga-project-nav-label {
    color: #888;
    font-size: 14px;
}

.ga-project-nav-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: anywhere;
    transition: opacity 0.3s ease;
}

.ga-project-nav-link:hover .ga-project-nav-title {
    color: #02E505;
}


/* ==========================================================
   12. SCROLL REVEAL ANIMATIONS
   ========================================================== */

.ga-project .ga-reveal {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.ga-project .ga-reveal.ga-reveal-visible {
    opacity: 1;
    transform: none;
}


/* ==========================================================
   13. TABLET / SMALL DESKTOP
   Disable sticky to prevent inaccessible content
   ========================================================== */

@media (max-width: 1024px) {

    .ga-project-left-sticky {
        position: static;
        top: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-top: 55px;
    }

    .ga-project-info {
        gap: 12px;
    }

    .ga-project-info-value {
        font-size: 14px;
    }

    .ga-opposites-row {
        gap: 15px;
    }
}


/* ==========================================================
   14. MOBILE — STACKED LAYOUT
   ========================================================== */

@media (max-width: 767px) {

    /* Hero */

    .ga-project-hero {
        min-height: 350px;
    }

    .ga-project-category {
        font-size: 15px;
    }

    .ga-project-tagline {
        font-size: clamp(40px, 9vw, 60px);
    }

    /* Main layout */

    .ga-project-body {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 40px;
    }

    /* Left content */

    .ga-project-left {
        padding-inline: 16px;
    }

    .ga-project-left-sticky {
        position: static;
        top: auto;
        padding: 55px 0 45px;
        max-height: none;
        overflow: visible;
    }

    .ga-project-intro-title {
        font-size: 34px;
        text-align: center;
    }

    .ga-project-intro-subtitle {
        text-align: center;
    }

    .ga-project-intro {
        font-size: 18px;
        line-height: 1.65;
        text-align: center;
    }

    /* Client / Year / Website */

    .ga-project-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        text-align: center;
    }

    .ga-project-info-label {
        font-size: 12px;
    }

    .ga-project-info-value {
        font-size: 13px;
    }

    /* Gallery */

    .ga-project-right {
        padding-inline: 16px;
        gap: 12px;
    }

    .ga-project-image {
        border-radius: 8px;
    }

    /* Dynamic Opposites */

    .ga-opposites {
        padding: 35px 10px;
    }

    .ga-opposites-heading {
        margin-bottom: 25px;
        font-size: 20px;
    }

    .ga-opposites-row {
        gap: 50px;
    }

    .ga-opposites-left,
    .ga-opposites-right {
        font-size: 11px;
    }

    .ga-opposites-scale {
        gap: 4px;
    }

    .ga-opposites-circle {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    /* Previous / Next */

    .ga-project-navigation {
        gap: 20px;
        margin-top: 50px;
        padding: 45px 16px 70px;
    }

    .ga-project-nav-title {
        font-size: 22px;
    }
}


/* ==========================================================
   15. ACCESSIBILITY — REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ga-project .ga-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .ga-project-nav-title {
        transition: none;
    }
}


/* ==========================================
   PROJECT GALLERY — SCROLL REVEAL
========================================== */


/* Standard reveal animation */
.ga-project .ga-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s cubic-bezier(.22, 1, .36, 1),
        transform 1s cubic-bezier(.22, 1, .36, 1);
}

/* Visible state */
.ga-project .ga-reveal.ga-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery-specific animation */
.ga-project-right .ga-project-image.ga-reveal {
    transition-duration: 1.2s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ga-project .ga-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}