/* Custom Utilities & Resets */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body { 
    font-family: 'Montserrat', sans-serif; 
    color: #24384b; 
    background: radial-gradient(circle at top, #F8FBFF 0%, #FAFAFA 55%, #F2F2F2 100%);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.18;
    color: #03263E;
    text-wrap: balance;
}

h3, h4, h5, h6 {
    letter-spacing: 0;
    line-height: 1.24;
}

.eyebrow { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.18em; 
    font-weight: 600; 
    color: #1367A2; 
}

/* Layout System */
.layout-max {
    width: min(96vw, 1400px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (min-width: 640px) { .layout-max { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { .layout-max { padding-left: 3rem !important; padding-right: 3rem !important; } }
@media (min-width: 1536px) { .layout-max { width: min(92vw, 1500px); } }

/* Brand Logo */
.brand-logo {
    height: 91px;
    width: auto;
    max-width: 389px;
    object-fit: contain;
    display: block;
    transition: height 0.35s ease, max-width 0.35s ease, width 0.35s ease;
}
.brand-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 1.35rem;
    background: #F2F2F2;
    border: 1px solid rgba(6,66,107,0.1);
    box-shadow: 0 18px 40px -30px rgba(3,38,62,0.35);
}
.site-header:not(.is-scrolled) .brand-logo {
    height: 101px;
    max-width: 432px;
}

.site-header:not(.is-scrolled) .brand-logo-shell {
    padding: 0.65rem 1rem;
    margin-top: 0.75rem;
}

footer .brand-logo-shell {
    width: 100%;
    max-width: 22rem;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
}

footer .brand-logo {
    width: 100%;
    height: auto;
    max-width: 22rem;
    max-height: 7rem;
}
@media (max-width: 640px) {
    .brand-logo { height: 74px; max-width: 302px; }
    .site-header:not(.is-scrolled) .brand-logo {
        height: 82px;
        max-width: 336px;
    }
    .site-header:not(.is-scrolled) .brand-logo-shell {
        margin-top: 0.5rem;
    }
    footer .brand-logo {
        max-width: 100%;
        max-height: 5.5rem;
    }
    .brand-logo-shell { padding: 0.4rem 0.6rem; }
    footer .brand-logo-shell {
        max-width: 100%;
        padding: 0.7rem 0.85rem;
    }
}

/* Typography Scales */
.hero-title {
    font-size: clamp(2.35rem, 6.2vw, 4.45rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    max-width: 13ch;
}
.hero-text { font-size: clamp(1rem, 3.2vw, 1.15rem); line-height: 1.6; }
.subpage-hero-title {
    font-size: clamp(2.3rem, 5.3vw, 3.9rem);
    line-height: 1.14;
    letter-spacing: -0.012em;
    max-width: 14ch;
}

/* Buttons */
.btn-primary {
    background-image: linear-gradient(135deg, #06426B, #0C5B8F);
    color: white;
    padding: 1rem 2.4rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(3, 38, 62, 0.14);
    box-shadow: 0 15px 35px -20px rgba(4, 36, 59, 0.9), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 25px 50px -25px rgba(6, 66, 107, 0.8); color: white; background-image: linear-gradient(135deg, #03263E, #0C5B8F); }

.btn-outline {
    border: 1.5px solid rgba(6, 66, 107, 0.4);
    color: #03263E;
    padding: 1rem 2.4rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 30px -24px rgba(3,38,62,0.35);
}
.btn-outline:hover { background-color: #E8F1F6; border-color: #06426B; transform: translateY(-3px); color: #03263E; }

.btn-outline-light {
    border-color: rgba(255,255,255,0.45);
    color: #FFFFFF;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background-color: rgba(255,255,255,0.18); color: #FFFFFF; }

.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #03263E;
}
.link-cta:hover { transform: translateX(4px); color: #06426B; }

/* Components */
.icon-pill {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(145deg, #E8F1F6, #FFFFFF);
    border: 1px solid rgba(6,66,107,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 18px 35px -28px rgba(3,38,62,0.28);
}

.icon-pill i {
    color: #03263E;
}

.floating-panel {
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 60px -30px rgba(0,0,0,0.35);
}

.floating-panel-dark {
    background: rgba(3, 38, 62, 0.74);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 28px 60px -28px rgba(0,0,0,0.48);
}

.timeline-card .uppercase {
    color: #06426B !important;
    font-weight: 700;
}

.timeline-card.bg-primary-dark .uppercase {
    color: rgba(255,255,255,0.82) !important;
}

.gradient-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(6,66,107,0.25), transparent);
}

/* Service Row & Cards */
.service-row {
    border-radius: 48px;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(140deg, rgba(255,255,255,0.9), rgba(232,241,246,0.9));
    border: 1px solid rgba(6,66,107,0.08);
    box-shadow: 0 35px 80px -60px rgba(3,38,62,0.8);
}
.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.service-row:hover .service-image img { transform: scale(1.05); }

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(6,66,107,0.08);
    box-shadow: var(--shadow-mid);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
    .team-card-body .eyebrow {
        display: block;
        min-height: 4.35rem;
        line-height: 1.55;
    }
}

.team-card h3 {
    margin: 0.55rem 0 0.85rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: #03263E;
}

.team-card p {
    color: #334155;
    line-height: 1.7;
}

.team-profile-cta {
    align-items: center;
    align-self: flex-start;
    background: transparent;
    border: 0;
    color: #06426B;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.4rem;
    letter-spacing: 0.12em;
    margin-top: auto;
    padding: 1.5rem 0 0.2rem;
    text-align: left;
    text-transform: uppercase;
    transition: color 0.25s ease, gap 0.25s ease;
}

button.team-profile-cta:hover {
    color: #03263E;
    gap: 0.65rem;
}

button.team-profile-cta:focus-visible,
.staff-profile-close:focus-visible {
    outline: 3px solid rgba(19, 103, 162, 0.35);
    outline-offset: 4px;
}

.team-profile-cta.is-disabled {
    color: #64748B;
    cursor: default;
    opacity: 0.75;
}

.staff-profile-modal {
    background: transparent;
    border: 0;
    color: #334155;
    margin: auto;
    max-height: min(90vh, 920px);
    max-width: min(1040px, calc(100vw - 2rem));
    padding: 0;
    width: 100%;
}

.staff-profile-modal::backdrop {
    background: rgba(3, 38, 62, 0.72);
    backdrop-filter: blur(8px);
}

.staff-profile-dialog {
    background: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 36px;
    box-shadow: 0 40px 100px -35px rgba(3, 38, 62, 0.8);
    max-height: min(90vh, 920px);
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 3.75rem);
    position: relative;
}

.staff-profile-close {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(6,66,107,0.14);
    border-radius: 999px;
    color: #03263E;
    cursor: pointer;
    display: flex;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    top: clamp(1rem, 3vw, 2rem);
    transition: background-color 0.25s ease, transform 0.25s ease;
    width: 46px;
    z-index: 2;
}

.staff-profile-close:hover {
    background: #E8F1F6;
    transform: rotate(4deg);
}

.staff-profile-header {
    align-items: center;
    display: grid;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    grid-template-columns: 150px 1fr;
    padding-right: 3.5rem;
}

.staff-profile-header img {
    aspect-ratio: 1;
    border-radius: 28px;
    object-fit: cover;
    width: 150px;
}

.staff-profile-header h2 {
    color: #03263E;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 1;
    margin: 0.35rem 0 0.65rem;
}

.staff-profile-role {
    color: #1367A2;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
}

.staff-profile-lead {
    color: #334155;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.65;
    margin: 2.25rem 0;
    max-width: 48rem;
}

.staff-profile-facts {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.staff-profile-facts div {
    background: #E8F1F6;
    border: 1px solid rgba(6,66,107,0.08);
    border-radius: 20px;
    padding: 1.2rem;
}

.staff-profile-facts span {
    color: #1367A2;
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.staff-profile-facts strong {
    color: #03263E;
    display: block;
    line-height: 1.35;
}

.staff-profile-about > p {
    line-height: 1.8;
    margin-top: 1rem;
}

.staff-profile-columns {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.5rem;
}

.staff-profile-columns section,
.staff-profile-credentials {
    border: 1px solid rgba(6,66,107,0.1);
    border-radius: 24px;
    padding: clamp(1.4rem, 3vw, 2rem);
}

.staff-profile-credentials {
    margin-top: 1.25rem;
}

.staff-profile-columns h3,
.staff-profile-credentials h3 {
    color: #03263E;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.staff-profile-columns ul,
.staff-profile-credentials ul {
    display: grid;
    gap: 0.65rem;
}

.staff-profile-columns li,
.staff-profile-credentials li {
    padding-left: 1.25rem;
    position: relative;
}

.staff-profile-columns li::before,
.staff-profile-credentials li::before {
    color: #1367A2;
    content: '•';
    left: 0;
    position: absolute;
}

.staff-profile blockquote {
    background: linear-gradient(135deg, #03263E, #06426B);
    border-radius: 28px;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.5;
    margin-top: 2.5rem;
    padding: clamp(1.75rem, 4vw, 3rem);
}

.staff-profile blockquote cite {
    color: rgba(255,255,255,0.72);
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 0.16em;
    margin-top: 1.25rem;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .staff-profile-modal {
        max-width: calc(100vw - 1rem);
    }

    .staff-profile-dialog {
        border-radius: 24px;
    }

    .staff-profile-header {
        align-items: end;
        grid-template-columns: 88px 1fr;
        padding-right: 0;
        padding-top: 3rem;
    }

    .staff-profile-header img {
        border-radius: 20px;
        width: 88px;
    }

    .staff-profile-facts,
    .staff-profile-columns {
        grid-template-columns: 1fr;
    }
}

.testimonial-carousel {
    position: relative;
}

.testimonial-track {
    position: relative;
    min-height: 390px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    padding: clamp(2rem, 4.5vw, 4rem);
    border-radius: 36px;
    background: linear-gradient(145deg, #03263E, #06426B);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.testimonial-quote-icon {
    color: rgba(255,255,255,0.22);
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.95rem, 1.9vw, 1.55rem);
    line-height: 1.42;
    color: #FFFFFF;
    text-wrap: balance;
}

.testimonial-source {
    margin-top: 1.8rem;
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.testimonial-controls {
    display: flex;
    gap: 0.85rem;
}

.testimonial-control {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(6,66,107,0.18);
    color: #03263E;
    background: rgba(255,255,255,0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.testimonial-control:hover {
    transform: translateY(-2px);
    background: #E8F1F6;
}

.testimonial-dots {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(6,66,107,0.22);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.testimonial-dot.is-active {
    width: 34px;
    background: #06426B;
}

.team-testimonial-shell {
    max-width: 980px;
    margin: 0 auto;
}

.team-testimonial-intro {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.team-testimonial-track,
.team-testimonial-slide {
    min-height: 820px;
}

.team-testimonial-slide {
    justify-content: flex-start;
    overflow-y: auto;
    text-align: center;
    padding: clamp(2rem, 4vw, 3.25rem);
}

.team-testimonial-slide .testimonial-quote-icon {
    align-self: center;
    margin-bottom: 0.75rem;
}

.team-testimonial-slide h3 {
    color: #FFFFFF;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    margin: 0.55rem auto 1.2rem;
    max-width: 17ch;
}

.team-testimonial-slide h3.team-testimonial-heading-wide {
    max-width: 34ch;
}

.team-testimonial-kicker {
    color: rgba(255,255,255,0.74);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.team-testimonial-lead {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    line-height: 1.28;
    max-width: 780px;
    margin: 0 auto 1.5rem;
    text-wrap: balance;
}

.team-testimonial-copy {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
    color: rgba(255,255,255,0.88);
    font-size: clamp(0.95rem, 1.7vw, 1.05rem);
    line-height: 1.72;
}

.team-testimonial-copy p + p {
    margin-top: 1rem;
}

.team-testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .team-card img {
        height: 260px;
    }

    .testimonial-track,
    .testimonial-slide {
        min-height: 430px;
    }

    .team-testimonial-track,
    .team-testimonial-slide {
        min-height: 860px;
    }
}

/* Navigation & Mobile Menu */
.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(6,66,107,0.2);
    color: #FFFFFF;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px -12px rgba(0,0,0,0.4);
}

.site-header.is-scrolled .mobile-nav-toggle {
    color: #03263E;
    background: rgba(255,255,255,0.7);
}
@media (min-width: 1024px) { .mobile-nav-toggle { display: none; } }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(3,38,62,0.95);
    backdrop-filter: blur(18px);
    z-index: 60;
    padding: clamp(2rem, 6vw, 3.5rem);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.mobile-link {
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.75rem 0;
    display: block;
}
.mobile-sublink {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 0 0.5rem 1.5rem;
    display: block;
    font-weight: 500;
}

/* Home Slider specific */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.05); transition: opacity 1.5s ease, transform 6s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1.08); }
.hero-overlay {
    position: absolute; inset: 0; background: linear-gradient(115deg, rgba(3, 27, 45, 0.85), rgba(6, 66, 107, 0.4)); z-index: 1;
}

/* Timeline specific */
.timeline-axis {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(6, 66, 107, 0), rgba(6, 66, 107, 0.4), rgba(6, 66, 107, 0));
}
.timeline-card {
    width: 100%; max-width: 520px; background: white; border-radius: 32px; padding: 2.5rem;
    box-shadow: 0 30px 80px -50px rgba(3,38,62,0.6); border: 1px solid rgba(6,66,107,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.timeline-card:hover { transform: translateY(-6px); box-shadow: 0 40px 90px -45px rgba(3,38,62,0.75); }
@media (max-width: 1023px) {
    .timeline-axis { left: 18px; transform: none; }
    .timeline-card { margin-left: 2.5rem; width: calc(100% - 2.5rem); max-width: none; padding: min(2rem, 6vw); }
}

/* Article Prose */
.article-prose p { margin-bottom: 1.5rem; line-height: 1.85; color: #24384b; }
.article-prose h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #03263E;
}
.article-prose blockquote { border-left: 4px solid #1367A2; padding: 1.4rem 1.5rem; margin: 2rem 0; font-style: italic; color: #03263E; font-size: 1.25rem; font-weight: 500; background: linear-gradient(180deg, rgba(232,241,246,0.68), rgba(255,255,255,0.92)); border-radius: 1.2rem; }

/* Shared Site Chrome */
:root {
    --shadow-soft: 0 20px 50px -34px rgba(3, 38, 62, 0.28);
    --shadow-mid: 0 28px 80px -42px rgba(3, 38, 62, 0.36);
    --shadow-strong: 0 38px 100px -48px rgba(3, 38, 62, 0.48);
    --border-soft: rgba(6, 66, 107, 0.1);
}

.site-header {
    background: transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(255,255,255,0.84);
    border-bottom-color: rgba(6, 66, 107, 0.1);
    box-shadow: 0 16px 40px -34px rgba(3, 38, 62, 0.55);
}

.site-header-inner {
    min-height: 84px;
}

.desktop-nav-link,
.desktop-nav-button {
    position: relative;
    color: rgba(255,255,255,0.96);
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header.is-scrolled .desktop-nav-link,
.site-header.is-scrolled .desktop-nav-button {
    color: #334155;
}

.desktop-nav-link::after,
.desktop-nav-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.45rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1367A2, #06426B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.desktop-nav-link:hover,
.desktop-nav-button:hover,
.desktop-nav-link.is-active,
.desktop-nav-button.is-active {
    color: #FFFFFF;
}

.site-header.is-scrolled .desktop-nav-link:hover,
.site-header.is-scrolled .desktop-nav-button:hover,
.site-header.is-scrolled .desktop-nav-link.is-active,
.site-header.is-scrolled .desktop-nav-button.is-active {
    color: #06426B;
}

.desktop-nav-link:hover::after,
.desktop-nav-button:hover::after,
.desktop-nav-link.is-active::after,
.desktop-nav-button.is-active::after {
    transform: scaleX(1);
}

.nav-dropdown-menu {
    box-shadow: var(--shadow-mid);
}

.nav-dropdown-link {
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-dropdown-link.is-active {
    background: rgba(232,241,246,0.95);
    color: #03263E;
}

.mobile-menu {
    transform: translateY(8px);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-link.is-active,
.mobile-sublink.is-active {
    color: #7ec4f2;
}

.site-footer {
    background: linear-gradient(180deg, #03263E 0%, #04263C 100%);
}

.site-footer h4 {
    font-size: 1rem;
    letter-spacing: 0.16em;
}

.footer-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 70px -50px rgba(0,0,0,0.9);
}

.footer-link {
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-link:hover,
.footer-link.is-active {
    color: #FFFFFF;
    opacity: 1;
}

/* Section Rhythm */
.section-shell {
    padding-top: clamp(5rem, 8.2vw, 7.2rem);
    padding-bottom: clamp(5rem, 8.2vw, 7.2rem);
}

.section-shell-tight {
    padding-top: clamp(4.1rem, 6.4vw, 5.4rem);
    padding-bottom: clamp(4.1rem, 6.4vw, 5.4rem);
}

.subpage-hero {
    padding-top: clamp(8.5rem, 12vw, 11rem);
    padding-bottom: clamp(4.75rem, 8vw, 7rem);
}

.subpage-hero-surface {
    background:
        radial-gradient(circle at 14% 18%, rgba(19,103,162,0.28), transparent 38%),
        radial-gradient(circle at 86% 14%, rgba(255,255,255,0.09), transparent 30%),
        linear-gradient(180deg, rgba(3,38,62,0.98), rgba(6,66,107,0.95) 55%, rgba(4,47,75,0.98) 100%);
}

.subpage-hero-copy {
    max-width: 40rem;
}

.hero-glass-card {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.75rem);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.54));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,0.7);
}

.hero-glass-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255,255,255,0.24), rgba(255,255,255,0.04));
    pointer-events: none;
}

.hero-glass-card > * {
    position: relative;
    z-index: 1;
}

.hero-glass-card .eyebrow {
    color: #0C5B8F;
}

.hero-glass-card .subpage-hero-title,
.hero-glass-card h1,
.hero-glass-card h2 {
    color: #03263E;
}

.hero-glass-card p,
.hero-glass-card li,
.hero-glass-card .hero-meta {
    color: #2c4458;
}

.section-intro {
    margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section-intro.team-testimonial-intro {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-stack > * + * {
    margin-top: 1.4rem;
}

.subpage-hero-media {
    overflow: hidden;
    border-radius: 2.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
        0 28px 70px -38px rgba(0,0,0,0.8),
        0 14px 28px -18px rgba(0,0,0,0.42);
}

.subpage-hero-media-shadow {
    background: rgba(0,0,0,0.5);
    border-radius: 3rem;
    filter: blur(34px);
    opacity: 0.9;
}

.premium-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-mid);
}

.content-panel,
.form-panel,
.contact-panel,
.cta-panel,
.article-feature {
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-mid);
}

.service-row,
.timeline-card {
    box-shadow: var(--shadow-mid);
}

.article-prose {
    font-size: clamp(1.05rem, 2vw, 1.125rem);
    color: #24384b;
}

.article-prose p + h2,
.article-prose blockquote + h2 {
    margin-top: 3.5rem;
}

.article-prose ul {
    margin: 0 0 1.75rem;
    padding-left: 1.25rem;
    color: #24384b;
}

.article-prose li + li {
    margin-top: 0.65rem;
}

/* Insights Directory */
.insights-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 9999px;
    border: 1px solid rgba(6,66,107,0.14);
    background: rgba(255,255,255,0.88);
    color: #03263E;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    transition: all 0.25s ease;
}

.insights-filter-chip:hover,
.insights-filter-chip.is-active {
    background: linear-gradient(135deg, #06426B, #0C5B8F);
    color: #FFFFFF;
    border-color: rgba(6,66,107,0.85);
    box-shadow: 0 20px 40px -28px rgba(3,38,62,0.45);
}

.insights-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.insights-card > div:last-child {
    flex: 1 1 auto;
}

.insights-feature-card {
    grid-column: span 2;
}

.insights-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-mid);
    border-color: rgba(6,66,107,0.18);
}

@media (max-width: 767px) {
    .insights-feature-card {
        grid-column: auto;
    }
}

/* Reveal Effects */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal[data-reveal="left"] {
    transform: translateX(-28px);
}

.reveal[data-reveal="right"] {
    transform: translateX(28px);
}

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

.reveal-delay-1 { --reveal-delay: 90ms; }
.reveal-delay-2 { --reveal-delay: 180ms; }
.reveal-delay-3 { --reveal-delay: 270ms; }
.reveal-delay-4 { --reveal-delay: 360ms; }

.bg-primary p,
.bg-primary li,
.bg-primary blockquote,
.bg-primary .hero-meta,
.bg-primary .text-body-base {
    color: rgba(255,255,255,0.88);
}

.bg-primary .eyebrow,
.site-footer .eyebrow {
    color: rgba(232,241,246,0.92);
}

.bg-primary .icon-pill,
.site-footer .icon-pill {
    background: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.14);
}

.bg-primary .icon-pill i,
.site-footer .icon-pill i {
    color: #03263E;
}

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

    .reveal,
    .hero-slide,
    .btn-primary,
    .btn-outline,
    .link-cta,
    .premium-card,
    .service-image img,
    .timeline-card {
        transition: none !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767px) {
    .site-header-inner {
        min-height: 74px;
    }

    .section-shell,
    .section-shell-tight {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .subpage-hero {
        padding-top: 7.5rem;
        padding-bottom: 4rem;
    }

    .hero-glass-card {
        border-radius: 1.6rem;
        padding: 1.5rem;
    }
}
