:root {
    --ink: #07111f;
    --muted: #5b6678;
    --soft: #edf4fb;
    --paper: #f8fbff;
    --white: #ffffff;
    --midnight: #03070d;
    --navy: #071528;
    --blue: #075fd7;
    --cyan: #24d3ff;
    --aqua: #72e5f3;
    --yellow: #ffd23f;
    --line: #d9e6f2;
    --dark-line: rgba(114, 229, 243, 0.24);
    --shadow: 0 22px 60px rgba(7, 17, 31, 0.16);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
    overflow-wrap: anywhere;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 200;
    transform: translateY(-160%);
    background: var(--yellow);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 7, 13, 0.94);
    border-bottom: 1px solid rgba(114, 229, 243, 0.18);
    backdrop-filter: blur(14px);
}

.header-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 178px;
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a.is-active {
    color: var(--white);
    background: rgba(36, 211, 255, 0.14);
}

.primary-nav .nav-call {
    margin-left: 8px;
    background: var(--yellow);
    color: var(--ink);
}

.primary-nav .nav-call:hover,
.primary-nav .nav-call:focus {
    color: var(--ink);
    background: #ffe071;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    position: relative;
    isolation: isolate;
    color: var(--white);
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center right;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 5, 10, 0.94) 0%, rgba(2, 9, 20, 0.82) 48%, rgba(2, 7, 14, 0.36) 100%),
        linear-gradient(0deg, rgba(2, 5, 10, 0.78) 0%, rgba(2, 5, 10, 0.08) 45%);
}

.hero__inner {
    min-height: min(760px, 82svh);
    display: grid;
    align-content: center;
    gap: 42px;
    padding: 82px 0 48px;
}

.hero__copy {
    max-width: 680px;
}

.hero__logo {
    width: min(360px, 72vw);
    margin-bottom: 20px;
}

.hero__tagline,
.eyebrow {
    margin: 0 0 14px;
    color: var(--aqua);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0;
    font-size: 4.6rem;
    line-height: 0.98;
    color: var(--white);
}

.hero__lead {
    max-width: 640px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.button--primary {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 14px 32px rgba(255, 210, 63, 0.22);
}

.button--primary:hover,
.button--primary:focus {
    background: #ffe071;
}

.button--secondary {
    color: var(--white);
    border-color: rgba(114, 229, 243, 0.48);
    background: rgba(3, 21, 39, 0.64);
}

.button--secondary:hover,
.button--secondary:focus {
    border-color: var(--cyan);
    background: rgba(36, 211, 255, 0.16);
}

.hero__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__quick span {
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(114, 229, 243, 0.32);
    background: rgba(3, 21, 39, 0.52);
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.trust-grid article {
    min-height: 142px;
    padding: 24px;
    background: var(--white);
}

.trust-grid h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.trust-grid p {
    margin: 0;
    color: var(--muted);
}

.section {
    padding: 86px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.section-heading h2,
.engineering-copy h2,
.contact-copy h2,
.location-grid h2 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.12;
}

.section-heading p:last-child,
.engineering-copy p,
.contact-copy p,
.location-grid p {
    color: var(--muted);
    font-size: 1.05rem;
}

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

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

.service-card {
    display: grid;
    grid-template-rows: 210px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(7, 17, 31, 0.08);
}

.service-card__media {
    display: block;
    min-width: 0;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    padding: 22px;
}

.service-card h3,
.service-detail h2,
.process-card h3 {
    margin: 0 0 10px;
    line-height: 1.16;
}

.service-card p,
.service-detail p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.service-list li {
    position: relative;
    padding-left: 22px;
    color: #253244;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(7, 95, 215, 0.12);
}

.engineering-section {
    background: var(--white);
}

.engineering-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: center;
}

.engineering-copy {
    max-width: 520px;
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 800;
}

.text-link:hover,
.text-link:focus {
    color: #003f9d;
}

.feature-media,
.service-detail figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-section {
    background: var(--navy);
    color: var(--white);
}

.gallery-section .section-heading p:last-child,
.gallery-section .section-heading {
    color: rgba(255, 255, 255, 0.78);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.gallery-card {
    position: relative;
    min-height: 312px;
    display: grid;
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius);
    background: #07111f;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    transition: border-color 160ms ease, transform 160ms ease;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 7, 13, 0.04) 0%, rgba(3, 7, 13, 0.38) 44%, rgba(3, 7, 13, 0.92) 100%),
        linear-gradient(90deg, rgba(7, 95, 215, 0.14), rgba(36, 211, 255, 0.06));
}

.gallery-card:hover,
.gallery-card:focus {
    border-color: rgba(114, 229, 243, 0.72);
    transform: translateY(-3px);
}

.gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

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

.gallery-card__body {
    position: relative;
    z-index: 1;
    min-height: 154px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 18px;
}

.gallery-card__title,
.gallery-card__summary,
.gallery-card__action {
    display: block;
}

.gallery-card__title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}

.gallery-card__summary {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card__action {
    color: var(--aqua);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-card:focus {
    outline: 3px solid rgba(114, 229, 243, 0.62);
    outline-offset: 3px;
}

.process-section {
    background: var(--paper);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #e4f7ff;
    color: var(--blue);
    font-weight: 900;
}

.process-card p {
    margin: 0;
    color: var(--muted);
}

.contact-section {
    color: var(--white);
    background: var(--midnight);
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: start;
}

.contact-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.action-card {
    min-height: 122px;
    padding: 20px;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.action-card:hover,
.action-card:focus {
    border-color: var(--cyan);
    background: rgba(36, 211, 255, 0.12);
}

.action-card span {
    display: block;
    color: var(--aqua);
    font-weight: 800;
    margin-bottom: 8px;
}

.action-card strong {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.action-card--primary {
    background: var(--yellow);
    border-color: var(--yellow);
}

.action-card--primary span,
.action-card--primary strong {
    color: var(--ink);
}

.page-hero {
    position: relative;
    isolation: isolate;
    color: var(--white);
    background-image: var(--page-hero-bg);
    background-size: cover;
    background-position: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(3, 7, 13, 0.94), rgba(3, 7, 13, 0.62));
}

.page-hero__inner {
    min-height: 380px;
    display: grid;
    align-content: center;
    max-width: 760px;
    padding: 76px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: 3.1rem;
    line-height: 1.05;
}

.page-hero p:last-child {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.service-detail-section {
    background: var(--soft);
}

.service-detail-list {
    display: grid;
    gap: 24px;
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(7, 17, 31, 0.08);
    scroll-margin-top: 92px;
}

.service-detail figure {
    box-shadow: none;
}

.service-detail img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-list--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.location-section {
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: start;
}

.location-details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 24px;
}

.location-details dl {
    margin: 0;
    display: grid;
    gap: 18px;
}

.location-details dt {
    color: var(--muted);
    font-weight: 800;
}

.location-details dd {
    margin: 4px 0 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.location-details a {
    color: var(--blue);
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #02050a;
    border-top: 1px solid rgba(114, 229, 243, 0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
}

.footer-brand img {
    width: 210px;
    margin-bottom: 14px;
}

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

.site-footer a {
    display: block;
    margin: 9px 0;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--aqua);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 960px) {
    .brand img {
        width: 150px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 72px;
        display: grid;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(3, 7, 13, 0.98);
        border-bottom: 1px solid rgba(114, 229, 243, 0.18);
        transition: max-height 180ms ease;
    }

    .primary-nav.is-open {
        max-height: 360px;
    }

    .primary-nav a {
        border-radius: 0;
        padding: 16px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .primary-nav .nav-call {
        margin-left: 0;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

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

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

    .engineering-grid,
    .contact-shell,
    .service-detail,
    .location-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .section {
        padding: 62px 0;
    }

    .hero {
        background-position: center;
    }

    .hero__inner {
        min-height: auto;
        padding: 62px 0 38px;
    }

    .hero__logo {
        width: min(280px, 86vw);
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.55rem;
    }

    .hero__lead,
    .page-hero p:last-child {
        font-size: 1rem;
    }

    .hero__actions,
    .hero__quick {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .trust-grid,
    .service-grid,
    .process-grid,
    .gallery-grid,
    .contact-actions,
    .service-list--columns {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-template-rows: 190px 1fr;
    }

    .section-heading h2,
    .engineering-copy h2,
    .contact-copy h2,
    .location-grid h2 {
        font-size: 2rem;
    }

    .service-detail {
        padding: 14px;
    }

    .footer-bottom {
        display: grid;
    }
}
