@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ink: #071820;
    --ink2: #0d2934;
    --muted: #657982;
    --paper: #f4f7f7;
    --white: #fff;
    --line: #dbe6e8;
    --lime: #dff04d;
    --green: #50a909;
    --cyan: #59d8ff;
    --max: 1240px;
    --r: 24px;
    --shadow: 0 25px 70px rgba(5, 23, 30, .14)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.65
}

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

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

button,
input,
textarea,
select {
    font: inherit
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: auto
}

.header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    transition: .3s
}

.header.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07)
}

.header-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: auto;
    display: flex;
    align-items: center;
    gap: 28px
}

.logo {
    width: 116px
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px
}

.nav>a,
.drop-toggle {
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    position: relative;
    background: none;
    border: 0;
    padding: 10px 0;
    cursor: pointer
}

.header.scrolled .nav>a,
.header.scrolled .drop-toggle {
    color: var(--ink)
}

.nav>a:after,
.drop-toggle:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: var(--lime);
    transition: .2s
}

.nav>a:hover:after,
.drop-toggle:hover:after {
    right: 0
}

.dropdown {
    position: relative
}

.dropdown-menu {
    position: absolute;
    top: 42px;
    left: -16px;
    width: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .22s
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none
}

.dropdown-menu a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: .82rem
}

.dropdown-menu a:hover {
    background: #f1f6f6
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    padding: 12px 19px;
    font-weight: 900;
    border: 1px solid transparent;
    transition: .25s;
    cursor: pointer
}

.header-cta,
.primary {
    background: var(--lime);
    color: var(--ink)
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-2px)
}

.outline {
    border-color: rgba(255, 255, 255, .45);
    color: #fff
}

.dark {
    background: var(--ink);
    color: #fff
}

.mobile {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.7rem
}

.hero {
    min-height: 820px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #06171f
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72
}

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

.eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .7rem;
    font-weight: 900
}

.hero h1,
.pagehero h1 {
    font: 700 clamp(3.2rem, 6.5vw, 6.6rem)/.94 "Space Grotesk";
    letter-spacing: -.06em;
    max-width: 930px;
    margin: 18px 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .16)
}

.hero p {
    font-size: 1.08rem;
    color: #e0eaed;
    max-width: 690px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin-top: 62px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    overflow: hidden
}

.stat {
    padding: 18px;
    background: rgba(3, 18, 27, .3);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(255, 255, 255, .14)
}

.stat:last-child {
    border: 0
}

.stat strong {
    display: block;
    font: 700 1.2rem "Space Grotesk"
}

.stat span {
    font-size: .74rem;
    color: #c2d0d4
}

.section {
    padding: 100px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 45px
}

.kicker {
    color: var(--green);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 900;
    margin: 0 0 10px
}

.section h2 {
    font: 700 clamp(2.3rem, 4vw, 4.2rem)/1 "Space Grotesk";
    letter-spacing: -.05em;
    margin: 0;
    max-width: 780px
}

.section-head>p {
    max-width: 480px;
    color: var(--muted);
    margin: 0
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.image-card {
    border-radius: var(--r);
    overflow: hidden;
    min-height: 520px;
    box-shadow: var(--shadow);
    position: relative
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15)
}

.badge strong {
    display: block;
    font: 700 1.25rem "Space Grotesk"
}

.muted {
    color: var(--muted)
}

.services {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden
}

.services:before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(223, 240, 77, .14);
    border-radius: 50%;
    right: -250px;
    top: -260px
}

.services .kicker {
    color: var(--lime)
}

.services .section-head>p {
    color: #aebfc6
}

.service-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px
}

.service-tab {
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .045);
    color: #fff;
    border-radius: 16px;
    padding: 17px;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
    transition: .25s
}

.service-tab small {
    display: block;
    color: #8fa4ad;
    font-weight: 500;
    margin-top: 4px
}

.service-tab.active,
.service-tab:hover {
    background: var(--lime);
    color: var(--ink);
    border-color: var(--lime)
}

.service-tab.active small,
.service-tab:hover small {
    color: #53611d
}

.service-panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    min-height: 460px;
    border-radius: 25px;
    overflow: hidden;
    background: #102d38;
    border: 1px solid rgba(255, 255, 255, .1)
}

.service-copy {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.service-copy .num {
    color: var(--lime);
    font: 700 1rem "Space Grotesk"
}

.service-copy h3 {
    font: 700 clamp(2rem, 4vw, 3.6rem)/1 "Space Grotesk";
    letter-spacing: -.04em;
    margin: 18px 0 12px
}

.service-copy p {
    color: #b9c9ce;
    max-width: 580px
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px
}

.chip {
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .75rem;
    color: #d9e4e7
}

.service-photo {
    min-height: 460px;
    position: relative
}

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

.service-photo:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 45, 56, .2), transparent)
}

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

.product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: .3s
}

.product:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow)
}

.product-img {
    height: 190px;
    background: #eef3f3;
    display: grid;
    place-items: center;
    padding: 20px
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.product-body {
    padding: 19px
}

.product-body h3 {
    font: 700 1.1rem "Space Grotesk";
    margin: 0 0 7px
}

.product-body p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem
}

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

.life {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 25px;
    min-height: 220px
}

.life b {
    font: 700 2.3rem "Space Grotesk";
    color: #c5d1d4
}

.life h3 {
    font: 700 1.2rem "Space Grotesk"
}

.life p {
    font-size: .88rem;
    color: var(--muted)
}

.cert {
    background: #eaf0f0
}

.cert-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: center
}

.cert-image {
    background: #fff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: var(--shadow)
}

.cert-image img {
    width: 100%;
    max-height: 430px;
    object-fit: contain
}

.cert h2 {
    font: 700 clamp(2.3rem, 4vw, 4rem)/1 "Space Grotesk";
    letter-spacing: -.05em
}

.cert p {
    color: var(--muted)
}

.contact {
    background: #071820;
    color: #fff
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px
}

.contact .kicker {
    color: var(--lime)
}

.contact-details {
    display: grid;
    gap: 18px;
    margin-top: 30px
}

.contact-item {
    display: flex;
    gap: 14px
}

.icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(223, 240, 77, .12);
    color: var(--lime)
}

.contact-item span {
    display: block;
    color: #aebfc6;
    font-size: .9rem
}

.footer {
    background: #031017;
    color: #9bb0b8;
    padding: 25px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.footer img {
    width: 100px;
    filter: brightness(0) invert(1)
}

.footer a:hover {
    color: #fff
}

.pagehero {
    min-height: 610px;
    background: #06171f;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden
}

.pagehero-media {
    position: absolute;
    inset: 0
}

.pagehero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58
}

.pagehero-media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 18, 27, .55), rgba(3, 18, 27, .08))
}

.pagehero .container {
    position: relative;
    z-index: 2;
    padding-top: 90px
}

.pagehero p:not(.eyebrow) {
    max-width: 720px;
    color: #d3e0e4
}

.detail {
    padding: 95px 0
}

.detail-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 65px
}

.detail h2 {
    font: 700 clamp(2.2rem, 4vw, 4rem)/1 "Space Grotesk";
    letter-spacing: -.05em;
    margin: 0
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 23px
}

.card h3 {
    font: 700 1.15rem "Space Grotesk";
    margin: 0 0 8px
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem
}

.detail-photo {
    margin-top: 16px;
    border-radius: 20px;
    overflow: hidden;
    height: 340px
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

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

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

@media(max-width:900px) {
    .nav {
        gap: 12px
    }

    .service-tabs,
    .products,
    .lifecycle {
        grid-template-columns: 1fr 1fr
    }

    .about,
    .contact-grid,
    .cert-grid,
    .detail-grid {
        grid-template-columns: 1fr
    }

    .service-panel {
        grid-template-columns: 1fr
    }

    .service-photo {
        min-height: 330px
    }

    .section-head {
        align-items: start
    }

    .stats {
        grid-template-columns: 1fr 1fr
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, .14)
    }

    .mobile {
        display: block
    }

    .nav {
        position: fixed;
        top: 75px;
        left: 14px;
        right: 14px;
        background: #fff;
        border-radius: 20px;
        padding: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow)
    }

    .nav.open {
        display: flex
    }

    .nav>a,
    .header.scrolled .nav>a,
    .header.scrolled .drop-toggle,
    .drop-toggle {
        color: var(--ink)
    }

    .dropdown-menu {
        position: static;
        width: auto;
        display: none;
        box-shadow: none;
        border: 0;
        padding: 4px 0 0
    }

    .dropdown.open .dropdown-menu {
        display: block
    }

    .header-cta {
        display: none
    }
}

@media(max-width:560px) {

    .container,
    .header-inner {
        width: calc(100% - 28px)
    }

    .hero {
        min-height: 760px
    }

    .hero h1,
    .pagehero h1 {
        font-size: 3rem
    }

    .section {
        padding: 72px 0
    }

    .service-tabs,
    .products,
    .lifecycle,
    .cards {
        grid-template-columns: 1fr
    }

    .about .image-card {
        min-height: 400px
    }

    .service-copy {
        padding: 30px
    }

    .stats {
        margin-top: 45px
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start
    }

    .header .logo {
        width: 100px
    }
}

/* v3 refinement */
.section-head {
    display: block;
    max-width: 850px;
    margin-bottom: 48px
}

.section-head>p,
.section-head .section-subtext {
    max-width: 760px;
    margin: 15px 0 0;
    color: var(--muted);
    text-align: left
}

.services {
    background: #edf3f2;
    color: var(--ink)
}

.services:before {
    border-color: rgba(80, 169, 9, .12)
}

.services .kicker {
    color: var(--green)
}

.services .section-head>p,
.services .section-subtext {
    color: var(--muted)
}

.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    position: relative;
    z-index: 1
}

.capability-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 45px rgba(5, 23, 30, .07);
    transition: .35s;
    display: flex;
    flex-direction: column
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(5, 23, 30, .14);
    border-color: #c7d6d8
}

.capability-image {
    height: 270px;
    background: #dfe8e8;
    overflow: hidden;
    position: relative
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s
}

.capability-card:hover .capability-image img {
    transform: scale(1.04)
}

.capability-body {
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.capability-number {
    font: 700 .8rem "Space Grotesk";
    color: var(--green);
    letter-spacing: .12em
}

.capability-body h3 {
    font: 700 clamp(1.65rem, 2.6vw, 2.35rem)/1.05 "Space Grotesk";
    letter-spacing: -.035em;
    margin: 10px 0 12px
}

.capability-body p {
    color: var(--muted);
    margin: 0;
    max-width: 620px
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0 25px
}

.chip-row span {
    font-size: .72rem;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f0f5f4;
    border: 1px solid var(--line)
}

.service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: max-content;
    min-width: 165px;
    padding: 11px 15px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
    font-size: .82rem;
    margin-top: auto;
    transition: .25s
}

.service-cta b {
    font-size: 1rem
}

.service-cta:hover {
    background: var(--green);
    transform: translateX(3px)
}

.products .product-img {
    position: relative;
    overflow: hidden
}

.products .product-img img {
    position: relative;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain
}

.product-body {
    background: #fff;
    position: relative;
    z-index: 2
}

.reviews {
    background: #fff
}

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

.review-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    transition: .3s
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.review-top img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover
}

.review-top span {
    font: 700 1.2rem "Space Grotesk";
    color: #b7c5c8
}

.stars {
    color: #91a900;
    letter-spacing: 3px;
    margin: 18px 0 10px
}

.review-card blockquote {
    font: 500 1.02rem/1.55 "DM Sans";
    margin: 0 0 25px;
    color: #20333b
}

.review-card strong {
    display: block;
    font-size: .85rem
}

.review-card small {
    display: block;
    color: var(--muted);
    margin-top: 2px
}

.contact-modern {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: end
}

.contact-intro h2 {
    font: 700 clamp(2.5rem, 4.4vw, 4.7rem)/1 "Space Grotesk";
    letter-spacing: -.05em;
    margin: 0 0 20px
}

.contact-intro>p:last-child {
    color: #aebfc6;
    max-width: 600px
}

.contact-details-wide {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.contact-button {
    grid-column: 1/-1;
    width: max-content
}

.footer {
    background: #fff;
    color: #60727b;
    border-top: 1px solid #d4e0e1;
    padding: 32px 0
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 25px
}

.footer img {
    filter: none;
    width: 110px
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .8rem;
    font-weight: 800
}

.footer-links a:hover {
    color: var(--green)
}

@media(max-width:900px) {

    .capability-grid,
    .review-grid,
    .contact-modern {
        grid-template-columns: 1fr
    }

    .contact-details-wide {
        grid-template-columns: 1fr
    }

    .contact-button {
        grid-column: auto
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr
    }

    .footer-links {
        grid-column: 1/-1;
        order: 3
    }
}

@media(max-width:560px) {

    .capability-grid,
    .review-grid {
        grid-template-columns: 1fr
    }

    .capability-image {
        height: 230px
    }

    .footer-inner {
        grid-template-columns: 1fr
    }

    .footer-links {
        grid-column: auto
    }
}

/* Instrumentation portfolio */
.instrument-portfolio {
    background: #f4f7f7
}

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

.instrument-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: .3s
}

.instrument-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 55px rgba(8, 21, 29, .12)
}

.instrument-card-image {
    height: 245px;
    background: #eef3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden
}

.instrument-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.instrument-card-body {
    padding: 22px
}

.instrument-label {
    margin: 0 0 7px;
    color: var(--green);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em
}

.instrument-card h3 {
    margin: 0 0 17px;
    font: 700 1.35rem/1.05 "Space Grotesk"
}

.instrument-link {
    display: inline-flex;
    gap: 8px;
    font-size: .82rem;
    font-weight: 800
}

.instrument-link span {
    transition: .2s
}

.instrument-card:hover .instrument-link span {
    transform: translate(3px, -3px)
}

@media(max-width:900px) {
    .instrument-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:560px) {
    .instrument-grid {
        grid-template-columns: 1fr
    }

    .instrument-card-image {
        height: 220px
    }
}

@media (max-width: 800px) {
    .image-card {
        display: none;
    }
}