
/* ==========================================
   TRADEEAGLE - OUR WORK PAGE
========================================== */

.te-work-layout {
    --tw-orange: #FFBA01;
    --tw-navy: #003263;
    --tw-black: #151515;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;

    width: 100%;
    min-height: 100vh;

    font-family: 'DM Sans', Arial, sans-serif;
}

.te-work-layout,
.te-work-layout * {
    box-sizing: border-box;
}

.te-work-layout a {
    text-decoration: none;
}

.te-work-layout img {
    display: block;
    max-width: 100%;
}

.te-work-layout h1,
.te-work-layout h2,
.te-work-layout h3,
.te-work-layout p {
    overflow-wrap: break-word;
}

/* LEFT */

.te-work-layout .tw-left {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;

    background: var(--tw-orange);
    overflow: hidden;
}

/* COMMON */

.te-work-layout .tw-section {
    padding: 85px clamp(24px, 4vw, 70px);
}

.te-work-layout .tw-section-label {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 12px;
    margin-bottom: 40px;

    color: var(--tw-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.te-work-layout .tw-heading {
    margin: 0 0 28px;

    color: var(--tw-black);

    font-size: 50px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.te-work-layout .tw-heading em {
    display: block;
    font-style: normal;
    color: var(--tw-navy);
}

.te-work-layout .tw-body-text {
    margin: 0;

    color: #444444;

    font-size: 15px;
    line-height: 1.9;
}

/* ==========================================
   HERO
========================================== */

.te-work-layout .tw-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 550px;
    padding: 20px clamp(24px, 4vw, 70px);

    background: var(--tw-orange);
    overflow: hidden;
}

.te-work-layout .tw-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 38px;

    color: var(--tw-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.te-work-layout .tw-eyebrow-line {
    width: 30px;
    height: 2px;
    background: var(--tw-navy);
}

.te-work-layout .tw-hero-title {
    position: relative;
    z-index: 1;

    margin: 0 0 28px;

    color: var(--tw-black);

    font-size: 60px;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.te-work-layout .tw-hero-title > span {
    display: block;
    color: var(--tw-navy);
}

.te-work-layout .tw-dot {
    color: #ffffff;
}

.te-work-layout .tw-hero-subtitle {
    position: relative;
    z-index: 1;

    margin: 0 0 20px;

    color: var(--tw-navy);

    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.35;
}

.te-work-layout .tw-hero-description {
    position: relative;
    z-index: 1;

    max-width: 520px;
    margin: 0 0 35px;

    color: #282828;

    font-size: 15px;
    line-height: 1.85;
}

.te-work-layout .tw-primary-btn {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    gap: 28px;
    padding: 16px 24px;

    border-radius: 40px;

    background: var(--tw-navy);
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    transition: 0.3s ease;
}

.te-work-layout .tw-primary-btn:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-3px);
}

.te-work-layout .tw-hero-watermark {
    position: absolute;
    right: -35px;
    bottom: -90px;

    color: rgba(0, 50, 99, 0.08);

    font-size: clamp(260px, 30vw, 460px);
    font-weight: 900;
    line-height: 1;

    pointer-events: none;
}

/* ==========================================
   INTRO
========================================== */

.te-work-layout .tw-intro {
    background: #ffffff;
}

/* ==========================================
   PROJECT SHOWCASE
========================================== */

.te-work-layout .tw-project {
    padding: 70px clamp(24px, 4vw, 70px) 85px;
}

.te-work-layout .tw-project-light {
    background: #ffffff;
    color: var(--tw-black);
}

.te-work-layout .tw-project-navy {
    background: var(--tw-navy);
    color: #ffffff;
}

.te-work-layout .tw-project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    margin-bottom: 28px;

    color: var(--tw-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.te-work-layout .tw-project-navy .tw-project-top {
    color: var(--tw-orange);
}

/* IMAGE */

.te-work-layout .tw-project-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1.35;

    overflow: hidden;

    border-radius: 10px;
    background: #e6e6e6;
}

.te-work-layout .tw-project-image img {
    width: 100%;
    /*height: 100%;*/

    object-fit: cover;

    transition: transform 0.7s ease;
}

.te-work-layout .tw-project:hover .tw-project-image img {
    transform: scale(1.06);
}

.te-work-layout .tw-image-label {
    position: absolute;
    left: 15px;
    bottom: 15px;

    max-width: calc(100% - 30px);
    padding: 10px 14px;

    background: var(--tw-orange);
    color: var(--tw-navy);

    border-radius: 4px;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* DETAILS */

.te-work-layout .tw-project-details {
    padding-top: 30px;
}

.te-work-layout .tw-project-number {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 16px;

    color: var(--tw-navy);

    font-size: 12px;
    font-weight: 900;
}

.te-work-layout .tw-project-number span {
    font-size: 30px;
}

.te-work-layout .tw-project-navy .tw-project-number {
    color: var(--tw-orange);
}

.te-work-layout .tw-project-name {
    margin: 0 0 20px;

    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.055em;
}

.te-work-layout .tw-project-description {
    margin: 0 0 28px;

    color: #444444;

    font-size: 14px;
    line-height: 1.9;
}

.te-work-layout .tw-project-navy .tw-project-description {
    color: rgba(255, 255, 255, 0.8);
}

/* META */

.te-work-layout .tw-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
    padding: 16px 0;

    border-top: 1px solid rgba(0, 50, 99, 0.2);
}

.te-work-layout .tw-project-meta > span {
    color: var(--tw-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.te-work-layout .tw-project-meta strong {
    text-align: right;
    font-size: 12px;
    font-weight: 800;
}

.te-work-layout .tw-project-navy .tw-project-meta {
    border-color: rgba(255, 255, 255, 0.2);
}

.te-work-layout .tw-project-navy .tw-project-meta > span {
    color: var(--tw-orange);
}

.te-work-layout .tw-project-link {
    display: inline-flex;
    align-items: center;

    gap: 30px;
    margin-top: 28px;
    padding-bottom: 10px;

    border-bottom: 2px solid currentColor;

    color: var(--tw-navy);

    font-size: 11px;
    font-weight: 900;

    transition: gap 0.3s ease;
}

.te-work-layout .tw-project-link:hover {
    gap: 42px;
}

.te-work-layout .tw-project-navy .tw-project-link {
    color: var(--tw-orange);
}

/* ==========================================
   APPROACH
========================================== */

.te-work-layout .tw-approach {
    background: var(--tw-orange);
}

.te-work-layout .tw-approach-list {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 50, 99, 0.3);
}

.te-work-layout .tw-approach-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);

    gap: 18px;
    padding: 26px 0;

    border-bottom: 1px solid rgba(0, 50, 99, 0.3);
}

.te-work-layout .tw-approach-item > span {
    color: var(--tw-navy);
    font-size: 23px;
    font-weight: 900;
}

.te-work-layout .tw-approach-item h3 {
    margin: 0 0 10px;

    color: var(--tw-black);

    font-size: 22px;
    font-weight: 900;
}

.te-work-layout .tw-approach-item p {
    margin: 0;

    color: #333333;

    font-size: 13px;
    line-height: 1.8;
}

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

.te-work-layout .tw-contact {
    padding: 90px clamp(24px, 4vw, 70px);

    background: var(--tw-navy);
    color: #ffffff;
}

.te-work-layout .tw-contact .tw-section-label {
    color: var(--tw-orange);
}

.te-work-layout .tw-contact-eyebrow {
    display: block;
    margin-bottom: 25px;

    color: var(--tw-orange);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.te-work-layout .tw-contact h2 {
    margin: 0 0 25px;

    color: #ffffff;

    font-size: 50px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.te-work-layout .tw-contact h2 em {
    display: block;
    font-style: normal;
    color: var(--tw-orange);
}

.te-work-layout .tw-contact p {
    max-width: 480px;
    margin: 0 0 30px;

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

    font-size: 14px;
    line-height: 1.9;
}

.te-work-layout .tw-contact-btn {
    display: inline-flex;
    align-items: center;

    gap: 35px;
    padding: 17px 25px;

    background: var(--tw-orange);
    color: var(--tw-navy);

    border-radius: 40px;

    font-size: 11px;
    font-weight: 900;

    transition: 0.3s ease;
}

.te-work-layout .tw-contact-btn:hover {
    background: #ffffff;
    color: var(--tw-navy);
    transform: translateY(-4px);
}

/* ==========================================
   RIGHT STICKY PANEL
========================================== */

.te-work-layout .tw-right {
    position: sticky !important;
    top: 0;

    display: flex !important;
    align-items: center;
    justify-content: center;

    align-self: start;

    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;

    padding: 25px;

    overflow: hidden !important;

    background: var(--tw-orange);
}

.te-work-layout .tw-right-inner {
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    margin: auto;
}

.te-work-layout .tw-right-heading {
    margin-bottom: 22px;
}

.te-work-layout .tw-right-heading > span {
    display: block;
    margin-bottom: 12px;

    color: var(--tw-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.te-work-layout .tw-right-heading h2 {
    margin: 0 0 10px;

    color: var(--tw-navy);

    font-size: clamp(30px, 3vw, 46px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.te-work-layout .tw-right-heading h2 em {
    display: block;
    font-style: normal;
}

.te-work-layout .tw-right-heading p {
    margin: 0;

    color: #263d50;

    font-size: 13px;
    line-height: 1.6;
}

/* 2x2 EQUAL CARDS */

.te-work-layout .tw-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));

    gap: 14px;
    height: min(45vh, 370px);
}

.te-work-layout .tw-quick-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 0;

    padding: 15px 10px;

    background: var(--tw-navy);
    border: 1px solid transparent;
    border-radius: 12px;

    overflow: hidden;
    text-align: center;

    transition: 0.3s ease;
}

.te-work-layout .tw-quick-card i {
    margin-bottom: 14px;

    color: var(--tw-orange);
    font-size: clamp(30px, 3vw, 48px);

    transition: transform 0.3s ease;
}

.te-work-layout .tw-quick-card h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: clamp(14px, 1.3vw, 19px);
    font-weight: 800;
}

.te-work-layout .tw-quick-card > span {
    color: rgba(255, 255, 255, 0.65);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.te-work-layout .tw-quick-card:hover,
.te-work-layout .tw-quick-card.is-active {
    background: #001f40;
    border-color: var(--tw-orange);
}

.te-work-layout .tw-quick-card:hover {
    transform: translateY(-4px);
}

.te-work-layout .tw-quick-card:hover i {
    transform: scale(1.1);
}

/* RIGHT CTA */

.te-work-layout .tw-right-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    margin-top: 20px;
    padding: 15px 20px;

    background: #ffffff;
    color: var(--tw-navy);

    border-radius: 35px;

    font-size: 11px;
    font-weight: 900;

    transition: 0.3s ease;
}

.te-work-layout .tw-right-cta:hover {
    background: var(--tw-navy);
    color: #ffffff;
}

.te-work-layout .tw-right-bottom {
    display: flex;
    justify-content: space-between;

    gap: 15px;
    margin-top: 20px;
    padding-top: 13px;

    border-top: 1px solid rgba(0, 50, 99, 0.3);

    color: var(--tw-navy);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* SHORT SCREENS */

@media (min-width: 901px) and (max-height: 700px) {

    .te-work-layout .tw-right {
        padding: 12px 20px;
    }

    .te-work-layout .tw-right-heading {
        margin-bottom: 10px;
    }

    .te-work-layout .tw-right-heading h2 {
        font-size: 28px;
    }

    .te-work-layout .tw-right-heading p {
        display: none;
    }

    .te-work-layout .tw-quick-grid {
        height: 47vh;
        gap: 9px;
    }

    .te-work-layout .tw-quick-card i {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .te-work-layout .tw-right-cta {
        margin-top: 12px;
        padding: 11px 16px;
    }

    .te-work-layout .tw-right-bottom {
        margin-top: 12px;
        padding-top: 8px;
    }
}

/* MOBILE */

@media (max-width: 900px) {

    .te-work-layout {
        display: block !important;
    }

    .te-work-layout .tw-left {
        width: 100% !important;
        max-width: 100%;
    }

    .te-work-layout .tw-right {
        position: relative !important;
        top: auto;

        display: flex !important;

        width: 100%;
        height: auto;
        min-height: 0;

        padding: 50px 20px;
        overflow: visible !important;
    }

    .te-work-layout .tw-right-inner {
        max-width: 600px;
        max-height: none;
    }

    .te-work-layout .tw-quick-grid {
        height: auto;
        grid-template-rows: repeat(2, auto);
    }

    .te-work-layout .tw-quick-card {
        min-height: 160px;
    }
}

@media (max-width: 600px) {

    .te-work-layout .tw-hero {
        min-height: 550px;
        padding: 65px 22px;
    }

    .te-work-layout .tw-hero-title {
        font-size: clamp(55px, 12vw, 78px);
    }

    .te-work-layout .tw-hero-subtitle {
        font-size: 21px;
    }

    .te-work-layout .tw-section,
    .te-work-layout .tw-project {
        padding: 65px 22px;
    }

    .te-work-layout .tw-heading,
    .te-work-layout .tw-project-name {
        font-size: clamp(35px, 9vw, 48px);
    }

    .te-work-layout .tw-project-image {
        aspect-ratio: 1.15;
    }

    .te-work-layout .tw-contact {
        padding: 75px 22px;
    }

    .te-work-layout .tw-contact h2 {
        font-size: clamp(38px, 10vw, 54px);
    }

    .te-work-layout .tw-quick-card {
        min-height: 145px;
    }
}

@media (max-width: 480px) {

    .te-work-layout .tw-quick-grid {
        gap: 10px;
    }

    .te-work-layout .tw-quick-card {
        min-height: 130px;
        padding: 12px 8px;
    }

    .te-work-layout .tw-quick-card i {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .te-work-layout .tw-quick-card h3 {
        font-size: 14px;
    }

    .te-work-layout .tw-quick-card > span {
        font-size: 8px;
    }

    .te-work-layout .tw-project-meta {
        align-items: flex-start;
    }
}

.te-work-layout a:focus-visible {
    outline: 3px solid var(--tw-navy);
    outline-offset: 4px;
}

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

    .te-work-layout *,
    .te-work-layout *::before,
    .te-work-layout *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================
   OUR WORK - PERMANENT RIGHT PANEL FIX
========================================== */

.te-work-layout .tw-right .tw-right-heading,
.te-work-layout .tw-right .tw-quick-grid,
.te-work-layout .tw-right .tw-quick-card,
.te-work-layout .tw-right .tw-right-cta,
.te-work-layout .tw-right .tw-right-bottom {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

.te-work-layout .tw-right {
    background: #FFBA01 !important;
}

.te-work-layout .tw-right-heading h2,
.te-work-layout .tw-right-heading h2 em {
    color: #003263 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.te-work-layout .tw-right .tw-quick-card {
    display: flex !important;
    background: #003263;
}

.te-work-layout .tw-right .tw-quick-card h3 {
    color: #ffffff !important;
}

.te-work-layout .tw-right .tw-quick-card i {
    color: #FFBA01 !important;
}
