
/* =========================================================
   RM SERVICES — PROJECTS PAGE
   Theme: Deep Navy / Sky Blue / White / Soft Grey
   Responsive | Accessible | Consolidated
========================================================= */

.projects-page {
    --navy: #10243a;
    --navy-dark: #0a1929;
    --navy-light: #183c5b;
    --blue: #398ac2;
    --blue-light: #83c6ee;
    --blue-pale: #eaf5fc;
    --ink: #172b40;
    --muted: #718195;
    --line: #e5ebf1;
    --surface: #ffffff;
    --background: #f5f8fb;
    --green: #16845c;
    --shadow: 0 14px 40px rgba(16, 36, 58, .07);

    background: var(--background);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.projects-page *,
.projects-page *::before,
.projects-page *::after {
    box-sizing: border-box;
}

.projects-page h1,
.projects-page h2,
.projects-page h3,
.projects-page h4 {
    font-family: "Manrope", sans-serif;
}

.projects-page a {
    text-decoration: none;
}

.projects-page button,
.projects-page input,
.projects-page select {
    font: inherit;
}

.projects-page button {
    cursor: pointer;
}

.projects-page .container {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
}

.projects-page .section {
    padding: 100px 0;
}

.projects-page [hidden] {
    display: none !important;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.projects-page .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 12px 18px;
    transform: translateY(-160%);
    border-radius: 7px;
    background: white;
    color: var(--navy);
    box-shadow: var(--shadow);
}

.projects-page .skip-link:focus {
    transform: translateY(0);
}

.projects-page :focus-visible {
    outline: 3px solid rgba(57, 138, 194, .65);
    outline-offset: 4px;
}

/* =========================================================
   SCROLL PROGRESS
========================================================= */

.projects-page .scroll-progress {
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--blue-light);
}

/* =========================================================
   NAVIGATION
========================================================= */

.projects-page .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 24px rgba(17, 42, 65, .045);
    backdrop-filter: blur(16px);
}

.projects-page .navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.projects-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--navy);
}

.projects-page .brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--navy);
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 6px 16px rgba(16, 36, 58, .18);
}

.projects-page .brand-text strong,
.projects-page .brand-text small {
    display: block;
}

.projects-page .brand-text strong {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}

.projects-page .brand-text small {
    margin-top: 4px;
    color: #8292a3;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.projects-page .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.projects-page .nav-links > a {
    position: relative;
    padding: 10px 0;
    color: #566779;
    font-size: 12px;
    font-weight: 700;
    transition: color .25s ease;
}

.projects-page .nav-links > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 5px;
    background: var(--blue);
    transition: width .25s ease;
}

.projects-page .nav-links > a:hover,
.projects-page .nav-links > a.active {
    color: var(--blue);
}

.projects-page .nav-links > a:hover::after,
.projects-page .nav-links > a.active::after {
    width: 100%;
}

.projects-page .nav-links > a.nav-cta {
    padding: 13px 20px;
    border-radius: 7px;
    background: var(--navy);
    color: white;
    transition: background .25s ease, transform .25s ease;
}

.projects-page .nav-links > a.nav-cta:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.projects-page .menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.projects-page .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 5px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================
   BUTTONS
========================================================= */

.projects-page .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.projects-page .btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 8px 20px rgba(57, 138, 194, .16);
}

.projects-page .btn-primary:hover {
    background: #246eaa;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(57, 138, 194, .25);
}

/* =========================================================
   HERO
========================================================= */

.projects-page .project-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 88px 0;
    background: linear-gradient(
        120deg,
        #0a1929 0%,
        #102b45 58%,
        #153c5c 100%
    );
    color: white;
}

.projects-page .project-hero-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to right, black, transparent 90%);
}

.projects-page .project-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.projects-page .orb-one {
    top: -180px;
    right: 12%;
    width: 420px;
    height: 420px;
    background: rgba(57, 138, 194, .15);
}

.projects-page .orb-two {
    bottom: -230px;
    left: 28%;
    width: 400px;
    height: 400px;
    background: rgba(131, 198, 238, .08);
}

.projects-page .project-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 65px;
}

.projects-page .project-hero-copy {
    position: relative;
    z-index: 2;
}

.projects-page .hero-kicker,
.projects-page .eyebrow,
.projects-page .results-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.projects-page .hero-kicker {
    margin-bottom: 25px;
    color: #a9d7f4;
}

.projects-page .kicker-line {
    width: 30px;
    height: 2px;
    background: var(--blue-light);
}

.projects-page .hero-title {
    max-width: 700px;
    margin: 0;
    font-size: clamp(43px, 5.2vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3.2px;
}

.projects-page .hero-title span {
    display: block;
    color: var(--blue-light);
}

.projects-page .hero-description {
    max-width: 550px;
    margin: 25px 0 30px;
    color: #c1d0dd;
    font-size: 14px;
    line-height: 1.95;
}

.projects-page .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.projects-page .hero-text-link {
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease;
}

.projects-page .hero-text-link:hover {
    color: var(--blue-light);
}

.projects-page .hero-trust-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 44px;
    color: #a9baca;
    font-size: 11px;
}

.projects-page .trust-dot,
.projects-page .view-indicator {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #69d3a3;
    box-shadow: 0 0 0 4px rgba(105, 211, 163, .12);
}

.projects-page .hero-visual {
    position: relative;
    min-width: 0;
    padding: 0 12px 12px 0;
}

.projects-page .hero-visual-frame {
    position: relative;
    height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: #23445f;
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.projects-page .hero-visual-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.projects-page .hero-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 35%,
        rgba(5, 20, 34, .75)
    );
}

.projects-page .hero-floating-label {
    position: absolute;
    top: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px;
    background: rgba(12, 29, 46, .75);
    backdrop-filter: blur(12px);
}

.projects-page .floating-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.projects-page .hero-floating-label strong,
.projects-page .hero-floating-label small {
    display: block;
}

.projects-page .hero-floating-label strong {
    font-size: 10px;
    letter-spacing: .6px;
}

.projects-page .hero-floating-label small {
    margin-top: 4px;
    color: #b9cad8;
    font-size: 8px;
    letter-spacing: 1.5px;
}

.projects-page .hero-image-caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.projects-page .caption-divider {
    width: 25px;
    height: 1px;
    background: var(--blue-light);
}

.projects-page .hero-visual-decoration {
    position: absolute;
    z-index: -1;
    right: -10px;
    bottom: -10px;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(131, 198, 238, .5);
    border-radius: 14px;
}

/* =========================================================
   STATISTICS
========================================================= */

.projects-page .project-stat-section {
    position: relative;
    z-index: 3;
    background: white;
    border-bottom: 1px solid var(--line);
}

.projects-page .project-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.projects-page .project-stat {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-right: 1px solid var(--line);
    text-align: center;
    transition: background .25s ease;
}

.projects-page .project-stat:last-child {
    border-right: 0;
}

.projects-page .project-stat:hover {
    background: #f5faff;
}

.projects-page .stat-number {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 39px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.projects-page .stat-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* =========================================================
   PROJECT DIRECTORY
========================================================= */

.projects-page .project-directory {
    padding: 100px 0 110px;
    background: var(--background);
}

.projects-page .directory-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 38px;
}

.projects-page .directory-heading h2 {
    margin: 13px 0 12px;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 47px);
    font-weight: 800;
    letter-spacing: -2px;
}

.projects-page .directory-heading h2 span {
    color: var(--blue);
}

.projects-page .directory-heading p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.projects-page .directory-side-note {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    box-shadow: 0 5px 20px rgba(16,36,58,.035);
}

.projects-page .side-note-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 20px;
}

.projects-page .directory-side-note strong,
.projects-page .directory-side-note small {
    display: block;
}

.projects-page .directory-side-note strong {
    color: var(--navy);
    font-size: 11px;
}

.projects-page .directory-side-note small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

/* =========================================================
   FILTER PANEL
========================================================= */

.projects-page .project-filter-panel {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
}

.projects-page .filter-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.projects-page .filter-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-page .filter-heading-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 25px;
}

.projects-page .filter-heading strong,
.projects-page .filter-heading small {
    display: block;
}

.projects-page .filter-heading strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.projects-page .filter-heading small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.projects-page .reset-filters {
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    transition: background .2s ease;
}

.projects-page .reset-filters:hover {
    background: var(--blue-pale);
}

.projects-page .filter-search-row {
    margin-bottom: 23px;
}

.projects-page .project-search-box {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 16px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #f9fbfd;
    color: var(--blue);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.projects-page .project-search-box:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(57,138,194,.1);
}

.projects-page .project-search-box > span {
    font-size: 23px;
}

.projects-page .project-search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}

.projects-page .project-search-box input::placeholder {
    color: #98a6b4;
}

.projects-page .project-search-box kbd {
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: white;
    color: #8493a2;
    font-family: inherit;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.projects-page .filter-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.projects-page .filter-label {
    display: block;
    margin-bottom: 10px;
    color: #8a98a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.projects-page .category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.projects-page .filter-chip {
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #e3eaf0;
    border-radius: 6px;
    background: white;
    color: #617285;
    font-size: 10px;
    font-weight: 700;
    transition: all .2s ease;
}

.projects-page .filter-chip:hover {
    border-color: #9bc9e6;
    color: var(--blue);
}

.projects-page .filter-chip.active {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

.projects-page .additional-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.projects-page .additional-filters label {
    min-width: 125px;
}

.projects-page .additional-filters select {
    width: 100%;
    min-height: 38px;
    padding: 0 30px 0 11px;
    border: 1px solid #e3eaf0;
    border-radius: 6px;
    background: white;
    color: #526579;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.projects-page .active-filter-summary {
    margin-top: 21px;
    padding-top: 15px;
    border-top: 1px solid #edf1f5;
    color: #8593a1;
    font-size: 10px;
}

/* =========================================================
   RESULTS HEADING
========================================================= */

.projects-page .project-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0 22px;
}

.projects-page .results-eyebrow {
    color: #8b9aaa;
    font-size: 9px;
}

.projects-page .project-results-heading h3 {
    margin: 8px 0 0;
    color: var(--navy);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.projects-page .results-view-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8190a0;
    font-size: 10px;
    font-weight: 700;
}

.projects-page .view-indicator {
    width: 7px;
    height: 7px;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(57,138,194,.1);
}

/* =========================================================
   PROJECT GRID
========================================================= */

.projects-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

.projects-page .projects-grid[hidden] {
    display: none !important;
}

/* =========================================================
   PROJECT CARDS
========================================================= */

.projects-page .project-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7edf2;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 22px rgba(18,43,66,.045);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
    animation: projectCardIn .45s ease both;
}

.projects-page .project-card:hover {
    transform: translateY(-7px);
    border-color: #d2e5f2;
    box-shadow: 0 20px 42px rgba(18,43,66,.12);
}

/* Image wrapper: supports both markup variations */

/* =========================================================
   PROJECT CARD IMAGE — CORRECTED
========================================================= */

.projects-page .project-card-image {
    position: relative;
    width: 100%;
    height: 235px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e5edf3;
}

.projects-page .project-card-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}

.projects-page .project-card:hover .project-card-image > img {
    transform: scale(1.06);
}

/* Image shading */

.projects-page .project-card-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(
        transparent,
        rgba(8, 25, 42, .35)
    );
    pointer-events: none;
}

/* Category label */

.projects-page .project-card-image .project-category {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 5px;
    background: rgba(12,29,46,.82);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}

/* Year label */

.projects-page .project-card-image .project-year-tag {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(12,29,46,.82);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

/* Card location */

.projects-page .project-card-location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: #8a98a7;
    font-size: 10px;
    text-align: left;
}

/* Mobile image height */

@media (max-width: 600px) {
    .projects-page .project-card-image {
        height: 230px;
    }
}

/* Category and year labels */

.projects-page .project-card-category,
.projects-page .project-category {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 5px;
    background: rgba(12,29,46,.82);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}

.projects-page .project-card-year,
.projects-page .project-year-tag {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(12,29,46,.82);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

/* Card content */

.projects-page .project-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.projects-page .project-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.projects-page .project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.projects-page .project-status::before {
    content: "";
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}

.projects-page .project-status.ongoing {
    color: #c17b23;
}

.projects-page .project-card-location {
    color: #8a98a7;
    font-size: 9px;
    text-align: right;
}

.projects-page .project-card h3 {
    min-height: 48px;
    margin: 0 0 10px;
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.4px;
}

.projects-page .project-card-scope {
    min-height: 58px;
    margin: 0;
    color: #7b8998;
    font-size: 11px;
    line-height: 1.75;
}

/* Card footer */

.projects-page .project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
}

.projects-page .project-card-client {
    min-width: 0;
    overflow: hidden;
    color: #9aa6b2;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projects-page .project-card-button,
.projects-page .project-view-btn {
    flex-shrink: 0;
    padding: 8px 11px;
    border: 0;
    border-radius: 5px;
    background: var(--blue-pale);
    color: #2778ae;
    font-size: 9px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease;
}

.projects-page .project-card-button:hover,
.projects-page .project-view-btn:hover {
    background: var(--blue);
    color: white;
}

/* Error message from JavaScript */

.projects-page .project-loading-error {
    grid-column: 1 / -1;
    padding: 35px;
    border: 1px solid #f0d5d5;
    border-radius: 12px;
    background: #fff8f8;
    color: #8d3030;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.projects-page .empty-state {
    padding: 65px 20px;
    border: 1px dashed #cfdae4;
    border-radius: 12px;
    background: white;
    text-align: center;
}

.projects-page .empty-state-art {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 35px;
}

.projects-page .empty-state h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 22px;
}

.projects-page .empty-state p {
    max-width: 430px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* =========================================================
   CONTACT CTA
========================================================= */

.projects-page .project-contact-section {
    padding: 15px 0 100px;
    background: var(--background);
}

.projects-page .project-contact-panel {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 55px 65px;
    border-radius: 14px;
    background: linear-gradient(115deg, #10243a, #174467);
    color: white;
    box-shadow: 0 22px 55px rgba(16,36,58,.14);
    isolation: isolate;
}

.projects-page .contact-panel-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.projects-page .contact-panel-content .eyebrow {
    color: #a9d7f4;
}

.projects-page .contact-panel-content h2 {
    margin: 16px 0;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    letter-spacing: -1.8px;
}

.projects-page .contact-panel-content h2 span {
    color: var(--blue-light);
}

.projects-page .contact-panel-content p {
    max-width: 500px;
    margin: 0 0 25px;
    color: #c1d0dd;
    font-size: 12px;
    line-height: 1.9;
}

.projects-page .contact-panel-button {
    background: white;
    color: var(--navy);
    box-shadow: none;
}

.projects-page .contact-panel-button:hover {
    background: var(--blue-light);
    color: var(--navy);
}

.projects-page .contact-panel-mark {
    position: absolute;
    z-index: -1;
    right: 65px;
    bottom: -85px;
    color: rgba(255,255,255,.055);
    font-family: "Manrope", sans-serif;
    font-size: 300px;
    font-weight: 800;
    letter-spacing: -25px;
    line-height: 1;
}

.projects-page .contact-decoration {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(131,198,238,.18);
    border-radius: 50%;
}

.projects-page .contact-decoration-one {
    top: -140px;
    right: 15%;
    width: 330px;
    height: 330px;
}

.projects-page .contact-decoration-two {
    right: -100px;
    bottom: -240px;
    width: 430px;
    height: 430px;
}

/* =========================================================
   PROJECT MODAL
========================================================= */

.projects-page .project-modal {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.projects-page .project-modal.is-open,
.projects-page .project-modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.projects-page .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,16,28,.78);
    backdrop-filter: blur(5px);
}

.projects-page .modal-panel {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: min(90vh, 850px);
    overflow-y: auto;
    border-radius: 13px;
    background: white;
    box-shadow: 0 30px 90px rgba(0,0,0,.3);
    transform: translateY(18px) scale(.98);
    transition: transform .25s ease;
}

.projects-page .project-modal.is-open .modal-panel,
.projects-page .project-modal.open .modal-panel {
    transform: translateY(0) scale(1);
}

.projects-page .modal-close {
    position: absolute;
    z-index: 5;
    top: 15px;
    right: 15px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(9,25,41,.72);
    cursor: pointer;
}

.projects-page .modal-close span {
    position: absolute;
    width: 17px;
    height: 2px;
    border-radius: 3px;
    background: white;
}

.projects-page .modal-close span:first-child {
    transform: rotate(45deg);
}

.projects-page .modal-close span:last-child {
    transform: rotate(-45deg);
}

.projects-page .modal-image-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #dce6ee;
}

.projects-page .modal-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.projects-page .modal-image-overlay {
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(
        transparent,
        rgba(7,24,40,.65)
    );
}

.projects-page .modal-image-label {
    position: absolute;
    bottom: 20px;
    left: 25px;
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.projects-page .modal-content {
    padding: 30px;
}

.projects-page .modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 15px;
}

.projects-page .modal-meta span {
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--blue-pale);
    color: #2778ae;
    font-size: 9px;
    font-weight: 800;
}

.projects-page .modal-meta span:last-child {
    background: #e9f6ef;
    color: var(--green);
}

.projects-page .modal-meta span:last-child.ongoing {
    background: #fff4e5;
    color: #b97820;
}

.projects-page .modal-content h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -.8px;
}

.projects-page .modal-content > p {
    margin: 0;
    color: #748394;
    font-size: 12px;
    line-height: 1.9;
}

.projects-page .modal-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0;
    margin: 25px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.projects-page .modal-details > div {
    min-width: 0;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.projects-page .modal-details > div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.projects-page .modal-details > div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.projects-page .modal-details small,
.projects-page .modal-details strong {
    display: block;
}

.projects-page .modal-details small {
    margin-bottom: 7px;
    color: #9aa6b2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.projects-page .modal-details strong {
    color: var(--navy);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.projects-page .modal-enquiry {
    width: 100%;
}

/* =========================================================
   FOOTER
========================================================= */

.projects-page .footer {
    background: #091827;
    color: #c1ceda;
}

.projects-page .footer-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.projects-page .footer-brand .brand-mark {
    background: var(--blue);
}

.projects-page .footer-brand .brand-text strong {
    color: white;
}

.projects-page .footer-brand .brand-text small {
    color: #9eafc0;
}

.projects-page .footer p {
    margin: 0;
    color: #9eafc0;
    font-size: 10px;
}

.projects-page .back-top {
    color: #a9d5f3;
    font-size: 11px;
    font-weight: 700;
}

.projects-page .back-top:hover {
    color: white;
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.projects-page .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.projects-page .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes projectCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   TABLET — 1000px
========================================================= */

@media (max-width: 1000px) {
    .projects-page .nav-links {
        gap: 18px;
    }

    .projects-page .project-hero-inner {
        gap: 35px;
    }

    .projects-page .hero-visual-frame {
        height: 360px;
    }

    .projects-page .filter-bottom-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-page .projects-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* =========================================================
   MOBILE NAVIGATION — 800px
========================================================= */

@media (max-width: 800px) {
    .projects-page .navbar {
        min-height: 72px;
    }

    .projects-page .menu-toggle {
        display: block;
    }

    .projects-page .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px 28px 22px;
        border-bottom: 1px solid var(--line);
        background: white;
        box-shadow: 0 16px 25px rgba(16,36,58,.08);
    }

    .projects-page .nav-links.open {
        display: flex;
    }

    .projects-page .nav-links > a {
        padding: 14px 0;
        border-bottom: 1px solid #edf1f5;
    }

    .projects-page .nav-links > a::after {
        display: none;
    }

    .projects-page .nav-links > a.nav-cta {
        margin-top: 12px;
        padding: 13px 16px;
        border-bottom: 0;
        text-align: center;
    }

    .projects-page .project-hero-inner {
        grid-template-columns: 1fr;
    }

    .projects-page .project-hero {
        padding: 75px 0;
    }

    .projects-page .project-hero-copy {
        max-width: 680px;
    }

    .projects-page .hero-visual {
        max-width: 600px;
    }

    .projects-page .hero-visual-frame {
        height: 350px;
    }

    .projects-page .directory-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-page .directory-side-note {
        width: 100%;
    }

    .projects-page .additional-filters {
        width: 100%;
    }

    .projects-page .additional-filters label {
        flex: 1;
    }
}

/* =========================================================
   SMALL MOBILE — 600px
========================================================= */

@media (max-width: 600px) {
    .projects-page .container {
        width: calc(100% - 36px);
    }

    .projects-page .project-hero {
        padding: 65px 0 55px;
    }

    .projects-page .hero-title {
        font-size: clamp(39px, 10vw, 53px);
        letter-spacing: -2.2px;
    }

    .projects-page .hero-description {
        font-size: 13px;
    }

    .projects-page .hero-trust-line {
        align-items: flex-start;
        font-size: 10px;
        line-height: 1.6;
    }

    .projects-page .hero-visual-frame {
        height: 275px;
    }

    .projects-page .project-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-page .project-stat {
        min-height: 115px;
        border-bottom: 1px solid var(--line);
    }

    .projects-page .project-stat:nth-child(2) {
        border-right: 0;
    }

    .projects-page .project-stat:nth-child(n+3) {
        border-bottom: 0;
    }

    .projects-page .stat-number {
        font-size: 33px;
    }

    .projects-page .project-directory {
        padding: 70px 0;
    }

    .projects-page .directory-heading h2 {
        font-size: 35px;
    }

    .projects-page .project-filter-panel {
        padding: 18px;
    }

    .projects-page .filter-topline {
        align-items: flex-start;
    }

    .projects-page .reset-filters {
        white-space: nowrap;
    }

    .projects-page .project-search-box {
        gap: 9px;
        padding: 0 11px;
    }

    .projects-page .project-search-box input {
        font-size: 10px;
    }

    .projects-page .project-search-box kbd {
        display: none;
    }

    .projects-page .category-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .projects-page .filter-chip {
        width: 100%;
    }

    .projects-page .additional-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .projects-page .additional-filters label:last-child {
        grid-column: 1 / -1;
    }

    .projects-page .project-results-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 38px;
    }

    .projects-page .projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .projects-page .project-card-image-wrap {
        height: 230px;
    }

    .projects-page .project-card h3,
    .projects-page .project-card-scope {
        min-height: 0;
    }

    .projects-page .project-contact-section {
        padding-bottom: 65px;
    }

    .projects-page .project-contact-panel {
        min-height: 0;
        padding: 38px 25px;
    }

    .projects-page .contact-panel-mark {
        right: 0;
        bottom: -45px;
        font-size: 180px;
    }

    .projects-page .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 28px;
        padding-bottom: 28px;
        gap: 18px;
    }

    .projects-page .project-modal {
        padding: 12px;
    }

    .projects-page .modal-panel {
        max-height: 94vh;
    }

    .projects-page .modal-image-wrap {
        height: 210px;
    }

    .projects-page .modal-content {
        padding: 22px;
    }

    .projects-page .modal-content h2 {
        font-size: 21px;
    }

    .projects-page .modal-details > div {
        padding: 12px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .projects-page *,
    .projects-page *::before,
    .projects-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .projects-page .reveal {
        opacity: 1;
        transform: none;
    }
}
.projects-page [hidden] {
    display: none !important;
}
