
/* ==========================================================
   SOUTH HILL TRADING
   PROJECTS PAGE
   Load AFTER style.css
========================================================== */

/* ==========================================================
   VARIABLES
========================================================== */

.projects-page {
    --project-gold: #dda03a;
    --project-gold-light: #efb956;

    --project-dark: #0c100d;

    --project-green: #17231b;
    --project-green-soft: #283a2f;

    --project-cream: #f7f5ef;
    --project-white: #ffffff;

    --project-text: #272a27;
    --project-muted: #6d716d;

    --project-border: rgba(21, 31, 24, 0.11);
}

/* ==========================================================
   CURSOR GLOW
========================================================== */

.projects-page .cursor-glow {
    width: 280px;
    height: 280px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.14;
    border-radius: 50%;
    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(221, 160, 58, 0.34),
        rgba(221, 160, 58, 0.08) 40%,
        transparent 72%
    );

    mix-blend-mode: screen;
}

/* ==========================================================
   NAV SUPPORT
========================================================== */

.projects-page .nav-links {
    gap: clamp(13px, 1.35vw, 26px);
}

.projects-page .nav-link {
    white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1180px) {
    .projects-page .nav-links {
        gap: 11px;
    }

    .projects-page .nav-link {
        font-size: 9px;
    }

    .projects-page .search-button {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ==========================================================
   HERO
========================================================== */

.projects-hero {
    min-height: 890px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--project-dark);
    color: white;
}

.projects-hero-background {
    position: absolute;
    inset: -40px;
    z-index: 0;

    background:
        url("images/bell.JPG")
        center 45% / cover no-repeat;

    transform: scale(1.04);
    will-change: transform;
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(4, 8, 5, 0.96) 0%,
            rgba(4, 8, 5, 0.84) 39%,
            rgba(4, 8, 5, 0.48) 68%,
            rgba(4, 8, 5, 0.2) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08),
            rgba(4, 8, 5, 0.54)
        );
}

/* ==========================================================
   HERO DECORATION
========================================================== */

.projects-ring {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(221, 160, 58, 0.22);
    border-radius: 50%;
}

.projects-hero .ring-one {
    width: 520px;
    height: 520px;
    right: -220px;
    top: 100px;

    animation:
        projectOrbit 15s ease-in-out infinite alternate;
}

.projects-hero .ring-two {
    width: 225px;
    height: 225px;
    right: 85px;
    top: 255px;

    border-color: rgba(255, 255, 255, 0.11);

    animation:
        projectOrbit 10s ease-in-out infinite alternate-reverse;
}

@keyframes projectOrbit {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    to {
        transform: translate3d(-27px, 22px, 0) rotate(14deg);
    }
}

.projects-grid-decoration {
    width: 200px;
    height: 200px;
    position: absolute;
    z-index: 2;
    left: 4%;
    bottom: 175px;
    opacity: 0.13;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.16) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.16) 1px,
            transparent 1px
        );

    background-size: 28px 28px;
    transform: rotate(8deg);
}

/* ==========================================================
   HERO CONTENT
========================================================== */

.projects-hero-content {
    flex: 1;
    position: relative;
    z-index: 4;
    padding-top: 185px;
    padding-bottom: 215px;
    display: flex;
    align-items: center;
}

.projects-hero-copy {
    max-width: 740px;
}

.projects-hero-copy h1 {
    margin: 0;
    color: white;
    font-family: var(--serif);

    font-size: clamp(
        4.7rem,
        8vw,
        7.4rem
    );

    font-weight: 500;
    line-height: 0.84;
    letter-spacing: -3px;
}

.projects-hero-copy h1 span {
    display: block;
    margin-top: 10px;
    color: var(--project-gold-light);
    font-style: italic;
    font-weight: 400;
}

.projects-hero-copy p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.73);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
}

/* ==========================================================
   FLOATING PROJECT VALUES
========================================================== */

.hero-project-stack {
    width: 430px;
    height: 410px;
    position: absolute;
    z-index: 3;
    right: 6%;
    top: 190px;
}

.floating-project {
    position: absolute;
    padding: 22px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(14, 20, 16, 0.77);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(13px);

    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);

    animation:
        projectFloat 4s ease-in-out infinite alternate;
}

.floating-project span {
    color: var(--project-gold-light);
    font-family: var(--serif);
    font-size: 41px;
    line-height: 1;
}

.floating-project small {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.project-one {
    width: 245px;
    height: 135px;
    right: 0;
    top: 10px;
}

.project-two {
    width: 190px;
    height: 110px;
    left: 0;
    top: 150px;
    animation-delay: 0.5s;
}

.project-three {
    width: 310px;
    height: 120px;
    right: 25px;
    bottom: 0;
    animation-delay: 1s;
    overflow-wrap: break-word;
}

@keyframes projectFloat {
    to {
        transform: translateY(-12px);
    }
}

/* ==========================================================
   HERO GHOST WORD
========================================================== */

.projects-ghost-word {
    position: absolute;
    z-index: 2;
    right: -1vw;
    bottom: 110px;
    color: transparent;

    -webkit-text-stroke:
        1px rgba(255, 255, 255, 0.11);

    font-size: clamp(
        7rem,
        14vw,
        13rem
    );

    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.075em;
    pointer-events: none;
}

/* ==========================================================
   HERO FEATURES
========================================================== */

.projects-hero-features {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(7, 7, 7, 0.81);

    border-top:
        1px solid rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(14px);
}

/* ==========================================================
   INTRO
========================================================== */

.portfolio-intro {
    position: relative;
    padding: 135px 0;
    overflow: hidden;
    background: var(--project-cream);
}

.portfolio-intro-ring {
    width: 500px;
    height: 500px;
    position: absolute;
    right: -250px;
    top: -220px;

    border:
        1px solid rgba(221, 160, 58, 0.1);

    border-radius: 50%;
}

.portfolio-intro-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 105px;
    align-items: center;
}

.portfolio-title h2 {
    margin: 6px 0 30px;
    color: var(--project-dark);
    font-family: var(--serif);

    font-size: clamp(
        3.5rem,
        5.5vw,
        5.2rem
    );

    font-weight: 500;
    line-height: 0.95;
}

.portfolio-title h2 em {
    display: block;
    color: var(--project-gold);
    font-weight: 400;
}

.portfolio-code {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-code span {
    color: var(--project-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.portfolio-code i {
    color: var(--project-gold);
    font-family: var(--serif);
    font-size: 25px;
    font-style: normal;
}

.portfolio-intro-copy {
    padding-left: 35px;

    border-left:
        1px solid rgba(221, 160, 58, 0.42);
}

.portfolio-intro-copy p {
    margin-bottom: 17px;
    color: var(--project-muted);
    font-size: 11px;
    line-height: 1.95;
}

.portfolio-intro-copy .portfolio-lead {
    color: var(--project-text);
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.5;
}

/* ==========================================================
   MARQUEE
========================================================== */

.project-marquee {
    width: 100%;
    overflow: hidden;
    background: var(--project-gold);
}

.project-marquee-track {
    width: max-content;
    min-width: 200%;
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--project-dark);

    animation:
        projectTicker 26s linear infinite;
}

.project-marquee-track span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
}

.project-marquee-track i {
    opacity: 0.45;
    font-style: normal;
}

@keyframes projectTicker {
    to {
        transform: translateX(-50%);
    }
}

/* ==========================================================
   PROJECT PORTFOLIO
========================================================== */

.projects-portfolio {
    position: relative;
    padding: 130px 0 155px;
    background: white;
}

.project-search-anchor {
    position: absolute;
    top: 0;
}

.projects-heading {
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
}

.projects-heading h2 {
    margin-top: 7px;
    color: var(--project-dark);
    font-family: var(--serif);

    font-size: clamp(
        3.5rem,
        5.5vw,
        5.2rem
    );

    font-weight: 500;
    line-height: 0.95;
}

.projects-heading h2 em {
    display: block;
    color: var(--project-gold);
    font-weight: 400;
}

.projects-heading > p {
    max-width: 500px;
    justify-self: end;
    color: var(--project-muted);
    font-size: 11px;
    line-height: 1.9;
}

/* ==========================================================
   PROJECT GRID
========================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* ==========================================================
   PROJECT CARDS
========================================================== */

.project-card {
    min-height: 320px;
    position: relative;
    padding: 33px 34px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    background: var(--project-cream);
    border: 1px solid var(--project-border);

    box-shadow:
        0 12px 35px rgba(20, 28, 22, 0.04);

    transform-style: preserve-3d;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;
}

.project-card::before {
    content: "";
    width: 4px;
    height: 54px;
    position: absolute;
    left: 0;
    top: 35px;
    background: var(--project-gold);
    transition: height 0.35s ease;
}

.project-card::after {
    content: "";
    width: 190px;
    height: 190px;
    position: absolute;
    right: -145px;
    top: -145px;

    border:
        1px solid rgba(221, 160, 58, 0.15);

    border-radius: 50%;

    transition:
        transform 0.45s ease;
}

.project-card:hover {
    border-color: rgba(221, 160, 58, 0.38);
    background: white;

    box-shadow:
        0 28px 65px rgba(20, 28, 22, 0.1);
}

.project-card:hover::before {
    height: 110px;
}

.project-card:hover::after {
    transform: scale(1.5) translate(-18px, 18px);
}

/* ==========================================================
   CARD TOP
========================================================== */

.project-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.project-number {
    color: rgba(18, 25, 20, 0.18);
    font-family: var(--serif);
    font-size: 17px;
}

.project-value {
    color: var(--project-gold);
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
}

/* ==========================================================
   CARD BODY
========================================================== */

.project-body {
    position: relative;
    z-index: 2;
    margin: 45px 0 30px;
}

.project-category {
    display: block;
    margin-bottom: 9px;
    color: var(--project-gold);
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.project-body h3 {
    max-width: 470px;
    margin-bottom: 10px;
    color: var(--project-dark);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.1;
}

.project-body p {
    color: var(--project-muted);
    font-size: 10px;
    line-height: 1.8;
}

/* ==========================================================
   CARD FOOTER
========================================================== */

.project-footer {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--project-border);
}

.project-footer span {
    color: var(--project-muted);
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-footer i {
    width: 30px;
    height: 1px;
    background: var(--project-gold);
    transition: width 0.35s ease;
}

.project-card:hover .project-footer i {
    width: 75px;
}

/* ==========================================================
   DARK PROJECT
========================================================== */

.project-card-dark {
    background: linear-gradient(
        145deg,
        #0d110e,
        #19251c
    );

    border-color:
        rgba(255, 255, 255, 0.08);
}

.project-card-dark:hover {
    background: linear-gradient(
        145deg,
        #101510,
        #1d2a20
    );
}

.project-card-dark .project-number {
    color: rgba(255, 255, 255, 0.24);
}

.project-card-dark .project-body h3 {
    color: white;
}

.project-card-dark .project-body p {
    color: rgba(255, 255, 255, 0.52);
}

.project-card-dark .project-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.project-card-dark .project-footer span {
    color: rgba(255, 255, 255, 0.46);
}

/* ==========================================================
   WIDE GRADE 12 PROJECT
========================================================== */

.project-card-wide {
    grid-column: 1 / -1;
    min-height: 270px;
    display: grid;
    grid-template-columns: 1fr 0.35fr;
    align-items: center;
}

.project-wide-content {
    position: relative;
    z-index: 2;
}

.project-card-wide .project-body {
    margin-bottom: 0;
}

.project-wide-number {
    justify-self: end;
    color: rgba(221, 160, 58, 0.07);
    font-family: var(--serif);

    font-size: clamp(
        7rem,
        14vw,
        11rem
    );

    line-height: 0.8;
    pointer-events: none;
}

/* ==========================================================
   FLAGSHIP PROJECT
========================================================== */

.flagship-project {
    grid-column: 1 / -1;
    min-height: 520px;
    padding: 0;
    color: white;
    border: 0;
    background: var(--project-dark);
}

.flagship-project::before,
.flagship-project::after {
    display: none;
}

.flagship-background {
    position: absolute;
    inset: 0;

    background:
        url("images/V3-Consulting-–-NC-Coghsta-PMU-Key-projects-Landscape-872-x-540-53.jpg")
        center / cover no-repeat;

    transition: transform 7s ease;
}

.flagship-project:hover .flagship-background {
    transform: scale(1.045);
}

.flagship-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(7, 13, 9, 0.96),
        rgba(7, 13, 9, 0.72) 56%,
        rgba(7, 13, 9, 0.28)
    );
}

.flagship-content {
    min-height: 520px;
    position: relative;
    z-index: 2;
    padding: 52px 55px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flagship-project .project-number {
    color: rgba(255, 255, 255, 0.44);
}

.flagship-label {
    color: var(--project-gold-light);
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.flagship-project .project-category {
    color: var(--project-gold-light);
}

.flagship-project h3 {
    margin: 8px 0;
    color: white;
    font-family: var(--serif);

    font-size: clamp(
        3.4rem,
        6vw,
        5.7rem
    );

    font-weight: 500;
    line-height: 0.95;
}

.flagship-project .project-body {
    margin: 0;
}

.flagship-project .project-body p {
    color: rgba(255, 255, 255, 0.6);
}

.flagship-value {
    align-self: flex-end;
    color: var(--project-gold-light);
    font-family: var(--serif);

    font-size: clamp(
        4.5rem,
        10vw,
        8rem
    );

    line-height: 0.85;
}

/* ==========================================================
   SEARCH
========================================================== */

.project-card.hidden-search {
    display: none;
}

/* ==========================================================
   11 YEAR LEGACY
========================================================== */

.project-legacy {
    position: relative;
    overflow: hidden;
    padding: 130px 0;
    color: white;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(221, 160, 58, 0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0b100c,
            #17241a
        );
}

.project-legacy-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.17;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 65px 65px;
}

.legacy-ring {
    position: absolute;
    border: 1px solid rgba(221, 160, 58, 0.17);
    border-radius: 50%;
}

.legacy-ring-one {
    width: 570px;
    height: 570px;
    right: -280px;
    top: -140px;
}

.legacy-ring-two {
    width: 250px;
    height: 250px;
    right: 60px;
    top: 100px;
    border-color: rgba(255, 255, 255, 0.08);
}

.project-legacy-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.legacy-number > span {
    display: block;
    margin-bottom: 18px;
    color: var(--project-gold-light);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.legacy-number > div {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.legacy-number strong {
    color: var(--project-gold-light);
    font-family: var(--serif);

    font-size: clamp(
        9rem,
        18vw,
        14rem
    );

    font-weight: 400;
    line-height: 0.7;
    letter-spacing: -0.08em;
}

.legacy-number small {
    padding-bottom: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legacy-copy {
    max-width: 650px;
}

.legacy-copy h2 {
    margin: 8px 0 25px;
    color: white;
    font-family: var(--serif);

    font-size: clamp(
        3.4rem,
        5.2vw,
        5rem
    );

    font-weight: 500;
    line-height: 0.95;
}

.legacy-copy h2 em {
    display: block;
    color: var(--project-gold-light);
    font-weight: 400;
}

.legacy-copy p {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.59);
    font-size: 11px;
    line-height: 1.95;
}

/* ==========================================================
   PROJECT APPROACH
========================================================== */

.project-approach {
    padding: 130px 0;
    background: var(--project-cream);
}

.approach-heading {
    max-width: 780px;
    margin-bottom: 70px;
}

.approach-heading h2 {
    margin: 8px 0 22px;
    color: var(--project-dark);
    font-family: var(--serif);

    font-size: clamp(
        3.4rem,
        5vw,
        4.9rem
    );

    font-weight: 500;
    line-height: 0.95;
}

.approach-heading h2 em {
    display: block;
    color: var(--project-gold);
    font-weight: 400;
}

.approach-heading p {
    max-width: 570px;
    color: var(--project-muted);
    font-size: 11px;
    line-height: 1.9;
}

/* ==========================================================
   PROJECT PROCESS
========================================================== */

.project-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top:
        1px solid var(--project-border);

    border-bottom:
        1px solid var(--project-border);
}

.process-card {
    min-height: 290px;
    position: relative;
    padding: 38px 30px;
    overflow: hidden;

    border-right:
        1px solid var(--project-border);

    transition:
        background 0.35s ease,
        transform 0.35s ease;
}

.process-card:last-child {
    border-right: 0;
}

.process-card:hover {
    background: white;
}

.process-card > span {
    display: block;
    margin-bottom: 70px;
    color: var(--project-gold);
    font-family: var(--serif);
    font-size: 32px;
}

.process-card h3 {
    margin-bottom: 10px;
    color: var(--project-dark);
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 500;
}

.process-card p {
    color: var(--project-muted);
    font-size: 9px;
    line-height: 1.8;
}

/* ==========================================================
   DELIVERY FEATURE
========================================================== */

.delivery-feature {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.delivery-image {
    position: absolute;
    inset: 0;

    background:
        url("images/IMG_4800 (1).JPG")
        center / cover no-repeat;

    transition: transform 8s ease;
}

.delivery-feature:hover .delivery-image {
    transform: scale(1.045);
}

.delivery-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(7, 13, 9, 0.97),
        rgba(7, 13, 9, 0.76) 54%,
        rgba(7, 13, 9, 0.24)
    );
}

.delivery-ring {
    width: 500px;
    height: 500px;
    position: absolute;
    right: -220px;
    top: 70px;
    border: 1px solid rgba(221, 160, 58, 0.17);
    border-radius: 50%;
}

.delivery-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 110px 0;
}

.delivery-content > span {
    display: block;
    margin-bottom: 15px;
    color: var(--project-gold-light);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.6px;
}

.delivery-content h2 {
    margin-bottom: 25px;
    color: white;
    font-family: var(--serif);

    font-size: clamp(
        3.5rem,
        6vw,
        5.4rem
    );

    font-weight: 500;
    line-height: 0.94;
}

.delivery-content h2 em {
    display: block;
    color: var(--project-gold-light);
    font-weight: 400;
}

.delivery-content p {
    max-width: 590px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.61);
    font-size: 11px;
    line-height: 1.95;
}

/* ==========================================================
   CTA
========================================================== */

.projects-cta {
    background: var(--project-gold);
}

/* ==========================================================
   LARGE TABLET
========================================================== */

@media (max-width: 1050px) {
    .hero-project-stack {
        right: -60px;
        opacity: 0.62;
    }

    .project-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-card:nth-child(2) {
        border-right: 0;
    }

    .process-card:nth-child(-n + 2) {
        border-bottom:
            1px solid var(--project-border);
    }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
    .projects-page .cursor-glow {
        display: none;
    }

    .projects-hero {
        min-height: 900px;
    }

    .projects-hero-content {
        padding-top: 160px;
        padding-bottom: 285px;
    }

    .projects-hero-features .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-project-stack {
        width: 330px;
        right: -120px;
        top: 330px;
        opacity: 0.3;
    }

    .portfolio-intro-grid,
    .project-legacy-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .projects-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .projects-heading > p {
        justify-self: start;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card-wide,
    .flagship-project {
        grid-column: auto;
    }

    .project-card-wide {
        grid-template-columns: 1fr 0.35fr;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {
    .projects-hero {
        min-height: 850px;
    }

    .projects-hero-background {
        background-position: 60% center;
    }

    .projects-hero-overlay {
        background: linear-gradient(
            rgba(5, 9, 6, 0.57),
            rgba(5, 9, 6, 0.92)
        );
    }

    .projects-hero-content {
        padding-top: 145px;
        padding-bottom: 275px;
    }

    .projects-hero-copy h1 {
        font-size: clamp(
            3.6rem,
            17vw,
            5.1rem
        );

        letter-spacing: -1px;
    }

    .projects-hero-copy p {
        font-size: 14px;
    }

    .hero-project-stack {
        display: none;
    }

    .projects-ghost-word {
        bottom: 245px;
        font-size: 20vw;
    }

    .projects-hero .ring-one {
        width: 300px;
        height: 300px;
        right: -180px;
    }

    .projects-hero .ring-two,
    .projects-grid-decoration {
        display: none;
    }

    .portfolio-intro,
    .projects-portfolio,
    .project-approach {
        padding: 85px 0 95px;
    }

    .portfolio-title h2,
    .projects-heading h2,
    .approach-heading h2 {
        font-size: clamp(
            2.8rem,
            13vw,
            3.9rem
        );
    }

    .portfolio-intro-copy {
        padding-left: 24px;
    }

    .project-card {
        min-height: 290px;
        padding: 29px 25px;
    }

    .project-value {
        font-size: 29px;
    }

    .project-body {
        margin: 35px 0 25px;
    }

    .project-body h3 {
        font-size: 24px;
    }

    .project-card-wide {
        display: flex;
    }

    .project-wide-number {
        position: absolute;
        right: 15px;
        bottom: 15px;
        font-size: 8rem;
    }

    .flagship-project {
        min-height: 520px;
    }

    .flagship-content {
        min-height: 520px;
        padding: 38px 28px;
    }

    .flagship-project h3 {
        font-size: clamp(
            3rem,
            15vw,
            4.5rem
        );
    }

    .flagship-value {
        font-size: clamp(
            4.5rem,
            23vw,
            7rem
        );
    }

    .project-legacy {
        padding: 90px 0;
    }

    .legacy-number strong {
        font-size: clamp(
            8rem,
            40vw,
            12rem
        );
    }

    .legacy-copy h2,
    .delivery-content h2 {
        font-size: clamp(
            3rem,
            14vw,
            4.1rem
        );
    }

    .project-process {
        grid-template-columns: 1fr;
    }

    .process-card,
    .process-card:nth-child(2) {
        min-height: auto;
        padding: 30px 0;
        border-right: 0;
        border-bottom:
            1px solid var(--project-border);
    }

    .process-card:last-child {
        border-bottom: 0;
    }

    .process-card > span {
        margin-bottom: 25px;
    }

    .delivery-content {
        padding: 90px 0;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {
    .projects-hero-copy h1 {
        font-size: 3.45rem;
    }

    .project-card {
        padding: 26px 21px;
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .projects-page .cursor-glow {
        display: none;
    }

    .projects-page .reveal {
        opacity: 1;
        transform: none;
    }

    .projects-ring,
    .floating-project,
    .project-marquee-track {
        animation: none !important;
    }

    .projects-page [data-tilt] {
        transform: none !important;
    }

    .flagship-background,
    .delivery-image {
        transform: none !important;
    }
}

/* ==========================================================
   SOLUTIONS / SERVICES OFFERED AT SOUTH HILL
   Connects to #solutions-services in projects.html
========================================================== */

.projects-page .solutions-services-section {
    position: relative;
    padding: clamp(65px, 8vw, 110px) 0;
    background: #ffffff;
    color: #303030;
    overflow: hidden;
}

.projects-page .solutions-services-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 8px;
    background: var(--project-gold);
}

.projects-page .solutions-services-heading {
    margin-bottom: 48px;
}

.projects-page .solutions-services-heading h2 {
    margin: 0;
    color: #51463e;
    font-family: var(--serif, Georgia, "Times New Roman", serif);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.035em;
}

.projects-page .solutions-heading-rule {
    width: 100%;
    height: 1px;
    margin-top: 28px;
    background: rgba(0, 0, 0, 0.12);
}

/* ==========================================================
   SIX SERVICES
========================================================== */

.projects-page .solutions-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 70px;
}

.projects-page .solutions-service-card {
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 22px 20px;
    background: #f7f7f7;
    border-left: 2px solid #565656;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.projects-page .solutions-service-card h3 {
    margin: 0;
    color: #353535;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.projects-page .solutions-service-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--project-gold);
    background: #fbfaf7;
}

/* ==========================================================
   AFFILIATIONS AND STRATEGIC PARTNERS
========================================================== */

.projects-page .solutions-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 850px;
}

.projects-page .solutions-subheading {
    margin: 0 0 28px;
    padding-bottom: 12px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.12);

    color: #c19a55;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.projects-page .capacity-building-partners .solutions-subheading {
    color: #353535;
    letter-spacing: 0.035em;
}

/* ==========================================================
   PROFESSIONAL AFFILIATIONS
========================================================== */

.projects-page .affiliation-list {
    display: grid;
    gap: 24px;
}

.projects-page .affiliation-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects-page .affiliation-acronym {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;

    border: 1px solid #d9b97f;
    border-radius: 50%;

    color: #4b4b4b;
    font-size: 0.66rem;
    font-weight: 500;
}

.projects-page .affiliation-item h4 {
    margin: 0 0 5px;
    color: #303030;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.6;
    text-transform: uppercase;
}

.projects-page .affiliation-item p {
    margin: 0;
    color: #858585;
    font-size: 0.8rem;
}

/* ==========================================================
   STRATEGIC PARTNERS LIST
========================================================== */

.projects-page .capacity-partners-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.projects-page .capacity-partners-list li {
    position: relative;
    padding-left: 15px;
    color: #555555;
    font-size: 0.88rem;
    line-height: 1.6;
}

.projects-page .capacity-partners-list li::before {
    position: absolute;
    left: 0;
    color: var(--project-gold);
    content: "•";
}

/* ==========================================================
   SERVICES SECTION: TABLET
========================================================== */

@media (max-width: 768px) {
    .projects-page .solutions-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 52px;
    }

    .projects-page .solutions-services-section {
        padding: 65px 0;
    }
}

/* ==========================================================
   SERVICES SECTION: MOBILE
========================================================== */

@media (max-width: 520px) {
    .projects-page .solutions-service-grid {
        grid-template-columns: 1fr;
    }

    .projects-page .solutions-service-card {
        min-height: 76px;
    }

    .projects-page .affiliation-item {
        align-items: flex-start;
        gap: 14px;
    }

    .projects-page .affiliation-acronym {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .projects-page .affiliation-item h4 {
        font-size: 0.77rem;
    }

    .projects-page .solutions-subheading {
        font-size: 0.82rem;
    }
}
