:root {
    --blue: #073a74;
    --blue-dark: #04254d;
    --orange: #f58220;
    --ink: #172033;
    --muted: #667085;
    --line: #e5e9f0;
    --light: #f5f8fc;
    --white: #ffffff;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
    padding: 16px max(24px, calc((100vw - var(--max)) / 2));
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 233, 240, 0.9);
    box-shadow: 0 10px 30px rgba(12, 32, 61, 0.06);
}

.brand img,
.footer-brand img {
    width: 172px;
    max-height: 64px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    color: #27364d;
    font-size: 0.98rem;
    font-weight: 700;
}

.main-nav a:hover,
.site-footer a:hover {
    color: #78b8ff;
}

.header-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    color: var(--white);
    background: var(--blue);
    border-radius: 6px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(7, 58, 116, 0.22);
}

.header-button:hover,
.primary-button:hover {
    background: var(--blue-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 36px;
    min-height: 660px;
    padding: 58px max(24px, calc((100vw - var(--max)) / 2)) 46px;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 15%, rgba(245, 130, 32, 0.13), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef5fc 48%, #ffffff 100%);
}

.hero-copy {
    max-width: 560px;
}

.hero h1 {
    margin: 0 0 22px;
    color: var(--blue-dark);
    font-size: clamp(1.2rem, 2.5vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero p {
    margin: 0 0 30px;
    color: #354157;
    font-size: clamp(1.06rem, 1.6vw, 1.28rem);
}

.hero-media {
    position: relative;
    min-height: 520px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 58, 116, 0.18);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(238, 245, 252, 0.92), rgba(238, 245, 252, 0) 18%, rgba(238, 245, 252, 0) 82%, rgba(238, 245, 252, 0.92)),
        linear-gradient(90deg, rgba(4, 37, 77, 0.10), rgba(4, 37, 77, 0) 34%);
    pointer-events: none;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-marquee {
    background: linear-gradient(135deg, #eaf2fb, #ffffff);
    isolation: isolate;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.hero-marquee-track {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 0;
}

.hero-slide {
    grid-area: 1 / 1;
    width: min(560px, 88%);
    height: 430px;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    background: #dfeaf5;
    box-shadow: 0 18px 45px rgba(7, 58, 116, 0.18);
    opacity: 0;
    transform: translateX(36px) scale(0.98);
    animation: heroSlideShow 54s ease-in-out infinite;
    will-change: opacity, transform;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-slide-a {
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

.hero-slide-b {
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

.hero-slide-c {
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }
.hero-slide:nth-child(7) { animation-delay: 36s; }
.hero-slide:nth-child(8) { animation-delay: 42s; }
.hero-slide:nth-child(9) { animation-delay: 48s; }
.hero-slide:nth-child(n + 10) {
    display: none;
}

@keyframes heroSlideShow {
    0% {
        opacity: 0;
        transform: translateX(42px) scale(0.98);
    }

    4%,
    18% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    23%,
    100% {
        opacity: 0;
        transform: translateX(-34px) scale(0.985);
    }
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: var(--max);
    margin: -42px auto 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(8, 30, 58, 0.12);
    overflow: hidden;
}

.metrics article {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.metrics article:last-child {
    border-right: 0;
}

.metrics strong {
    color: var(--blue);
    font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    line-height: 1;
}

.metrics span {
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 96px 24px 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section h2,
.commitment h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.areas,
.clients {
    text-align: center;
}

.areas h3 {
    margin: 10px 0 34px;
    color: var(--muted);
    font-size: 1.15rem;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.area-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(7, 58, 116, 0.12);
    background: var(--blue-dark);
    cursor: pointer;
    outline: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.area-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 37, 77, 0) 35%, rgba(4, 37, 77, 0.82) 100%);
}

.area-grid img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.area-card:hover,
.area-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(7, 58, 116, 0.2);
}

.area-card:hover img,
.area-card:focus-visible img {
    transform: scale(1.04);
}

.area-grid span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 1;
    color: var(--white);
    font-size: 1.22rem;
    font-weight: 800;
    text-align: left;
}

.clients h2 {
    max-width: 780px;
    margin: 0 auto 32px;
    color: #2364a5;
    font-size: clamp(1.25rem, 2.1vw, 1.9rem);
    line-height: 1.25;
    font-weight: 800;
}

.clients .eyebrow {
    color: #5da1ec;
    font-size: clamp(1.45rem, 3.6vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: uppercase;
}

.client-board {
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #edf2f4;
    box-shadow: 0 18px 48px rgba(7, 58, 116, 0.12);
}

.client-board img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.services {
    display: block;
    align-items: start;
}

.service-heading {
    position: sticky;
    top: 120px;
}

.service-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.04rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.solution-card {
    position: relative;
    display: grid;
    grid-template-rows: 185px auto auto;
    gap: 12px;
    width: 100%;
    min-height: 360px;
    padding: 0 0 22px;
    overflow: hidden;
    color: var(--ink);
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(8, 30, 58, 0.07);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(7, 58, 116, 0.34);
    box-shadow: 0 20px 48px rgba(8, 30, 58, 0.14);
}

.solution-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.solution-card span,
.solution-card strong {
    margin-inline: 22px;
}

.solution-card span {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 900;
}

.solution-card strong {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 600;
}

.commitment {
    margin-top: 84px;
    padding: 0 0 74px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    overflow: hidden;
}

.commitment h2 {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--white);
}

.selected-marquee {
    position: relative;
    width: 100%;
    height: clamp(220px, 28vw, 360px);
    margin-bottom: 62px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.selected-marquee::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 37, 77, 0.82), rgba(4, 37, 77, 0) 18%, rgba(4, 37, 77, 0) 82%, rgba(4, 37, 77, 0.82)),
        linear-gradient(180deg, rgba(4, 37, 77, 0.15), rgba(4, 37, 77, 0.62));
    pointer-events: none;
}

.selected-marquee-track {
    display: flex;
    width: max-content;
    height: 100%;
    gap: 20px;
    padding: 26px 20px;
    animation: selectedMarquee 48s linear infinite;
    will-change: transform;
}

.selected-marquee img {
    width: clamp(310px, 34vw, 500px);
    height: 100%;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.selected-marquee img:nth-child(3n + 1) {
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

.selected-marquee img:nth-child(3n + 2) {
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

.selected-marquee img:nth-child(3n) {
    clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
}

@keyframes selectedMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-50% - 10px), 0, 0);
    }
}

.about {
    display: block;
    padding-bottom: 96px;
}

.about p {
    color: var(--muted);
    font-size: 1.08rem;
}

.about > div {
    max-width: 1040px;
    margin: 0 auto;
}

.about h2 {
    margin-bottom: 22px;
}

.about-text-card {
    max-width: 920px;
    margin-bottom: 28px;
    padding: 30px;
    background: var(--light);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(7, 58, 116, 0.08);
}

.about-text-card p {
    margin: 0 0 16px;
    text-align: justify;
    text-justify: inter-word;
}

.about-text-card p:last-child {
    margin-bottom: 0;
}

.area-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.area-modal.open {
    display: block;
}

.area-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 38, 0.74);
    border: 0;
}

.area-modal-panel {
    position: relative;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    width: min(1120px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    margin: 18px auto;
    overflow: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
}

.area-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--blue-dark);
    border: 0;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.area-modal-visual {
    position: sticky;
    top: 0;
    min-height: 620px;
    overflow: hidden;
    background: var(--blue-dark);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.area-modal-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 37, 77, 0.34), rgba(4, 37, 77, 0)),
        linear-gradient(180deg, rgba(4, 37, 77, 0), rgba(4, 37, 77, 0.38));
}

.area-modal-visual img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.area-modal-copy {
    padding: 54px 54px 46px 34px;
}

.area-modal-copy h2 {
    margin: 0 0 20px;
    color: var(--blue-dark);
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.1;
}

.area-modal-copy p {
    margin: 0 0 16px;
    color: #384763;
    font-size: 1.02rem;
    line-height: 1.65;
}

body.modal-open {
    overflow: hidden;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr 0.8fr;
    gap: 34px;
    padding: 58px max(24px, calc((100vw - var(--max)) / 2));
    color: rgba(255, 255, 255, 0.82);
    background: var(--blue-dark);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 1.1rem;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer p {
    margin: 0 0 8px;
}

.social-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-list svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.footer-brand {
    padding: 10px 16px;
    align-self: start;
    background: var(--white);
    border-radius: 8px;
}

.solution-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.solution-modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 38, 0.72);
    border: 0;
}

.modal-panel {
    position: relative;
    width: min(1120px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    margin: 18px auto;
    overflow: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
    position: sticky;
    top: 14px;
    left: calc(100% - 58px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 14px 14px -56px auto;
    color: var(--white);
    background: var(--blue-dark);
    border: 0;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.modal-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    padding: 34px;
}

.modal-content h2 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.12;
}

.modal-content p {
    color: var(--muted);
}

.modal-content ul {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.modal-content li {
    position: relative;
    padding-left: 24px;
    color: #314057;
}

.modal-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
}

.modal-content img {
    width: 100%;
    align-self: start;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(8, 30, 58, 0.15);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .site-header {
        position: static;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .hero,
    .services,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 44px;
    }

    .hero-media {
        min-height: 420px;
    }

    .hero-slide {
        width: min(560px, 88%);
        height: 360px;
    }

    .metrics {
        margin: 0 24px;
    }

    .service-heading {
        position: static;
    }

    .solution-grid,
    .modal-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        gap: 18px;
        padding: 18px;
    }

    .brand img {
        width: 148px;
    }

    .main-nav {
        gap: 18px;
        font-size: 0.92rem;
    }

    .header-button {
        width: 100%;
    }

    .hero {
        padding: 38px 18px 28px;
    }

    .hero-media {
        min-height: 360px;
    }

    .hero-slide {
        width: 88vw;
        height: 320px;
    }

    .hero-marquee-track {
        padding: 0;
    }

    .metrics,
    .area-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .metrics article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metrics article:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 68px 18px 0;
    }

    .commitment {
        margin-top: 68px;
        padding-bottom: 54px;
    }

    .about {
        padding-bottom: 68px;
    }

    .area-modal-panel {
        grid-template-columns: 1fr;
    }

    .about-text-card {
        padding: 22px;
    }

    .selected-marquee {
        height: 240px;
        margin-bottom: 42px;
    }

    .selected-marquee-track {
        animation-duration: 40s;
        padding: 20px 16px;
    }

    .selected-marquee img {
        width: 76vw;
    }

    .area-modal-visual {
        position: relative;
        min-height: 320px;
        clip-path: none;
    }

    .area-modal-visual img {
        min-height: 320px;
    }

    .area-modal-copy {
        padding: 30px 24px 28px;
    }

    .site-footer {
        padding: 44px 18px;
    }

    .modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .modal-content {
        padding: 22px;
    }

    .solution-card {
        min-height: 330px;
    }
}
