/* -----------------------------------
   HERO
----------------------------------- */

.work-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 7rem;
    background: var(--ryatech-light);
    border-bottom: 1px solid var(--ryatech-border);
}

    .work-hero::before {
        position: absolute;
        top: -340px;
        right: -190px;
        width: 700px;
        height: 700px;
        border: 1px solid rgba(0, 31, 63, 0.07);
        border-radius: 50%;
        content: '';
    }

    .work-hero::after {
        position: absolute;
        top: 80px;
        right: 9%;
        width: 90px;
        height: 5px;
        background: var(--ryatech-gold);
        content: '';
    }

    .work-hero .page-container {
        position: relative;
        z-index: 1;
    }

.work-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--ryatech-gold);
    font-family: var(--ryatech-font-brand);
    font-size: 0.76rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

    .work-hero-eyebrow::before {
        width: 40px;
        height: 2px;
        background: var(--ryatech-gold);
        content: '';
    }

.work-hero h1 {
    max-width: 1050px;
    margin-bottom: 0;
    color: var(--ryatech-navy);
    font-size: clamp(3.2rem, 5.5vw, 6rem);
    letter-spacing: -0.035em;
}

    .work-hero h1 span {
        display: block;
        color: var(--ryatech-muted);
    }

.work-hero-copy {
    margin: 0 0 0 auto;
    color: var(--ryatech-muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

/* -----------------------------------
   COMMON FEATURED HEADINGS
----------------------------------- */

.work-section-heading {
    max-width: 850px;
    margin-bottom: 3.5rem;
}

    .work-section-heading h2 {
        margin-bottom: 0;
    }

.work-section-heading-right {
    margin-left: auto;
}

/* -----------------------------------
   INTELLISCOPE
----------------------------------- */

.work-featured {
    padding: 8rem 0;
    background: var(--ryatech-white);
}

.work-intelliscope {
    overflow: hidden;
    border-top: 5px solid #ff7a1a;
    background: #0a223b;
    box-shadow: var(--ryatech-shadow);
}

.work-intelliscope-content {
    height: 100%;
    padding: 4.5rem;
    background: linear-gradient(145deg, #0a223b 0%, #102f4d 100%);
    color: rgba(255, 255, 255, 0.66);
}

.work-intelliscope-logo-wrap {
    margin-bottom: 2.5rem;
}

.work-intelliscope-logo {
    display: block;
    width: min(100%, 500px);
    height: auto;
}

.work-intelliscope-lead {
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
    line-height: 1.8;
}

.work-intelliscope-content p:not(.work-intelliscope-lead) {
    color: rgba(255, 255, 255, 0.56);
}

.work-intelliscope-actions {
    margin-top: 2.25rem;
}

.work-intelliscope-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ff7a1a;
    color: #ff7a1a;
    font-family: var(--ryatech-font-brand);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

    .work-intelliscope-button:hover {
        background: #ff7a1a;
        color: #0a223b;
    }

.work-intelliscope-details {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 620px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 4.5rem;
    background: #06192d;
}

.work-intelliscope-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 460px;
    transform: translate(-50%, -50%);
    opacity: 0.025;
    pointer-events: none;
}

    .work-intelliscope-watermark img {
        display: block;
        width: 100%;
    }

.work-intelliscope-detail {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .work-intelliscope-detail:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .work-intelliscope-detail i {
        color: #ff7a1a;
        font-size: 1.35rem;
    }

    .work-intelliscope-detail strong {
        display: block;
        margin-bottom: 0.35rem;
        color: #e6f0ff;
        font-family: var(--ryatech-font-brand);
        font-size: 0.84rem;
    }

    .work-intelliscope-detail span {
        color: rgba(230, 240, 255, 0.48);
        font-size: 0.9rem;
        line-height: 1.6;
    }

.work-intelliscope-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2rem;
}

    .work-intelliscope-stack span {
        padding: 0.3rem 0.5rem;
        border: 1px solid rgba(230, 240, 255, 0.12);
        color: rgba(230, 240, 255, 0.45);
        font-family: var(--ryatech-font-brand);
        font-size: 0.58rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

/* -----------------------------------
   PROSOURCE SCIENTIFIC
----------------------------------- */

.work-prosource {
    padding: 0 0 8rem;
    background: var(--ryatech-white);
}

.work-prosource-card {
    overflow: hidden;
    border: 1px solid var(--ryatech-border);
    background: var(--ryatech-white);
    box-shadow: var(--ryatech-shadow-sm);
}

.work-prosource-brand {
    overflow: hidden;
    background: #243782;
}

.work-prosource-logo {
    display: block;
    width: 100%;
    height: auto;
}

.work-prosource-content {
    height: 100%;
    padding: 4rem;
}

.work-prosource-client-label {
    margin-bottom: 0.7rem;
    color: #e87522;
    font-family: var(--ryatech-font-brand);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.work-prosource-content h3 {
    margin-bottom: 1.3rem;
    font-size: clamp(2rem, 3vw, 3rem);
}

.work-prosource-lead {
    margin-bottom: 1.3rem;
    color: var(--ryatech-text);
    font-size: 1.06rem;
    line-height: 1.8;
}

.work-prosource-content p:not(.work-prosource-lead) {
    color: var(--ryatech-muted);
}

.work-prosource-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2rem;
}

    .work-prosource-stack span {
        padding: 0.32rem 0.55rem;
        border: 1px solid var(--ryatech-border);
        color: var(--ryatech-muted);
        font-family: var(--ryatech-font-brand);
        font-size: 0.58rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

.work-prosource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.2rem;
    color: #243782;
    font-family: var(--ryatech-font-brand);
    font-size: 0.8rem;
}

    .work-prosource-link:hover {
        color: #e87522;
    }

.work-prosource-details {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    background: var(--ryatech-light);
    border-left: 1px solid var(--ryatech-border);
}

.work-prosource-detail {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--ryatech-border);
}

    .work-prosource-detail:first-child {
        border-top: 1px solid var(--ryatech-border);
    }

    .work-prosource-detail i {
        color: #e87522;
        font-size: 1.35rem;
    }

    .work-prosource-detail strong {
        display: block;
        margin-bottom: 0.35rem;
        color: #243782;
        font-family: var(--ryatech-font-brand);
        font-size: 0.84rem;
    }

    .work-prosource-detail span {
        color: var(--ryatech-muted);
        font-size: 0.9rem;
        line-height: 1.6;
    }

/* -----------------------------------
   CLIENT WORK
----------------------------------- */

.work-capabilities {
    padding: 8rem 0;
    background: var(--ryatech-light);
}

    .work-capabilities h2 {
        max-width: 570px;
        margin-bottom: 1.5rem;
    }

.work-capabilities-intro {
    max-width: 570px;
    color: var(--ryatech-muted);
    font-size: 1.04rem;
}

.work-capability-list {
    border-top: 1px solid var(--ryatech-border);
}

.work-capability {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    padding: 2.4rem 0;
    border-bottom: 1px solid var(--ryatech-border);
}

.work-capability-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ryatech-border);
    background: var(--ryatech-white);
    color: var(--ryatech-gold);
    font-size: 1.2rem;
}

.work-capability h3 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

.work-capability p {
    max-width: 680px;
    margin-bottom: 1.2rem;
    color: var(--ryatech-muted);
}

.work-capability-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

    .work-capability-meta span {
        padding: 0.28rem 0.5rem;
        border: 1px solid var(--ryatech-border);
        background: var(--ryatech-white);
        color: var(--ryatech-muted);
        font-family: var(--ryatech-font-brand);
        font-size: 0.58rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

/* -----------------------------------
   ENGINEERING
----------------------------------- */

.work-engineering {
    padding: 8rem 0;
    background: var(--ryatech-white);
}

    .work-engineering h2 {
        margin-bottom: 1.5rem;
    }

    .work-engineering p {
        color: var(--ryatech-muted);
        font-size: 1.02rem;
    }

.work-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: var(--ryatech-navy);
    font-family: var(--ryatech-font-brand);
    font-size: 0.8rem;
}

    .work-text-link:hover {
        color: var(--ryatech-gold);
    }

.work-engineering-visual {
    overflow: hidden;
    border: 1px solid var(--ryatech-border);
    background: var(--ryatech-navy-dark);
    box-shadow: var(--ryatech-shadow);
}

.work-engineering-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--ryatech-font-brand);
    font-size: 0.7rem;
}

    .work-engineering-header div {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .work-engineering-header i {
        color: var(--ryatech-gold);
    }

.work-engineering-code {
    padding: 3rem 2rem;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.86rem;
    line-height: 2;
}

.engineering-code-line {
    display: grid;
    grid-template-columns: 36px 1fr;
    color: rgba(255, 255, 255, 0.65);
}

.engineering-line-number {
    color: rgba(255, 255, 255, 0.18);
    user-select: none;
}

.engineering-code-line strong {
    color: var(--ryatech-gold);
    font-weight: 400;
}

.engineering-code-line em {
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
}

.engineering-code-indent span:last-child {
    padding-left: 1.2rem;
}

/* -----------------------------------
   TECHNOLOGY STACK
----------------------------------- */

.work-stack {
    padding: 8rem 0;
    background: var(--ryatech-navy);
}

.work-stack-heading {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: end;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

    .work-stack-heading h2 {
        margin-bottom: 0;
        color: var(--ryatech-white);
    }

    .work-stack-heading p {
        margin: 0;
        color: rgba(255, 255, 255, 0.54);
    }

.work-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.work-stack-item {
    display: flex;
    min-height: 130px;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--ryatech-font-brand);
    font-size: 0.78rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .work-stack-item:hover {
        background: rgba(255, 255, 255, 0.04);
        color: var(--ryatech-white);
    }

    .work-stack-item i {
        color: var(--ryatech-gold);
        font-size: 1.5rem;
    }

/* -----------------------------------
   CTA
----------------------------------- */

.work-cta {
    padding: 7rem 0;
    background: var(--ryatech-white);
}

.work-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem;
    background: var(--ryatech-gold);
}

    .work-cta-inner > div {
        max-width: 800px;
    }

.work-cta-eyebrow {
    margin-bottom: 0.7rem;
    color: rgba(0, 31, 63, 0.6);
    font-family: var(--ryatech-font-brand);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-cta h2 {
    margin-bottom: 1rem;
    color: var(--ryatech-navy);
}

.work-cta p {
    max-width: 700px;
    margin: 0;
    color: rgba(0, 31, 63, 0.68);
}

.work-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border: 1px solid var(--ryatech-navy);
    background: var(--ryatech-navy);
    color: var(--ryatech-white);
    font-family: var(--ryatech-font-brand);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

    .work-cta-button:hover {
        background: transparent;
        color: var(--ryatech-navy);
    }

/* -----------------------------------
   RESPONSIVE
----------------------------------- */

@media (max-width: 1199.98px) {
    .work-intelliscope-content,
    .work-intelliscope-details,
    .work-prosource-content {
        padding: 3.5rem;
    }

    .work-prosource-details {
        padding: 3rem;
    }

    .work-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .work-hero {
        padding: 6rem 0 5rem;
    }

    .work-hero-copy {
        margin-left: 0;
    }

    .work-featured,
    .work-capabilities,
    .work-engineering,
    .work-stack {
        padding: 6rem 0;
    }

    .work-prosource {
        padding-bottom: 6rem;
    }

    .work-intelliscope-content,
    .work-intelliscope-details,
    .work-prosource-content,
    .work-prosource-details {
        padding: 3rem;
    }

    .work-intelliscope-details {
        min-height: auto;
    }

    .work-prosource-details {
        border-top: 1px solid var(--ryatech-border);
        border-left: 0;
    }

    .work-stack-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

        .work-stack-heading p {
            max-width: 650px;
        }

    .work-cta {
        padding: 5rem 0;
    }
}

@media (max-width: 767.98px) {
    .work-hero {
        padding: 4.5rem 0;
    }

    .work-featured,
    .work-capabilities,
    .work-engineering,
    .work-stack {
        padding: 4.5rem 0;
    }

    .work-prosource {
        padding-bottom: 4.5rem;
    }

    .work-intelliscope-content,
    .work-intelliscope-details,
    .work-prosource-content,
    .work-prosource-details {
        padding: 2rem;
    }

    .work-intelliscope-logo {
        width: 100%;
    }

    .work-capability {
        grid-template-columns: 60px 1fr;
    }

    .work-stack-grid {
        grid-template-columns: 1fr;
    }

    .work-cta {
        padding: 4rem 0;
    }

    .work-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .work-intelliscope-content,
    .work-intelliscope-details,
    .work-prosource-content,
    .work-prosource-details {
        padding: 1.5rem;
    }

    .work-intelliscope-detail,
    .work-prosource-detail {
        grid-template-columns: 36px 1fr;
    }

    .work-capability {
        grid-template-columns: 1fr;
    }

    .work-engineering-code {
        padding: 2rem 1rem;
        font-size: 0.75rem;
    }

    .engineering-code-line {
        grid-template-columns: 28px 1fr;
    }

    .work-cta-inner {
        padding: 2rem 1.5rem;
    }
}
