.results-projects-page {
    --projects-ink: #131722;
    --projects-warm: #f6f1e7;
    --projects-warm-deep: #ece2d2;
    --projects-ocean: #17264a;
    --projects-ocean-soft: #223462;
    --projects-amber: #ffb75d;
    --projects-shadow: rgba(8, 16, 30, 0.22);
    background: linear-gradient(180deg, #f9f4eb 0%, #ede5d8 100%);
    color: var(--projects-ink);
}

@keyframes meshDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-2%, 2%, 0) scale(1.04);
    }

    100% {
        transform: translate3d(2%, -2%, 0) scale(1.02);
    }
}

@keyframes softPulse {
    0% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.35;
    }
}

.projects-eyebrow {
    font-family: var(--font-detail);
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 18px;
}

.results-projects-page .btn-premium {
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd48d 0%, #ffb24d 100%);
    color: #19140b;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 14px 32px;
    box-shadow: 0 16px 28px rgba(203, 133, 31, 0.28);
}

.results-projects-page .btn-premium:hover {
    background: linear-gradient(135deg, #ffe0ac 0%, #ffc162 100%);
    transform: translateY(-3px);
}

.projects-hero {
    position: relative;
    height: 280vh;
}

.projects-hero-track {
    position: relative;
    height: 100%;
}

.projects-hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 186, 83, 0.22), transparent 42%),
        radial-gradient(circle at 84% 14%, rgba(91, 142, 255, 0.24), transparent 45%),
        radial-gradient(circle at 78% 82%, rgba(32, 183, 203, 0.16), transparent 40%),
        linear-gradient(145deg, #0b1020 0%, #111d38 50%, #0d172e 100%);
    background-size: 140% 140%;
    animation: meshDrift 18s ease-in-out infinite alternate;
}

.projects-hero-stage::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 24% 68%, rgba(255, 190, 96, 0.25), transparent 36%),
        radial-gradient(circle at 66% 36%, rgba(66, 147, 255, 0.2), transparent 40%);
    filter: blur(42px);
    opacity: 0.55;
    animation: meshDrift 24s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

.projects-hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.34) 0%, rgba(8, 10, 14, 0.56) 60%, rgba(8, 10, 14, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.projects-parallax-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.parallax-group {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.parallax-back {
    z-index: 1;
    /* Behind Text */
}

.parallax-text-layer {
    position: relative;
    z-index: 2;
    /* Middle */
    pointer-events: none;
}

.parallax-front {
    z-index: 3;
    /* Above Text */
    pointer-events: none;
    /* Let clicks pass through */
}

/* Base properties for all overlapping images */
.parallax-img {
    position: absolute;
    width: clamp(170px, 19vw, 300px);
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 58px rgba(4, 7, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
}

.parallax-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 
  Initial Starting Positions 
  Top Front (Group 1): Highest up
  Back (Group 2): Middle
  Bottom Front (Group 3): Offscreen/Lowest
*/

/* Group 1: Top Front (Moves first) */
.hero-top-left {
    left: 8%;
    top: 65%;
}

.hero-top-right {
    right: 8%;
    top: 60%;
}

/* Group 2: Back */
.hero-back-left {
    left: 20%;
    top: 75%;
}

.hero-back-right {
    right: 22%;
    top: 70%;
}

/* Group 3: Bottom Front (Wait for scroll) */
.hero-bottom-left {
    left: 12%;
    top: 95%;
    /* Starts below initial fold */
}

.hero-bottom-right {
    right: 15%;
    top: 105%;
    /* Starts below initial fold */
}

.projects-hero-center {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
}

.projects-hero-content {
    max-width: 760px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.projects-hero-content h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 5.2vw, 4.6rem);
    line-height: 0.92;
    letter-spacing: -0.6px;
    text-transform: none;
    margin-bottom: 18px;
    text-shadow: 0 14px 28px rgba(1, 4, 10, 0.42);
}

.projects-subtitle {
    color: rgba(255, 255, 255, 0.86);
    max-width: 600px;
    margin: 0 auto 34px;
    font-size: 1.04rem;
    line-height: 1.74;
    text-shadow: 0 8px 18px rgba(2, 5, 12, 0.35);
}

.projects-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 33px;
    border: 1px solid rgba(15, 17, 25, 0.78);
    border-radius: 999px;
    color: #111;
    font-family: var(--font-detail);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-outline-dark:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

.projects-hero .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.projects-hero .btn-outline-dark:hover {
    background: #fff;
    color: #111;
}

.project-story {
    position: relative;
    isolation: isolate;
    padding: 126px 0 168px;
    background: linear-gradient(165deg, #f6f1e7 0%, #ece2d2 100%);
    overflow: clip;
}

.project-story::before {
    content: "";
    position: absolute;
    inset: -24% -12% 34% -12%;
    background:
        radial-gradient(circle at 22% 38%, rgba(255, 184, 86, 0.3), transparent 40%),
        radial-gradient(circle at 72% 58%, rgba(62, 132, 227, 0.22), transparent 44%);
    filter: blur(36px);
    opacity: 0.7;
    z-index: -1;
    animation: meshDrift 20s ease-in-out infinite alternate;
}

.project-story-grid {
    display: grid;
    grid-template-columns: minmax(290px, 0.88fr) minmax(440px, 1.12fr);
    gap: clamp(30px, 4vw, 72px);
}

.project-story-copy {
    align-self: start;
    position: sticky;
    top: 130px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.project-story-copy .projects-eyebrow,
.project-testimonials-head .projects-eyebrow,
.projects-cta .projects-eyebrow {
    color: rgba(10, 17, 40, 0.72);
}

.project-story-copy h2 {
    font-size: clamp(2.2rem, 4.2vw, 4.1rem);
    line-height: 0.92;
    text-transform: none;
    letter-spacing: -0.52px;
    margin-bottom: 22px;
    max-width: 8.2ch;
}

.project-story-copy p {
    color: rgba(15, 20, 32, 0.78);
    max-width: 450px;
    font-size: 1.02rem;
    line-height: 1.75;
}

.project-story-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.project-story-sequence {
    display: flex;
    flex-direction: column;
    gap: 20vh;
    padding-bottom: 24vh;
}

.story-card {
    position: sticky;
    top: 14vh;
    min-height: min(72vh, 620px);
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 56px var(--projects-shadow);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #0f1014;
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    pointer-events: none;
    opacity: 0.6;
}

.story-card:nth-child(1) {
    z-index: 1;
    top: 13vh;
}

.story-card:nth-child(2) {
    z-index: 2;
    top: 14vh;
}

.story-card:nth-child(3) {
    z-index: 3;
    top: 15vh;
}

.story-card:nth-child(4) {
    z-index: 4;
    top: 16vh;
}

.story-card:nth-child(5) {
    z-index: 5;
    top: 17vh;
}

.story-card:nth-child(6) {
    z-index: 6;
    top: 18vh;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.story-card:hover img {
    transform: scale(1.04);
}

.story-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 31px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 8, 14, 0.87) 78%);
    color: #fff;
}

.story-index {
    display: inline-block;
    font-family: var(--font-detail);
    font-size: 0.74rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.story-card-overlay h3 {
    color: #fff;
    font-size: clamp(1.42rem, 2vw, 2.1rem);
    text-transform: none;
    letter-spacing: -0.28px;
    margin-bottom: 8px;
}

.story-card-overlay p {
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.95rem;
    line-height: 1.62;
}

.recent-work-horizontal {
    position: relative;
    isolation: isolate;
    background: linear-gradient(165deg, #0b1120 0%, #172440 44%, #10192e 100%);
    overflow: clip;
}

.recent-work-horizontal::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 16% 35%, rgba(255, 183, 89, 0.45), transparent 36%),
        radial-gradient(circle at 84% 64%, rgba(75, 145, 255, 0.5), transparent 39%),
        radial-gradient(circle at 48% 74%, rgba(38, 179, 202, 0.35), transparent 40%);
    filter: blur(48px);
    opacity: 0.9;
    z-index: -1;
    animation: meshDrift 22s ease-in-out infinite alternate;
}

.recent-work-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: 140px 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-work-head {
    margin-bottom: 70px;
}

.recent-work-head .projects-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.recent-work-head h2 {
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    text-transform: none;
    letter-spacing: -0.32px;
    margin-bottom: 12px;
}

.recent-work-head p {
    color: rgba(232, 239, 255, 0.83);
    max-width: 640px;
}

.recent-work-gallery {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.recent-work-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 0 clamp(16px, 4vw, 56px);
    will-change: transform;
}

.recent-work-card {
    position: relative;
    flex: 0 0 clamp(340px, 60vw, 760px);
    height: min(66vh, 560px);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 62px rgba(3, 10, 22, 0.4);
    background: #0b0b0e;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.recent-work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 38px 68px rgba(2, 8, 19, 0.55);
}

.recent-work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-work-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.83));
}

.recent-work-meta span {
    font-family: var(--font-detail);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.77);
}

.recent-work-meta h3 {
    color: #fff;
    font-size: 1.34rem;
    text-transform: none;
    letter-spacing: -0.22px;
    margin-top: 8px;
}

.project-testimonials {
    position: relative;
    isolation: isolate;
    padding: 116px 0;
    background: linear-gradient(180deg, #f8f2e8 0%, #f0e7d8 100%);
    border-top: 1px solid rgba(10, 17, 40, 0.08);
    overflow: clip;
}

.project-testimonials::before {
    content: "";
    position: absolute;
    inset: -28% -10% auto -10%;
    height: 72%;
    background:
        radial-gradient(circle at 22% 60%, rgba(255, 188, 97, 0.34), transparent 42%),
        radial-gradient(circle at 74% 36%, rgba(79, 145, 245, 0.22), transparent 42%);
    filter: blur(36px);
    opacity: 0.7;
    z-index: -1;
    animation: meshDrift 19s ease-in-out infinite alternate;
}

.project-testimonials-head h2 {
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    text-transform: none;
    letter-spacing: -0.3px;
    margin-bottom: 24px;
}

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

.project-testimonial-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(10, 17, 40, 0.1);
    border-radius: 20px;
    padding: 29px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 36px rgba(23, 32, 55, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 44px rgba(18, 28, 47, 0.16);
}

.project-stars {
    color: #102443;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.project-testimonial-card p {
    color: rgba(16, 16, 16, 0.76);
    line-height: 1.65;
}

.project-testimonial-card h3 {
    font-size: 1.25rem;
    letter-spacing: 0;
    text-transform: none;
    margin: 22px 0 2px;
}

.project-testimonial-card span {
    font-size: 0.8rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(16, 16, 16, 0.6);
}

.projects-cta {
    position: relative;
    isolation: isolate;
    padding: 126px 0;
    background: linear-gradient(140deg, #0f182f 0%, #1b2a4d 52%, #13203f 100%);
    border-top: 1px solid rgba(10, 17, 40, 0.08);
    overflow: clip;
}

.projects-cta::before {
    content: "";
    position: absolute;
    inset: -26% -12%;
    background:
        radial-gradient(circle at 24% 68%, rgba(255, 184, 90, 0.22), transparent 40%),
        radial-gradient(circle at 76% 30%, rgba(69, 146, 255, 0.25), transparent 42%);
    filter: blur(40px);
    opacity: 0.8;
    z-index: -1;
    animation: meshDrift 21s ease-in-out infinite alternate-reverse;
}

.projects-cta-inner {
    text-align: center;
    max-width: 760px;
}

.projects-cta h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.98;
    text-transform: none;
    letter-spacing: -0.48px;
    margin-bottom: 20px;
}

.projects-cta p {
    color: rgba(229, 238, 255, 0.82);
    max-width: 560px;
    margin: 0 auto 28px;
}

.projects-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.projects-cta .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.projects-cta .btn-outline-dark:hover {
    background: #fff;
    color: #111;
}

@media (max-width: 1180px) {

    .hero-pos-5,
    .hero-pos-6 {
        display: none;
    }

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

    .project-story-copy {
        position: relative;
        top: auto;
    }
}

@media (max-width: 992px) {

    .project-story {
        padding: 86px 0 94px;
    }

    .project-story-copy {
        padding: 0;
    }

    .project-story-sequence {
        gap: 20px;
        padding-bottom: 0;
    }

    .story-card,
    .story-card:nth-child(n) {
        min-height: 400px;
    }

    .recent-work-card {
        flex-basis: min(86vw, 480px);
        height: 430px;
    }

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

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

    .projects-hero-stage,
    .projects-hero-stage::before,
    .project-story::before,
    .recent-work-horizontal::before,
    .project-testimonials::before,
    .projects-cta::before {
        animation: none !important;
    }

    .story-card img,
    .project-testimonial-card,
    .recent-work-card {
        transition: none !important;
    }
}