:root {
    --bp-blue: #2D406B;
    --bp-blue-dark: #14223d;
    --bp-blue-soft: #eef2f8;
    --bp-yellow: #ffd447;
    --bp-ink: #102333;
    --bp-muted: #657382;
    --bp-line: rgba(16, 35, 51, .12);
    --bp-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--bp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: var(--bp-blue);
}

.bp-navbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .44);
    box-shadow: 0 18px 50px rgba(11, 38, 60, .08);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--bp-blue-dark);
    font-weight: 560;
}

.navbar-brand img {
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #243849;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bp-blue);
}

.btn {
    border-radius: var(--bp-radius);
    font-weight: 560;
}

.btn-primary {
    --bs-btn-bg: var(--bp-blue);
    --bs-btn-border-color: var(--bp-blue);
    --bs-btn-hover-bg: #233456;
    --bs-btn-hover-border-color: #233456;
    --bs-btn-active-bg: #1b2945;
    --bs-btn-active-border-color: #1b2945;
}

.bp-nav-cta {
    padding: .55rem 1rem;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: var(--bp-blue-dark);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media::before,
.hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
}

.hero-media::before {
    z-index: 0;
    background: url("../img/hero-video-poster.jpg") center right / cover no-repeat;
    filter: blur(12px) saturate(.9) brightness(.75);
    transform: scale(1.08);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(5, 20, 34, .94) 0%, rgba(8, 32, 52, .70) 42%, rgba(10, 35, 58, .08) 100%),
        linear-gradient(180deg, rgba(6, 21, 34, .08), rgba(6, 21, 34, .40)),
        radial-gradient(circle at 18% 74%, rgba(255, 212, 71, .12), transparent 24%);
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(.7px) saturate(1.35) brightness(1.02);
    transform: scale(1.025);
}

#heroCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: .42;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.eyebrow,
.section-kicker {
    color: var(--bp-yellow);
    font-size: .78rem;
    font-weight: 560;
    letter-spacing: 0;
    margin-bottom: .85rem;
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 700px;
    font-size: clamp(2.8rem, 5.2vw, 5.2rem);
    font-weight: 520;
    line-height: 1;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 2.5rem;
}

.trust-row span {
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    padding: .5rem .85rem;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .08);
}

.section-pad {
    padding: clamp(4.5rem, 7vw, 7rem) 0;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 2.5rem;
}

h2 {
    color: var(--bp-blue-dark);
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
}

.lead {
    color: var(--bp-muted);
    line-height: 1.7;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 3.5rem;
    background: var(--bp-line);
    border: 1px solid var(--bp-line);
}

.metrics-grid div {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 1.4rem;
    background: #fff;
    transition: box-shadow .45s ease, background-color .45s ease;
}

.metrics-grid div::after,
.service-card::after,
.capability-list div::after,
.process-timeline div::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(135deg, rgba(255, 212, 71, .18), transparent 42%);
    opacity: 0;
    transform: translate3d(-34%, -34%, 0);
    transition: opacity .75s ease, transform .75s ease;
}

.metrics-grid div:hover {
    z-index: 1;
    box-shadow: 0 18px 44px rgba(16, 35, 51, .10);
}

.metrics-grid strong {
    display: block;
    color: var(--bp-blue);
    font-size: clamp(1.65rem, 2.5vw, 2.5rem);
    font-weight: 480;
    line-height: 1;
}

.metrics-grid span {
    display: block;
    margin-top: 1rem;
    color: var(--bp-muted);
}

.service-section {
    background: linear-gradient(180deg, var(--bp-blue-soft), #fff);
}

.service-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    padding: 1.45rem;
    border: 1px solid rgba(45, 64, 107, .14);
    border-radius: var(--bp-radius);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 24px 60px rgba(16, 35, 51, .08);
    transition: border-color .45s ease, box-shadow .45s ease, background-color .45s ease;
}

.service-card:hover {
    border-color: rgba(45, 64, 107, .28);
    background: #fff;
    box-shadow: 0 24px 68px rgba(20, 34, 61, .13);
}

.reveal-item.is-visible::after {
    opacity: 1;
    transform: translate3d(34%, 34%, 0);
}

.service-card h3 {
    margin: 1.4rem 0 .9rem;
    color: var(--bp-blue-dark);
    font-size: 1.1rem;
    font-weight: 560;
}

.service-card p {
    color: var(--bp-muted);
    line-height: 1.58;
}

.icon-pill {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: var(--bp-radius);
    color: var(--bp-blue-dark);
    background: var(--bp-yellow);
    font-weight: 540;
}

.dark-band {
    color: rgba(255, 255, 255, .82);
    background:
        linear-gradient(135deg, rgba(255, 212, 71, .12), transparent 30%),
        radial-gradient(circle at right top, rgba(45, 64, 107, .42), transparent 34%),
        var(--bp-blue-dark);
}

.dark-band h2,
.dark-band p {
    color: inherit;
}

.capability-list {
    display: grid;
    gap: 1rem;
}

.capability-list div {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--bp-radius);
    background: rgba(255, 255, 255, .08);
    transition: border-color .45s ease, background-color .45s ease;
}

.capability-list div:hover {
    border-color: rgba(255, 212, 71, .34);
    background: rgba(255, 255, 255, .12);
}

.capability-list span,
.process-timeline span {
    display: block;
    margin-bottom: .45rem;
    color: #fff;
    font-weight: 560;
}

.capability-list p,
.process-timeline p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .75);
    line-height: 1.65;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--bp-line);
    border: 1px solid var(--bp-line);
}

.process-timeline div {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    padding: 1.35rem;
    background: var(--bp-blue-dark);
    transition: background-color .45s ease;
}

.process-timeline div:hover {
    z-index: 1;
    background: #1b3155;
}

.reveal-item {
    opacity: 0;
    transform: translateY(28px) scale(.985);
    transition: opacity .78s ease, transform .78s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item:nth-child(2n) {
    transform: translateY(34px) scale(.98);
}

.reveal-item:nth-child(3n) {
    transform: translateY(22px) scale(.99);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process-timeline div:nth-child(2),
.process-timeline div:nth-child(3) {
    background: #143a59;
}

.remote-strip {
    padding: 3.4rem 0;
    color: #fff;
    background: linear-gradient(90deg, var(--bp-blue), #194f78);
}

.remote-strip h2 {
    color: #fff;
    margin-bottom: 0;
    font-size: clamp(1.75rem, 2.7vw, 3rem);
    font-weight: 500;
}

.remote-strip p {
    color: var(--bp-yellow);
    font-weight: 560;
    text-transform: uppercase;
}

.contact-section {
    background: #f7fafc;
}

address {
    margin-top: 2rem;
    color: var(--bp-muted);
    line-height: 1.7;
}

address strong {
    color: var(--bp-blue-dark);
    font-weight: 560;
}

.contact-form {
    padding: 1.5rem;
    border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius);
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 35, 51, .09);
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: var(--bp-radius);
    border-color: rgba(16, 35, 51, .16);
}

textarea.form-control {
    min-height: 150px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bp-blue);
    box-shadow: 0 0 0 .22rem rgba(42, 109, 158, .16);
}

.site-footer {
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, .72);
    background: #081b2b;
    font-size: .92rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.1rem;
}

.footer-links button {
    padding: 0;
    color: rgba(255, 255, 255, .78);
    background: transparent;
    border: 0;
    font: inherit;
}

.footer-links button:hover,
.footer-links button:focus {
    color: #fff;
    text-decoration: underline;
}

.legal-modal .modal-content {
    border: 0;
    border-radius: var(--bp-radius);
}

.legal-modal .modal-header {
    border-bottom-color: var(--bp-line);
}

.legal-modal .modal-title {
    color: var(--bp-blue-dark);
    font-size: 1.45rem;
    font-weight: 500;
}

.legal-modal .modal-body {
    color: var(--bp-muted);
    line-height: 1.65;
}

.legal-modal .modal-body strong {
    color: var(--bp-blue-dark);
    font-weight: 560;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .hero-media::before {
        background-position: center;
    }

    .metrics-grid,
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.65rem;
    }

    .metrics-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .remote-strip .btn {
        width: 100%;
        margin-bottom: .7rem;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@keyframes heroDrift {
    from {
        transform: scale(1.08) translate3d(-1.2%, -.8%, 0);
    }
    to {
        transform: scale(1.13) translate3d(1.4%, .9%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media::before {
        animation: none;
    }

    .metrics-grid div,
    .service-card,
    .capability-list div,
    .process-timeline div,
    .reveal-item {
        transition: none;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
