/* Project showcase: service-style grid frame with orange corner markers. */
#section-projects {
    isolation: isolate;
    overflow: hidden;
    background-color: #090d16 !important;
    background-image:
        radial-gradient(ellipse 58% 58% at 80% 18%, rgba(185, 91, 59, .11), transparent 100%),
        linear-gradient(105deg, #080b10 0%, #0b0e13 54%, #151116 100%) !important;
}

/* Keep the home page canvas continuous in light mode; preserve the standalone
   projects listing palette. */
body.light-mode #section-projects:not(.projects-page-listing) {
    background: #fff !important;
    color: #24201e;
}
body.light-mode #section-projects:not(.projects-page-listing) .projects-grid {
    opacity: .28;
}

#section-projects .projects-grid,
#section-projects.projects-page-listing .projects-grid {
    display: block !important;
    background-image:
        linear-gradient(rgba(230, 226, 222, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 226, 222, .075) 1px, transparent 1px);
    background-size: 68px 68px;
}

#section-projects .projects-grid::before {
    display: none;
    inset: 0 auto 0 0;
    width: 8px;
    height: auto;
    background: radial-gradient(circle, #ff713e 0 2px, transparent 2.8px) left top / 8px 64px repeat-y;
    filter: drop-shadow(0 0 4px rgba(244, 90, 36, .3));
    clip-path: none;
}

#section-projects .projects-grid::after { content: none; }

/* Match the Services card matrix on the homepage. */
#section-projects:not(.projects-page-listing) #project-list {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 236, 232, .19);
    border-radius: 2px;
    background-color: rgba(9, 11, 15, .14);
    background-image:
        linear-gradient(rgba(235, 232, 230, .052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 232, 230, .052) 1px, transparent 1px);
    background-size: 80px 80px;
}
#section-projects:not(.projects-page-listing) #project-list::before,
#section-projects:not(.projects-page-listing) #project-list::after {
    position: absolute;
    z-index: 5;
    left: -1px;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: #f53003;
    content: "";
    pointer-events: none;
}
#section-projects:not(.projects-page-listing) #project-list::before { top: -1px; }
#section-projects:not(.projects-page-listing) #project-list::after { bottom: -1px; }
#section-projects:not(.projects-page-listing) #project-list > [class*="col-"] { min-width: 0; }
#section-projects:not(.projects-page-listing) .project-card-showcase {
    min-height: 500px;
    border: 0;
    border-right: 1px solid rgba(245, 236, 232, .17);
    border-bottom: 1px solid rgba(245, 236, 232, .17);
    border-radius: 0;
    background: rgba(11, 12, 16, .58);
}
#section-projects:not(.projects-page-listing) #project-list > [class*="col-"]:nth-child(3n) .project-card-showcase { border-right: 0; }

#section-projects > .container { z-index: 1; }
#section-projects .projects-heading .subtitle { color: #ff7844; }
#section-projects .projects-heading h2 { color: #f6f3f0; }
#section-projects .projects-heading .lead { color: rgba(228, 222, 217, .72); }
#section-projects:not(.projects-page-listing) .projects-heading {
    flex: 0 0 100%;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}
#section-projects:not(.projects-page-listing) .projects-heading h2 {
    display: block;
    width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
    white-space: nowrap !important;
}
#section-projects:not(.projects-page-listing) .projects-heading h2 span {
    display: inline !important;
    white-space: nowrap !important;
}
#section-projects:not(.projects-page-listing) .projects-heading .lead { margin-inline: auto; }
#section-projects:not(.projects-page-listing) .projects-home-heading-row { position: relative; }
#section-projects:not(.projects-page-listing) .projects-action {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    justify-content: flex-end;
}
@media (max-width: 767.98px) {
    #section-projects:not(.projects-page-listing) .projects-heading h2 {
        font-size: clamp(1.2rem, 5.7vw, 2.6rem);
    }
    #section-projects:not(.projects-page-listing) .projects-action {
        position: static;
        width: 100%;
        justify-content: flex-end !important;
        text-align: right;
    }
    #section-projects:not(.projects-page-listing) .projects-view-all .view-all-label-full { display: none; }
    #section-projects:not(.projects-page-listing) .projects-view-all .view-all-label-mobile { display: inline-block; }
}

#section-projects .projects-view-all {
    width: max-content;
    flex: 0 0 auto;
    white-space: nowrap;
    border-color: rgba(255, 120, 68, .38);
    background: rgba(255, 255, 255, .025);
    color: #f6f1ed;
}
#section-projects .projects-view-all > span { display: inline-block; white-space: nowrap; }
#section-projects .projects-view-all .view-all-label-mobile { display: none; }
#section-projects .projects-view-all:hover,
#section-projects .projects-view-all:focus-visible {
    border-color: #f45a24;
    background: #f45a24;
    color: #fff;
}

#section-projects .project-card-showcase {
    min-height: 500px;
    border-color: rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(16, 15, 18, .9);
    box-shadow: none;
    transition: transform .24s ease, border-color .24s ease, background-color .24s ease;
}
#section-projects .project-card-showcase::after {
    background: radial-gradient(ellipse at 76% 100%, rgba(238, 91, 39, .045), transparent 62%);
}
#section-projects .project-card-copy { padding: 1.5rem 1.5rem 1rem; }
#section-projects .project-card-category,
#section-projects .project-card-date {
    border-color: rgba(255, 128, 73, .28);
    background: rgba(239, 93, 42, .09);
    color: #ff9a69;
}
#section-projects .project-card-title { color: #f4f1ee; }
#section-projects .project-card-summary { color: rgba(227, 222, 217, .76); }
#section-projects:not(.projects-page-listing) .project-card-summary,
#section-projects.projects-page-listing .projects-case-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
#section-projects .project-card-meta { color: rgba(227, 222, 217, .66); }
#section-projects .project-card-meta i { color: #ff8750; }
#section-projects .project-card-art {
    height: clamp(220px, 24vw, 290px);
    margin: auto .5rem 0;
}
#section-projects .project-card-art::before {
    background: linear-gradient(180deg, transparent 70%, rgba(9, 13, 22, .32));
}
#section-projects .project-card-arrow {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #ff7258;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
#section-projects .project-card-arrow svg {
    width: 100%;
    height: 100%;
    padding: .43rem;
    border: 1px solid rgba(255, 104, 82, .36);
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease, color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
#section-projects .project-card-showcase:hover .project-card-arrow,
#section-projects .project-card-showcase:focus-within .project-card-arrow {
    transform: translateY(-1px);
}
#section-projects .project-card-showcase:hover .project-card-arrow svg,
#section-projects .project-card-showcase:focus-within .project-card-arrow svg {
    transform: rotate(45deg) scale(1.06);
    border-color: #f53003;
    background: #f53003;
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 48, 3, .3);
}
#section-projects .project-card-arrow:hover svg,
#section-projects .project-card-arrow:focus-visible svg {
    transform: rotate(45deg) scale(1.06);
    border-color: #f53003;
    background: #f53003;
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 48, 3, .3);
}
#section-projects .project-card-arrow:focus-visible { outline: 2px solid #f53003; outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
    #section-projects .project-card-showcase:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 120, 68, .48);
        background: rgba(22, 19, 20, .96);
        box-shadow: none;
    }
}

#section-projects.projects-page-listing {
    --case-ink: #f4f1ee;
    --case-muted: rgba(227, 222, 217, .72);
    --case-surface: rgba(16, 15, 18, .92);
    --case-border: rgba(255, 255, 255, .13);
    background-color: #090d16 !important;
    background-image:
        radial-gradient(ellipse 58% 58% at 80% 18%, rgba(185, 91, 59, .11), transparent 100%),
        linear-gradient(105deg, #080b10 0%, #0b0e13 54%, #151116 100%) !important;
}
#section-projects.projects-page-listing .projects-heading .subtitle { color: #ff7844; }
#section-projects.projects-page-listing .projects-heading h2 { color: #f6f3f0; }
#section-projects.projects-page-listing .projects-heading .lead { color: rgba(228, 222, 217, .72); }
#section-projects.projects-page-listing .projects-case-card {
    min-height: 390px;
    border-color: rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: rgba(16, 15, 18, .92);
    box-shadow: none;
    transition: transform .24s ease, border-color .24s ease, background-color .24s ease;
}
#section-projects.projects-page-listing .projects-case-art { height: 180px; flex-basis: 180px; }
#section-projects.projects-page-listing .projects-case-category {
    background: rgba(239, 93, 42, .1);
    color: #ff9a69;
}
#section-projects.projects-page-listing .projects-case-link { color: #ff8750; }

@media (hover: hover) and (pointer: fine) {
    #section-projects.projects-page-listing .projects-case-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 120, 68, .45);
        box-shadow: none;
    }
}

body.light-mode #section-projects {
    background-color: #fbf8f5 !important;
    background-image:
        radial-gradient(ellipse 58% 58% at 80% 18%, rgba(207, 105, 65, .085), transparent 100%),
        linear-gradient(105deg, #fcfaf8 0%, #f9f6f2 54%, #f5efea 100%) !important;
}
body.light-mode #section-projects,
body.light-mode #section-projects.projects-page-listing {
    background-color: #ffffff !important;
    background-image: none !important;
}
body.light-mode #section-projects .projects-grid {
    background-image:
        linear-gradient(rgba(58, 45, 37, .105) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 45, 37, .105) 1px, transparent 1px);
    background-size: 68px 68px;
}
body.light-mode #section-projects:not(.projects-page-listing) #project-list {
    border-color: rgba(77, 57, 43, .2);
    background-color: rgba(255, 255, 255, .3);
    background-image:
        linear-gradient(rgba(58, 45, 37, .105) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 45, 37, .105) 1px, transparent 1px);
    background-size: 68px 68px;
}
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase {
    border-right-color: rgba(77, 57, 43, .17);
    border-bottom-color: rgba(77, 57, 43, .17);
    background: rgba(255, 255, 255, .62);
}
body.light-mode #section-projects .projects-heading .subtitle { color: #ce4f1b; }
body.light-mode #section-projects .projects-heading h2 { color: #211d1a; }
body.light-mode #section-projects .projects-heading .lead { color: #6d625b; }
body.light-mode #section-projects .projects-view-all { color: #372920; }
body.light-mode #section-projects .project-card-showcase {
    border-color: rgba(77, 57, 43, .14);
    background: rgba(255, 255, 255, .72);
}
body.light-mode #section-projects .project-card-title { color: #2b211c; }
body.light-mode #section-projects .project-card-summary,
body.light-mode #section-projects .project-card-meta { color: #655b55; }
body.light-mode #section-projects .project-card-category,
body.light-mode #section-projects .project-card-date {
    border-color: rgba(206, 79, 27, .2);
    background: rgba(239, 93, 42, .08);
    color: #b94113;
}
body.light-mode #section-projects .project-card-arrow { color: #fff; }
body.light-mode #section-projects.projects-page-listing {
    --case-ink: #2b211c;
    --case-muted: #655b55;
    --case-surface: rgba(255, 255, 255, .88);
    --case-border: rgba(77, 57, 43, .14);
    background-color: #fbf8f5 !important;
    background-image:
        radial-gradient(ellipse 58% 58% at 80% 18%, rgba(207, 105, 65, .085), transparent 100%),
        linear-gradient(105deg, #fcfaf8 0%, #f9f6f2 54%, #f5efea 100%) !important;
}
body.light-mode #section-projects.projects-page-listing .projects-case-category { color: #b94113; }
body.light-mode #section-projects.projects-page-listing .projects-case-link { color: #c84b17; }

/* Subdue the project grids and remove the heavy backing behind home cards. */
#section-projects .projects-grid {
    background-image: linear-gradient(rgba(230,226,222,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(230,226,222,.028) 1px, transparent 1px) !important;
}
body.light-mode #section-projects .projects-grid {
    background-image: linear-gradient(rgba(58,45,37,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(58,45,37,.025) 1px, transparent 1px) !important;
}
#section-projects:not(.projects-page-listing) #project-list {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#section-projects:not(.projects-page-listing) #project-list::before,
#section-projects:not(.projects-page-listing) #project-list::after { display: none !important; }
#section-projects:not(.projects-page-listing) .project-card-showcase,
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase {
    background: transparent !important;
    box-shadow: none !important;
}
#section-projects .projects-case-card { box-shadow: none !important; }

@media (max-width: 767.98px) {
    #section-projects { padding: 4rem 0; }
    #section-projects .project-card-showcase { min-height: 470px; }
    #section-projects .project-card-art { height: 235px; }
    #section-projects:not(.projects-page-listing) #project-list > [class*="col-"] .project-card-showcase { border-right: 0; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    #section-projects:not(.projects-page-listing) #project-list > [class*="col-"]:nth-child(3n) .project-card-showcase { border-right: 1px solid rgba(245, 236, 232, .17); }
    #section-projects:not(.projects-page-listing) #project-list > [class*="col-"]:nth-child(2n) .project-card-showcase { border-right: 0; }
    body.light-mode #section-projects:not(.projects-page-listing) #project-list > [class*="col-"]:nth-child(3n) .project-card-showcase { border-right-color: rgba(77, 57, 43, .17); }
}
@media (prefers-reduced-motion: reduce) {
    #section-projects .project-card-showcase,
    #section-projects .projects-view-all,
    #section-projects .project-card-art img,
    #section-projects .projects-case-card,
    #section-projects .projects-case-image { transition: none; }
}

/* Company overview video section following Projects. */
#section-company-video {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%), #edf2ef;
    color: #15283a;
}
#section-company-video::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(rgba(20, 92, 158, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 92, 158, .025) 1px, transparent 1px);
    background-size: 120px 120px;
    content: "";
    pointer-events: none;
}
#section-company-video .company-video-layout {
    position: relative;
    width: min(100% - 2rem, 1000px);
    max-width: 1000px;
}
#section-company-video .company-video-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
#section-company-video .company-video-heading {
    max-width: 680px;
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    padding: 0 1rem;
    text-align: center;
}
#section-company-video .company-video-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    padding: .3rem .68rem;
    border: 1px solid rgba(20, 92, 158, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    color: #145c9e;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .055em;
}
#section-company-video .company-video-heading h2 {
    max-width: 20ch;
    margin: 0 auto;
    color: #15283a;
    font: 500 clamp(2rem, 4.1vw, 3rem)/1.08 "Bricolage Grotesque", "Manrope", sans-serif;
    letter-spacing: -.055em;
    text-wrap: balance;
}
#section-company-video .company-video-heading h2 span {
    display: inline-block;
    margin-left: .12em;
    color: #ee722a;
    font-family: "Bricolage Grotesque", "Manrope", sans-serif;
    font-style: italic;
    font-weight: 450;
    letter-spacing: -.065em;
}
#section-company-video .company-video-heading p { margin: .65rem auto 0; color: #667789; font-size: clamp(.82rem, 1.1vw, .92rem); line-height: 1.6; }
#section-company-video .company-video-frame {
    position: relative;
    width: min(100%, 900px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(20, 92, 158, .17);
    border-radius: 16px;
    background: #050b12;
    box-shadow: 0 14px 32px rgba(11, 34, 54, .16);
}
#section-company-video .company-video-frame video { display: block; width: 100%; max-height: 620px; aspect-ratio: 16 / 9; border: 0; border-radius: inherit; background: #03070c; object-fit: contain; }
body.light-mode #section-company-video { background-color: #edf2ef; }
@media (max-width: 767.98px) {
    #section-company-video .company-video-layout { width: 100%; }
    #section-company-video .company-video-heading { margin-bottom: 1.25rem; }
    #section-company-video .company-video-heading h2 { max-width: 19ch; font-size: clamp(1.8rem, 8vw, 2.4rem); }
    #section-company-video .company-video-frame { border-radius: 12px; }
}

/* Refined portfolio page heading and case study cards. */
.projects-hero {
    --projects-hero-ink: #f3f7fb;
    --projects-hero-muted: rgba(224, 236, 247, .76);
    --projects-hero-accent: #ee722a;
    background:
        linear-gradient(rgba(187, 211, 232, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 211, 232, .045) 1px, transparent 1px),
        radial-gradient(ellipse at 12% 35%, rgba(20, 92, 158, .32), transparent 42%),
        radial-gradient(ellipse at 88% 74%, rgba(238, 114, 42, .15), transparent 43%),
        #081522;
    background-size: 92px 92px, 92px 92px, auto, auto, auto;
}
.projects-hero h1,
body.dark-scheme .projects-hero h1 {
    position: relative;
    z-index: 1;
    right: auto;
    bottom: auto;
    max-width: 780px;
    color: #f3f7fb;
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 550;
    letter-spacing: -.075em;
    line-height: 1.01;
}
.projects-hero h1 span { color: #ee722a; font-style: italic; font-weight: 450; }
.projects-hero h1 .projects-hero-title-line { display: block; color: inherit; font-style: normal; font-weight: inherit; white-space: nowrap; }
/* Keep the first phrase on one line while scaling it to the available width. */
.projects-hero h1 .projects-hero-title-line { font-size: .78em; letter-spacing: -.065em; }
.projects-hero-eyebrow { color: #a9d0ef; }
.projects-hero-eyebrow span { color: #ee722a; }
.projects-hero-brand { color: #f3f7fb; }
.projects-hero-description { max-width: 600px; color: rgba(224, 236, 247, .76); }
.projects-hero-cta { border-color: #ee722a; background: #ee722a; color: #fff; }
.projects-hero-cta:hover,
.projects-hero-cta:focus-visible { border-color: #ff8b49; background: #ff8b49; box-shadow: 0 10px 26px rgba(238, 114, 42, .22); }
.projects-hero-trust { color: rgba(229, 239, 248, .8); }

#section-projects.projects-page-listing {
    --case-ink: #f2f6fa;
    --case-muted: rgba(221, 233, 245, .72);
    --case-surface: #0d1b29;
    --case-border: rgba(113, 164, 205, .2);
    background: radial-gradient(ellipse at 12% 18%, rgba(20, 92, 158, .19), transparent 43%), radial-gradient(ellipse at 94% 88%, rgba(238, 114, 42, .1), transparent 38%), #091522 !important;
}
#section-projects.projects-page-listing .projects-heading .subtitle { margin-bottom: .55rem; color: #ee722a; font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
#section-projects.projects-page-listing .projects-heading h2 { color: #f2f6fa; font: 500 clamp(2.4rem, 4.5vw, 3.6rem)/1.05 "Bricolage Grotesque", "Manrope", sans-serif; letter-spacing: -.06em; }
#section-projects.projects-page-listing .projects-heading h2 span { display: inline; margin-left: .12em; color: #ee722a; font-style: italic; font-weight: 450; }
#section-projects.projects-page-listing .projects-heading .lead { color: rgba(221, 233, 245, .72); }
#section-projects.projects-page-listing .projects-page-heading-row { justify-content: center; text-align: center; }
#section-projects.projects-page-listing .projects-heading { width: 100%; margin-inline: auto; text-align: center; }
#section-projects.projects-page-listing .projects-heading h2 { width: 100%; margin-inline: auto; text-align: center !important; }
#section-projects.projects-page-listing .projects-heading .lead { margin-inline: auto; }
#section-projects.projects-page-listing .projects-page-grid { --bs-gutter-x: 1.35rem; --bs-gutter-y: 1.5rem; }
#section-projects.projects-page-listing .projects-case-card {
    min-height: 430px;
    border: 1px solid rgba(113, 164, 205, .2);
    border-radius: 15px;
    background: linear-gradient(150deg, rgba(15, 34, 52, .98), rgba(9, 22, 35, .98));
    box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
#section-projects.projects-page-listing .projects-case-art { height: 205px; flex-basis: 205px; background-color: #102b43; }
#section-projects.projects-page-listing .projects-case-image { opacity: .94; }
#section-projects.projects-page-listing .projects-case-art::after { background: linear-gradient(180deg, rgba(5, 15, 22, .02) 30%, rgba(5, 15, 22, .58) 100%); }
#section-projects.projects-page-listing .projects-case-copy { padding: 1.25rem 1.3rem 1.2rem; }
#section-projects.projects-page-listing .projects-case-category { border: 1px solid rgba(238, 114, 42, .25); border-radius: 999px; background: rgba(238, 114, 42, .1); color: #ffad78; }
#section-projects.projects-page-listing .projects-case-title { color: #f2f6fa; font: 600 1.18rem/1.3 "Manrope", sans-serif; letter-spacing: -.025em; }
#section-projects.projects-page-listing .projects-case-summary { color: rgba(221, 233, 245, .72); font-size: .86rem; line-height: 1.65; }
#section-projects.projects-page-listing .projects-case-link { color: #ff9a5c; font-size: .8rem; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
    #section-projects.projects-page-listing .projects-case-card:hover { transform: translateY(-5px); border-color: rgba(238, 114, 42, .52); box-shadow: 0 22px 44px rgba(0, 0, 0, .27), 0 0 24px rgba(20, 92, 158, .13); }
    #section-projects.projects-page-listing .projects-case-card:hover .projects-case-image { transform: scale(1.045); opacity: 1; }
}
body.light-mode .projects-hero {
    --projects-hero-ink: #18324a;
    --projects-hero-muted: #61768a;
    background: linear-gradient(rgba(20, 92, 158, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 92, 158, .045) 1px, transparent 1px), radial-gradient(ellipse at 12% 35%, rgba(20, 92, 158, .12), transparent 42%), radial-gradient(ellipse at 88% 74%, rgba(238, 114, 42, .1), transparent 43%), #f3f7fa;
    background-size: 92px 92px, 92px 92px, auto, auto, auto;
}
body.light-mode .projects-hero h1 { color: #18324a; }
body.light-mode .projects-hero-brand { color: #145c9e; }
body.light-mode .projects-hero-description { color: #61768a; }
body.light-mode .projects-hero-trust { color: #35546e; }
body.light-mode #section-projects.projects-page-listing { background: radial-gradient(ellipse at 12% 18%, rgba(20, 92, 158, .09), transparent 43%), radial-gradient(ellipse at 94% 88%, rgba(238, 114, 42, .075), transparent 38%), #f2f6f9 !important; }
body.light-mode #section-projects.projects-page-listing .projects-heading h2 { color: #18324a; }
body.light-mode #section-projects.projects-page-listing .projects-heading .lead { color: #61768a; }
body.light-mode #section-projects.projects-page-listing .projects-case-card { border-color: rgba(20, 92, 158, .16); background: linear-gradient(150deg, #fff, #f7fafc); box-shadow: 0 12px 30px rgba(20, 55, 84, .09); }
body.light-mode #section-projects.projects-page-listing .projects-case-title { color: #18324a; }
body.light-mode #section-projects.projects-page-listing .projects-case-summary { color: #617184; }
body.light-mode #section-projects.projects-page-listing .projects-case-category { border-color: rgba(238, 114, 42, .22); background: rgba(238, 114, 42, .08); color: #c85a1e; }

.projects-hero-cta {
    min-height: 54px;
    gap: 1.15rem;
    padding: .8rem 1.1rem .8rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: linear-gradient(130deg, #ee722a, #d95d1c);
    box-shadow: 0 9px 24px rgba(238, 114, 42, .2), inset 0 1px rgba(255, 255, 255, .24);
    color: #fff;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.projects-hero-cta i { color: rgba(255, 255, 255, .9); }
.projects-hero-cta:hover,
.projects-hero-cta:focus-visible { transform: translateY(-2px); border-color: rgba(255, 255, 255, .38); background: linear-gradient(130deg, #ff8741, #e96c26); box-shadow: 0 13px 30px rgba(238, 114, 42, .3), inset 0 1px rgba(255, 255, 255, .3); color: #fff; }
body.light-mode .projects-hero-cta { border-color: rgba(20, 92, 158, .15); background: linear-gradient(130deg, #ee722a, #d95d1c); color: #fff; }
@media (max-width: 767.98px) {
    .projects-hero h1,
    body.dark-scheme .projects-hero h1 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
    .projects-hero h1 .projects-hero-title-line { font-size: .68em; }
    #section-projects.projects-page-listing .projects-case-card { min-height: 0; }
}
@media (max-width: 420px) {
    .projects-hero h1 .projects-hero-title-line { font-size: .58em; }
}

/* Final home Projects overrides: clear card edges with a soft, warm shadow. */
#section-projects .projects-grid {
    background-image: linear-gradient(rgba(230,226,222,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(230,226,222,.025) 1px, transparent 1px) !important;
}
body.light-mode #section-projects .projects-grid {
    background-image: linear-gradient(rgba(58,45,37,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(58,45,37,.02) 1px, transparent 1px) !important;
}
#section-projects:not(.projects-page-listing) #project-list {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#section-projects:not(.projects-page-listing) #project-list::before,
#section-projects:not(.projects-page-listing) #project-list::after { display: none !important; }
#section-projects:not(.projects-page-listing) .project-card-showcase,
#section-projects:not(.projects-page-listing) .project-card-showcase:hover,
#section-projects:not(.projects-page-listing) .project-card-showcase:focus-within,
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase,
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase:hover {
    border: 1px solid rgba(235, 194, 169, .25) !important;
    border-radius: 16px;
    background: rgba(13, 15, 20, .68) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .24), 0 1px 0 rgba(255, 255, 255, .045) inset !important;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
#section-projects:not(.projects-page-listing) .project-card-showcase:hover,
#section-projects:not(.projects-page-listing) .project-card-showcase:focus-within {
    border-color: rgba(255, 145, 94, .52) !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .32), 0 0 24px rgba(238, 114, 42, .09) !important;
}
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase,
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase:hover,
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase:focus-within {
    border-color: rgba(116, 78, 54, .2) !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 14px 34px rgba(88, 57, 36, .12), 0 1px 0 rgba(255, 255, 255, .85) inset !important;
}
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase:hover,
body.light-mode #section-projects:not(.projects-page-listing) .project-card-showcase:focus-within {
    border-color: rgba(206, 79, 27, .34) !important;
    box-shadow: 0 20px 42px rgba(88, 57, 36, .17), 0 0 22px rgba(238, 114, 42, .08) !important;
}
