 :root {
     --navy: #142747;
     --navy2: #1b355d;
     --blue: #0879b9;
     --gold: #d5ad55;
     --ink: #1c2b3e;
     --muted: #657386;
     --soft: #f2f5f8;
     --line: #dfe5eb
 }

 * {
     box-sizing: border-box
 }

 html {
     scroll-behavior: smooth
 }

 body {
     font-family: 'DM Sans', sans-serif;
     color: var(--ink);
     line-height: 1.7
 }

 h1,
 h2,
 h3,
 h4,
 h5 {
     font-family: Manrope, sans-serif;
     font-weight: 800;
     line-height: 1.16;
     letter-spacing: -.035em
 }

 h2 {
     font-size: clamp(2rem, 4vw, 3.15rem);
     color: var(--navy);
     margin-bottom: 1.15rem
 }

 h2 em,
 h1 em {
     font-style: normal;
     color: var(--blue)
 }

 p {
     color: var(--muted)
 }

 a {
     text-decoration: none
 }

 .topbar {
     background: #0d1d35;
     color: #d9e2ef;
     font-size: .78rem;
     padding: 8px 0
 }

 .topbar a {
     color: #d9e2ef
 }

 .topbar i {
     color: var(--gold);
     margin-right: 5px
 }

 .main-nav {
     background: #fff;
     box-shadow: 0 5px 25px #1027440c;
     padding: 12px 0
 }

 .navbar-brand img {
     width: 185px;
     height: auto;
     object-fit: contain
 }

 .nav-link {
     font-size: .9rem;
     font-weight: 700;
     color: #26384d !important;
     padding: 12px 14px !important
 }

 .nav-link:hover,
 .nav-link.active {
     color: var(--blue) !important
 }

 .btn-primary-custom {
     background: var(--blue);
     color: white;
     border: 1px solid var(--blue);
     padding: 12px 22px;
     border-radius: 3px;
     font-weight: 700
 }

 .btn-primary-custom:hover {
     background: var(--navy);
     color: white;
     border-color: var(--navy)
 }

 .nav-cta {
     padding: 10px 18px
 }

 .hero-home {
     min-height: 660px;
     position: relative;
     display: flex;
     align-items: center;
     background: url('https://images.unsplash.com/photo-1516900557549-41557d405adf?auto=format&fit=crop&w=2000&q=90') center 45%/cover no-repeat;
     color: white
 }

 .hero-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(90deg, rgba(9, 25, 48, .94) 0%, rgba(12, 35, 65, .78) 48%, rgba(12, 35, 65, .16) 100%)
 }

 .hero-content {
     position: relative;
     z-index: 1;
     padding-top: 75px;
     padding-bottom: 100px
 }

 .eyebrow {
     font-size: .72rem;
     font-weight: 800;
     letter-spacing: .18em;
     color: var(--blue);
     margin-bottom: 17px
 }

 .eyebrow span {
     display: inline-block;
     width: 34px;
     height: 2px;
     background: var(--gold);
     vertical-align: middle;
     margin-right: 8px
 }

 .eyebrow.light {
     color: #d9e4f0
 }

 .hero-home h1,
 .page-hero h1 {
     font-size: clamp(2.8rem, 6vw, 5.2rem);
     color: #fff;
     max-width: 820px
 }

 .hero-home h1 em,
 .page-hero h1 em {
     color: #e2bd69
 }

 .hero-home p,
 .page-hero p {
     color: #e0e8f1;
     max-width: 620px;
     font-size: 1.12rem;
     margin-top: 22px
 }

 .btn-gold {
     background: var(--gold);
     color: #142747;
     border: 1px solid var(--gold);
     border-radius: 3px;
     padding: 13px 23px;
     font-weight: 800
 }

 .btn-gold:hover {
     background: #e7c875;
     color: #142747
 }

 .btn-outline-light {
     border-radius: 3px;
     padding: 13px 23px;
     font-weight: 700
 }

 .hero-caption {
     position: absolute;
     bottom: 26px;
     right: max(calc((100vw - 1140px)/2), 25px);
     font-size: .75rem;
     color: #fff;
     letter-spacing: .08em
 }

 .hero-caption span {
     color: var(--gold);
     font-weight: 800;
     margin-right: 12px
 }

 .stats-strip {
     background: var(--navy);
     color: white
 }

 .stat {
     padding: 26px 12px;
     border-right: 1px solid #ffffff22
 }

 .stat:last-child {
     border: 0
 }

 .stat strong {
     display: block;
     font: 800 2.2rem Manrope;
     color: var(--gold)
 }

 .stat span {
     font-size: .78rem;
     color: #dce4ee
 }

 .section-pad {
     padding: 95px 0
 }

 .section-soft {
     background: var(--soft)
 }

 .section-heading {
     max-width: 720px;
     margin: 0 auto 35px
 }

 .section-heading.text-center {
     text-align: center
 }

 .section-heading p {
     max-width: 600px;
     margin: 0 auto
 }

 .vertical-card {
     display: flex;
     min-height: 390px;
     align-items: end;
     padding: 35px;
     border-radius: 5px;
     color: white;
     position: relative;
     overflow: hidden;
     background-size: cover;
     background-position: center
 }

 .vertical-card:before {
     content: "";
     position: absolute;
     inset: 0;
     background: linear-gradient(0deg, rgba(9, 26, 48, .95), rgba(9, 26, 48, .05))
 }

 .marine-card {
     background-image: url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&w=1100&q=85')
 }

 .railway-card {
     background-image: url('https://images.unsplash.com/photo-1474487548417-781cb71495f3?auto=format&fit=crop&w=1100&q=85')
 }

 .vertical-card-content {
     position: relative;
     max-width: 460px
 }

 .round-icon {
     width: 54px;
     height: 54px;
     display: grid;
     place-items: center;
     border: 1px solid #ffffff90;
     border-radius: 50%;
     font-size: 1.4rem;
     margin-bottom: 28px
 }

 .card-kicker {
     font-size: .7rem;
     letter-spacing: .18em;
     color: #e2bd69;
     font-weight: 800
 }

 .vertical-card h3 {
     font-size: 2rem;
     margin: 10px 0
 }

 .vertical-card p {
     color: #e0e7f0;
     max-width: 390px
 }

 .text-link {
     display: inline-flex;
     gap: 12px;
     align-items: center;
     color: #e2bd69;
     font-size: .85rem;
     font-weight: 800;
     letter-spacing: .02em
 }

 .text-link.dark {
     color: var(--blue)
 }

 .image-stack {
     position: relative;
     padding: 0 35px 35px 0
 }

 .image-stack>img {
     width: 100%;
     height: 430px;
     object-fit: cover;
     border-radius: 4px
 }

 .image-note {
     position: absolute;
     bottom: 0;
     right: 0;
     background: var(--gold);
     padding: 20px 24px;
     display: flex;
     align-items: center;
     gap: 14px;
     color: var(--navy)
 }

 .image-note strong {
     font: 800 2.3rem Manrope
 }

 .image-note span {
     font-size: .78rem;
     font-weight: 700;
     line-height: 1.4
 }

 .lead-copy {
     font-size: 1.12rem;
     color: #35475b
 }

 .capability-card,
 .service-card,
 .office-card {
     height: 100%;
     background: white;
     border: 1px solid var(--line);
     padding: 28px;
     border-radius: 4px;
     transition: .3s
 }

 .capability-card:hover,
 .service-card:hover,
 .office-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 18px 40px #14274712;
     border-color: #c3d8e8
 }

 .capability-card>i,
 .service-card>i,
 .office-card>i {
     font-size: 1.7rem;
     color: var(--blue);
     display: block;
     margin-bottom: 25px
 }

 .capability-card h4,
 .service-card h3,
 .office-card h4 {
     font-size: 1.13rem;
     color: var(--navy);
     letter-spacing: -.02em
 }

 .capability-card p,
 .service-card p,
 .office-card p {
     font-size: .9rem;
     margin: 10px 0 0
 }

 .service-card small,
 .office-card small {
     display: block;
     margin-top: 18px;
     color: #8a6a2a;
     font-size: .76rem;
     font-weight: 700
 }

 .cta-band {
     padding: 60px 0;
     background: var(--navy);
     color: white
 }

 .cta-band h2 {
     color: white;
     margin: 0;
     font-size: clamp(1.8rem, 3vw, 2.6rem)
 }

 .page-hero {
     min-height: 410px;
     display: flex;
     align-items: center;
     background-size: cover;
     background-position: center;
     position: relative
 }

 .page-hero:before {
     content: "";
     position: absolute;
     inset: 0;
     background: linear-gradient(90deg, rgba(10, 28, 52, .94), rgba(10, 28, 52, .5))
 }

 .page-hero .container {
     position: relative;
     z-index: 1;
     padding-top: 65px;
     padding-bottom: 65px
 }

 .page-hero h1 {
     font-size: clamp(2.6rem, 5vw, 4.4rem)
 }

 .page-hero p {
     margin-bottom: 0
 }

 .about-hero {
     background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1800&q=85')
 }

 .marine-hero {
     background-image: url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&w=1800&q=85')
 }

 .railway-hero {
     background-image: url('https://images.unsplash.com/photo-1474487548417-781cb71495f3?auto=format&fit=crop&w=1800&q=85')
 }

 .projects-hero {
     background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=85')
 }

 .clients-hero {
     background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85')
 }

 .contact-hero {
     background-image: url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=85')
 }

 .rounded-img {
     width: 100%;
     height: 420px;
     object-fit: cover;
     border-radius: 4px
 }

 .section-dark {
     background: #10213d
 }

 .light-text h2 {
     color: white
 }

 .approach-card {
     border-top: 2px solid var(--gold);
     padding: 24px 10px 10px;
     height: 100%
 }

 .approach-card span {
     font: 800 2rem Manrope;
     color: var(--gold)
 }

 .approach-card h4 {
     color: white;
     margin-top: 20px
 }

 .approach-card p {
     color: #bdc9d8;
     font-size: .9rem
 }

 .location-list {
     margin-top: 25px
 }

 .location-list>div {
     display: flex;
     gap: 16px;
     border-top: 1px solid var(--line);
     padding: 18px 0
 }

 .location-list i {
     font-size: 1.4rem;
     color: var(--blue)
 }

 .location-list span {
     font-size: .9rem;
     color: var(--muted)
 }

 .location-list strong {
     display: block;
     color: var(--navy)
 }

 .filter-pills {
     display: flex;
     gap: 7px;
     flex-wrap: wrap
 }

 .filter-pills button {
     border: 1px solid var(--line);
     background: #fff;
     color: var(--muted);
     padding: 9px 15px;
     border-radius: 3px;
     font-size: .8rem;
     font-weight: 700
 }

 .filter-pills button.active,
 .filter-pills button:hover {
     background: var(--navy);
     border-color: var(--navy);
     color: #fff
 }

 .project-card {
     height: 100%;
     border: 1px solid var(--line);
     background: #fff;
     border-radius: 4px;
     overflow: hidden;
     transition: .3s
 }

 .project-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 18px 35px #14274712
 }

 .project-icon {
     height: 150px;
     background: linear-gradient(135deg, #e8eff5, #d9e7f1);
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 28px;
     color: var(--blue)
 }

 .project-icon i {
     font-size: 3rem
 }

 .project-icon span {
     font-size: .68rem;
     letter-spacing: .15em;
     font-weight: 800;
     color: #59728b
 }

 .project-body {
     padding: 24px
 }

 .project-body h4 {
     font-size: 1.1rem;
     color: var(--navy)
 }

 .project-body p {
     font-size: .88rem;
     min-height: 55px
 }

 .project-meta {
     border-top: 1px solid var(--line);
     padding-top: 14px;
     display: flex;
     flex-direction: column;
     gap: 7px
 }

 .project-meta small {
     color: var(--muted)
 }

 .project-meta strong {
     font-size: .78rem;
     color: #98752f
 }

 .client-card {
     height: 100%;
     padding: 30px 20px;
     text-align: center;
     border: 1px solid var(--line);
     border-radius: 4px;
     transition: .3s
 }

 .client-card:hover {
     background: var(--soft);
     transform: translateY(-4px)
 }

 .client-card i {
     font-size: 2rem;
     color: var(--blue);
     display: block;
     margin-bottom: 17px
 }

 .client-card h4 {
     font-size: 1rem;
     color: var(--navy);
     letter-spacing: -.02em
 }

 .client-card span {
     font-size: .78rem;
     color: var(--muted)
 }

 .note-panel {
     display: flex;
     gap: 15px;
     background: #f9f6ed;
     border-left: 3px solid var(--gold);
     padding: 18px 20px
 }

 .note-panel i {
     color: #9b772d
 }

 .note-panel p {
     margin: 0;
     font-size: .86rem
 }

 .contact-detail {
     display: flex;
     gap: 17px;
     padding: 20px 0;
     border-bottom: 1px solid var(--line)
 }

 .contact-detail>i {
     font-size: 1.35rem;
     color: var(--blue)
 }

 .contact-detail small {
     display: block;
     font-size: .68rem;
     font-weight: 800;
     letter-spacing: .13em;
     color: #8995a4;
     margin-bottom: 5px
 }

 .contact-detail a {
     display: block;
     color: var(--navy);
     font-weight: 700
 }

 .contact-detail p {
     margin: 0;
     font-size: .9rem
 }

 .contact-form-card {
     padding: 35px;
     background: var(--soft);
     border: 1px solid var(--line);
     border-radius: 4px
 }

 .contact-form-card h3 {
     color: var(--navy);
     font-size: 1.6rem
 }

 .contact-form-card>p {
     font-size: .9rem
 }

 .form-label {
     font-size: .8rem;
     font-weight: 700;
     color: #35475b
 }

 .form-control,
 .form-select {
     border: 1px solid #d6dee6;
     border-radius: 3px;
     padding: 12px;
     background: white
 }

 .form-control:focus,
 .form-select:focus {
     border-color: var(--blue);
     box-shadow: 0 0 0 .2rem #0879b91c
 }

 .form-note {
     font-size: .75rem
 }

 .site-footer {
     background: #0c1c34;
     color: #dce5ef;
     padding: 65px 0 0
 }

 .footer-logo {
     width: 190px;
     background: #fff;
     padding: 7px;
     margin-bottom: 20px
 }

 .footer-about {
     color: #aebdce;
     font-size: .88rem;
     max-width: 340px
 }

 .site-footer h5 {
     font-size: 1rem;
     color: #fff;
     letter-spacing: 0;
     margin-bottom: 20px
 }

 .site-footer a {
     display: block;
     color: #b8c6d6;
     font-size: .85rem;
     margin-bottom: 10px
 }

 .site-footer a:hover {
     color: var(--gold)
 }

 .site-footer p {
     color: #b8c6d6;
     font-size: .82rem
 }

 .site-footer p i {
     color: var(--gold);
     margin-right: 7px
 }

 .footer-social {
     display: flex;
     gap: 10px
 }

 .footer-social a {
     width: 35px;
     height: 35px;
     border: 1px solid #ffffff40;
     display: grid;
     place-items: center;
     border-radius: 50%;
     margin: 0
 }

 .footer-bottom {
     border-top: 1px solid #ffffff22;
     margin-top: 40px;
     padding: 20px 0;
     color: #93a4b8;
     font-size: .75rem
 }

 .footer-bottom span:last-child {
     color: #c3a25b
 }

 #backToTop {
     position: fixed;
     right: 22px;
     bottom: 22px;
     width: 42px;
     height: 42px;
     border: 0;
     background: var(--gold);
     color: var(--navy);
     border-radius: 3px;
     opacity: 0;
     pointer-events: none;
     transition: .25s;
     z-index: 1000
 }

 #backToTop.show {
     opacity: 1;
     pointer-events: auto
 }

 .reveal {
     opacity: 0;
     transform: translateY(22px);
     transition: opacity .7s ease, transform .7s ease
 }

 .reveal.is-visible {
     opacity: 1;
     transform: none
 }

 @media(max-width:991px) {
     .navbar-collapse {
         padding: 15px 0
     }

     .nav-cta {
         display: inline-block;
         margin-top: 8px
     }

     .hero-home {
         min-height: 590px
     }

     .section-pad {
         padding: 70px 0
     }

     .stat {
         border-bottom: 1px solid #ffffff22
     }

     .stat:nth-child(2) {
         border-right: 0
     }

     .page-hero {
         min-height: 360px
     }
 }

 @media(max-width:575px) {
     .topbar {
         font-size: .7rem
     }

     .topbar .container {
         justify-content: center !important
     }

     .navbar-brand img {
         width: 155px
     }

     .hero-home {
         min-height: 570px
     }

     .hero-content {
         padding-top: 65px;
         padding-bottom: 80px
     }

     .hero-home h1 {
         font-size: 2.75rem
     }

     .hero-home p {
         font-size: 1rem
     }

     .stat {
         padding: 19px 8px
     }

     .stat strong {
         font-size: 1.8rem
     }

     .stat span {
         font-size: .7rem
     }

     .section-pad {
         padding: 58px 0
     }

     .vertical-card {
         min-height: 340px;
         padding: 25px
     }

     .image-stack>img {
         height: 320px
     }

     .rounded-img {
         height: 310px
     }

     .page-hero h1 {
         font-size: 2.65rem
     }

     .page-hero p {
         font-size: 1rem
     }

     .contact-form-card {
         padding: 23px
     }

     .footer-bottom {
         margin-top: 25px
     }

     .hero-caption {
         display: none
     }
 }

 @media(prefers-reduced-motion:reduce) {
     html {
         scroll-behavior: auto
     }

     .reveal {
         opacity: 1;
         transform: none;
         transition: none
     }

     * {
         transition-duration: .01ms !important
     }
 }
 /* Make all cards in a row equal height */
.client-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Fixed bounding box for every logo */
.client-card .client-logo-wrap {
    width: 100%;
    height: 75px; /* Exact fixed height for all logos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden; /* Prevents giant images from ever spilling out */
}

/* Force every logo image to fit strictly inside the bounding box */
.client-card .client-logo-wrap img.client-logo {
    max-width: 190px !important;
    max-height: 75px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    
    /* Makes multi-colored logos look clean, uniform & executive */
    filter: grayscale(0%) contrast(1.05);
    opacity: 0.82;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Reveal full original brand colors on card hover */
.client-card:hover {
    transform: translateY(-4px);
}

.client-card:hover .client-logo-wrap img.client-logo {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Full-bleed media slider with zero overlays */
/* Full-width slider that preserves the complete 16:9 height without cropping */
.hero-media-slider {
    position: relative;
    overflow: hidden;
    background: #0b1c2c;
}

.hero-media-slider .carousel-item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.hero-media-slider .hero-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 230px); /* Keeps both the full media and bottom bar visible on screen */
    object-fit: contain;
    display: block;
    background: #0b1c2c;
}

/* Optional: if you prefer zero side letterbox bars on ultrawide monitors while keeping full height */
@media (min-aspect-ratio: 16/9) {
    .hero-media-slider .hero-media {
        max-height: none;
        object-fit: cover;
    }
}

.hero-media-slider .hero-arrow {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 27, 48, 0.55);
    border-radius: 50%;
    margin: 0 18px;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-media-slider .hero-arrow:hover {
    opacity: 1;
    background: rgba(11, 27, 48, 0.9);
}

/* Dedicated full-width navy band directly beneath the slider */
.hero-banner-bar {
    background: #0b1b30;
    border-top: 3px solid #e0b145;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
}

.hero-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-banner-bar h1 {
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-banner-bar h1 em {
    color: #e0b145;
    font-style: normal;
}

.hero-banner-bar p {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 650px;
}

.hero-banner-bar .banner-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

@media (max-width: 991px) {
    .hero-media-slider .carousel-item {
        height: 52vh;
        min-height: 320px;
    }
    .hero-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .hero-banner-bar .banner-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}