:root {
    --ink: #172039;
    --red: #bc143a;
    --muted: #69707b;
    --line: #dfe2e5;
    --paper: #f6f7f7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'DM Sans',Arial,sans-serif;
    background: white;
}

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

button {
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 5px;
}

header {
    height: 100px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
}

.logo {
    width: 122px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 14px;
    font-weight: 600;
}

.nav-cta {
    border: 1px solid var(--line);
    padding: 15px 19px;
}

.nav-cta span {
    margin-left: 20px;
    color: var(--red);
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 690px;
}

.hero-copy {
    padding: 66px 7% 35px 10%;
}

.eyebrow {
    font-size: calc(11px + 2pt);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow>span {
    height: 7px;
    width: 7px;
    background: var(--red);
    border-radius: 50%;
}

h1,
h2,
h3 {
    font-family: Manrope,Arial,sans-serif;
    margin: 0;
    letter-spacing: -.045em;
}

h1 {
    font-size: clamp(50px,5.3vw,82px);
    line-height: 1.07;
    font-weight: 600;
}

h1 em {
    font-style: normal;
    color: var(--red);
}

.intro {
    color: var(--muted);
    line-height: 1.75;
    font-size: 16px;
    max-width: 420px;
    margin: 27px 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 22px;
    font-size: calc(13px + 2pt);
    font-weight: 600;
}

.red {
    background: var(--red);
    color: white;
}

.red:hover {
    background: #9b1031;
}

.text-link {
    font-size: calc(13px + 2pt);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    white-space: nowrap;
}

.text-link span {
    padding-left: 10px;
}

.hero-note {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 43px;
    font-size: calc(10px + 2pt);
    color: var(--muted);
}

.hero-note span:first-child {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

.hero-image {
    position: relative;
    margin: 0;
    background: #e8eaeb;
    min-width: 0;
    overflow: hidden;
}

.hero-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 57% center;
    position: absolute;
}

.hero-image:after {
    content: '';
    position: absolute;
    inset: 60% 0 0;
    background: linear-gradient(transparent,#172039a1);
}

figcaption {
    position: absolute;
    bottom: 48px;
    left: 40px;
    right: 40px;
    z-index: 1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

figcaption span {
    font-size: calc(9px + 2pt);
    letter-spacing: 2px;
}

figcaption b {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-image small {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 1;
    color: #e0e1e3;
    font-size: calc(9px + 2pt);
}

.brands {
    padding: 32px 5%;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 65px;
}

.brands p {
    font-size: calc(9px + 2pt);
    letter-spacing: 1.5px;
    line-height: 1.5;
    max-width: 120px;
    color: var(--muted);
}

.brands>div {
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 25px;
}

.brands span {
    font-family: Manrope,Arial,sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #5b6370;
    letter-spacing: -.5px;
}

.section {
    padding: 95px 5%;
}

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

h2 {
    font-size: clamp(31px,3.3vw,48px);
    line-height: 1.18;
    font-weight: 500;
}

.section-heading>p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 350px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border: 1px solid var(--line);
}

.service {
    padding: 30px;
    transition: background .2s;
}

.service:hover {
    background: var(--paper);
}

.service+.service {
    border-left: 1px solid var(--line);
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.number {
    font-size: calc(11px + 2pt);
    color: var(--muted);
}

.icon {
    font-size: 36px;
    color: var(--red);
    font-weight: 400;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.service p,
.secondary p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}

.service-link {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    font-size: calc(12px + 2pt);
    font-weight: 600;
}

.service-link b {
    color: var(--red);
    font-size: 18px;
}

.secondary {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 45px;
    padding-top: 35px;
}

.secondary span {
    font-size: calc(10px + 2pt);
    color: var(--red);
}

.secondary h3 {
    font-size: 17px;
    margin-top: 10px;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8%;
    row-gap: 60px;
    background: var(--paper);
}

.technical {
    background: #172039;
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

.technical svg {
    width: 100%;
    display: block;
}

.technical>div {
    padding: 0 35px 35px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.technical strong {
    font-size: 24px;
    color: white;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.5px;
}

.technical span {
    font-size: calc(8px + 2pt);
    letter-spacing: 1.5px;
    color: #aab0c2;
    max-width: 120px;
    line-height: 1.7;
}

.about-copy {
    align-self: center;
}

.about-copy>p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
}

.about-copy>p.large {
    font-size: 20px;
    color: var(--ink);
    line-height: 1.6;
    margin-top: 30px;
}

.proof {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.proof a {
    padding: 19px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: calc(13px + 2pt);
}

.proof span {
    color: var(--red);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 50px;
    margin-top: 55px;
}

.steps>div {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.steps span {
    font-size: calc(12px + 2pt);
    color: var(--red);
}

.steps h3 {
    margin-top: 25px;
    font-size: 20px;
}

.steps p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 300px;
}

.contact {
    background: var(--ink);
    color: white;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12%;
}

.contact .eyebrow {
    color: #b6bdca;
}

.contact h2 {
    font-size: 44px;
}

.contact p:not(.eyebrow) {
    color: #b6bdca;
    font-size: 14px;
    margin-top: 25px;
}

.email {
    font-size: clamp(23px,3vw,39px);
    display: block;
    margin: 35px 0 18px;
    letter-spacing: -1px;
}

.email span {
    color: #ec426a;
    margin-left: 20px;
}

.office {
    font-size: calc(13px + 2pt);
    color: #c2c6d0;
}

.people>div {
    padding: 25px 0;
    border-top: 1px solid #444b60;
}

.people>div:first-child {
    padding-top: 0;
    border-top: 0;
}

.people span {
    font-size: calc(9px + 2pt);
    letter-spacing: 2px;
    color: #b6bdca;
}

.people h3 {
    margin: 13px 0;
    font-size: 23px;
}

.people a {
    font-size: 18px;
    color: white;
}

footer {
    padding: 45px 5% 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 25px;
}

footer p {
    font-size: calc(12px + 2pt);
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    font-size: calc(12px + 2pt);
    align-content: start;
}

.copyright {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: calc(10px + 2pt);
    color: var(--muted);
}

@media (min-width:1600px){
    body {
        max-width: 1600px;
        margin: auto;
    }
}

@media (max-width:1000px){
    nav {
        gap: 18px;
    }

    .hero-copy {
        padding-top: 45px;
    }

    .actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-note {
        flex-direction: column;
        gap: 8px;
    }

    .brands {
        gap: 25px;
    }

    .brands span {
        font-size: 15px;
    }

    .service {
        padding: 22px;
    }

    .technical {
        min-height: 0;
    }

    .technical>div {
        display: block;
    }

    .technical span {
        display: block;
        margin-top: 20px;
    }

    .contact {
        gap: 6%;
    }

    .contact h2 {
        font-size: 35px;
    }
}

@media (max-width:700px){
    header {
        height: 80px;
    }

    .logo {
        width: 100px;
    }

    .menu-toggle {
        display: flex;
        background: white;
        border: 1px solid var(--line);
        padding: 9px 12px;
        gap: 18px;
        font-size: calc(12px + 2pt);
    }

    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 25px 5%;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
    }

    nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 40px 6% 30px;
    }

    h1 {
        font-size: 60px;
    }

    .eyebrow {
        font-size: calc(9px + 2pt);
        margin-bottom: 22px;
    }

    .intro {
        font-size: 15px;
    }

    .actions {
        gap: 20px;
    }

    .hero-note {
        flex-direction: row;
        font-size: calc(9px + 2pt);
        gap: 15px;
        margin-top: 30px;
    }

    .hero-image {
        height: 370px;
    }

    figcaption {
        left: 25px;
        right: 25px;
        bottom: 40px;
    }

    figcaption b {
        font-size: 18px;
    }

    .brands {
        display: block;
        padding: 25px 6%;
    }

    .brands p {
        max-width: none;
        margin: 0 0 18px;
    }

    .brands>div {
        flex-wrap: wrap;
        gap: 20px;
    }

    .brands span {
        font-size: calc(13px + 2pt);
    }

    .section {
        padding: 60px 6%;
    }

    .section-heading {
        display: block;
        margin-bottom: 30px;
    }

    .section-heading>p {
        margin-top: 22px;
    }

    .service-grid,
    .secondary,
    .about,
    .steps,
    .contact {
        grid-template-columns: 1fr;
    }

    .service+.service {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .service {
        padding: 25px;
    }

    .service-top {
        margin-bottom: 15px;
    }

    .service-link {
        margin-top: 22px;
    }

    .secondary {
        gap: 20px;
    }

    .secondary>div,
    .secondary>a {
        border-bottom: 1px solid var(--line);
        padding-bottom: 10px;
    }

    .about {
        gap: 35px;
    }

    .technical svg {
        max-height: 300px;
    }

    .technical>div {
        display: flex;
    }

    .technical strong {
        font-size: 22px;
    }

    .technical span {
        margin: 0;
    }

    .steps {
        gap: 25px;
        margin-top: 30px;
    }

    .steps h3 {
        margin-top: 15px;
    }

    .contact {
        gap: 45px;
    }

    .contact h2 {
        font-size: 35px;
    }

    .email {
        font-size: 28px;
    }

    .people {
        display: grid;
        gap: 25px;
    }

    .people>div {
        padding: 0 0 20px;
        border-top: 0;
        border-bottom: 1px solid #444b60;
    }

    footer {
        padding: 35px 6% 20px;
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-column: 1/-1;
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        line-height: 1.7;
        gap: 15px;
        flex-direction: column;
    }
}

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

    * {
        transition: none!important;
    }
}

/* Team within O TQMS */
.team {
    grid-column: 1/-1;
    margin-top: 60px;
    border-top: 1px solid var(--line);
    padding-top: 60px;
}

.team-heading {
    margin-bottom: 44px;
}

.team-heading .eyebrow {
    margin-bottom: 18px;
}

.team-label {
    font-size: 17px;
    margin: 0 0 26px;
    letter-spacing: 0;
}

.team-grid {
    display: grid;
    gap: 32px;
}

.team-grid.board {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 640px;
    margin: 0 auto 52px;
}

.team-grid.management {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.team-person {
    text-align: center;
    min-width: 0;
}

.team-person img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    margin: 0 auto 22px;
}

.team-person h4 {
    font-family: Manrope,Arial,sans-serif;
    font-size: 19px;
    letter-spacing: -.025em;
    margin: 0 0 8px;
    font-weight: 600;
}

.team-person p {
    font-size: calc(12px + 2pt);
    line-height: 1.6;
    color: var(--muted);
    margin: 0 auto;
    max-width: 240px;
}

.team-grid.board .team-person img {
    max-width: 270px;
}

@media (max-width:1000px){
    .team-grid.management {
        grid-template-columns: repeat(2,minmax(0,1fr));
        row-gap: 36px;
    }
}

@media (max-width:700px){
    .team {
        margin-top: 12px;
        padding-top: 40px;
    }

    .team-heading {
        margin-bottom: 32px;
    }

    .team-grid {
        gap: 22px;
    }

    .team-person h4 {
        font-size: 16px;
    }

    .team-person p {
        font-size: calc(11px + 2pt);
    }

    .team-person img {
        margin-bottom: 16px;
    }

    .team-grid.board {
        margin-bottom: 36px;
    }

    .team-label {
        font-size: 16px;
    }
}

@media (max-width:360px){
    .team-grid.board,
    .team-grid.management {
        grid-template-columns: 1fr;
    }
}

/* Stronger labels without numbering */
.hero-note {
    flex-direction: column;
    gap: 12px;
    padding-top: 28px;
    margin-top: 40px;
    color: var(--ink);
}

.hero-note span:first-child {
    font-size: clamp(28px,2.7vw,40px);
    line-height: 1.2;
    color: var(--red);
}

.hero-note span+span {
    font-size: clamp(20px,1.9vw,28px);
    font-weight: 600;
    line-height: 1.45;
    max-width: 470px;
}

.section .eyebrow {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1.3px;
    font-weight: 700;
}

.service-top {
    justify-content: flex-end;
    margin-bottom: 18px;
}

.service h3 {
    font-size: 28px;
    line-height: 1.3;
}

.secondary h3 {
    font-size: 24px;
    line-height: 1.35;
    margin-top: 0;
}

.steps h3 {
    font-size: 25px;
    line-height: 1.35;
    margin-top: 0;
}

@media (max-width:700px){
    .hero-note {
        flex-direction: column;
        gap: 12px;
    }

    .hero-note span:first-child {
        font-size: 30px;
    }

    .hero-note span+span {
        font-size: 22px;
    }

    .section .eyebrow {
        font-size: 14px;
    }

    .service h3 {
        font-size: 26px;
    }

    .secondary h3,
    .steps h3 {
        font-size: 23px;
    }
}

/* Consistent service cards */
.service-grid-unified {
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 22px;
    border: 0;
}

.service-grid-unified .service {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--red);
    background: white;
    transition: background .2s,border-color .2s;
}

.service-grid-unified .service:nth-child(n+4) {
    grid-column: span 2;
}

.service-grid-unified .service:hover {
    background: var(--paper);
    border-color: var(--red);
}

.service-grid-unified .service h3 {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.service-grid-unified .service p {
    font-size: 16px;
    line-height: 1.75;
    margin: 18px 0 28px;
}

.service-grid-unified .service-link {
    font-size: 14px;
    line-height: 1.5;
    gap: 20px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width:1000px){
    .service-grid-unified {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .service-grid-unified .service,
    .service-grid-unified .service:nth-child(n+4) {
        grid-column: auto;
    }

    .service-grid-unified .service:last-child {
        grid-column: auto;
    }
}

@media (max-width:700px){
    .service-grid-unified {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-grid-unified .service {
        padding: 25px;
    }

    .service-grid-unified .service h3 {
        font-size: 24px;
    }

    .service-grid-unified .service p {
        font-size: 15px;
    }
}

/* Manufacturer logos below the hero */
.brands-logos {
    padding: 38px 5%;
    display: block;
}

.brands-logos>div {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: center;
    justify-items: center;
    gap: 40px;
}

.brands-logos img {
    display: block;
    max-width: 100%;
    width: 190px;
    height: 48px;
    object-fit: contain;
}

.brands-logos img[alt="Siemens"] {
    width: 175px;
    height: 34px;
}

.brands-logos img[alt="GE HealthCare"] {
    width: 225px;
    height: 52px;
}

.brands-logos img[alt="Shimadzu"] {
    width: 215px;
    height: 52px;
}

@media (max-width:700px){
    .brands-logos {
        padding: 30px 6%;
    }

    .brands-logos>div {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 30px 25px;
    }

    .brands-logos img {
        height: 40px;
    }

    .brands-logos img[alt="Siemens"] {
        height: 28px;
    }

    .brands-logos img[alt="GE HealthCare"],
    .brands-logos img[alt="Shimadzu"] {
        height: 44px;
    }
}

/* Team first, board highlighted below */
.team-reordered .team-grid.management {
    grid-template-columns: repeat(3,minmax(0,1fr));
    max-width: 960px;
    margin: 0 auto;
    gap: 36px;
}

.team-reordered .management .team-person img {
    max-width: 225px;
}

.team-reordered .board-block {
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.team-reordered .board-block>.team-label {
    text-align: center;
    font-size: 25px;
    color: var(--red);
    margin-bottom: 30px;
}

.team-reordered .team-grid.board {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 700px;
    margin: 0 auto;
    gap: 60px;
}

.team-reordered .board .team-person img {
    max-width: 270px;
}

.team-reordered .board .team-person h4 {
    font-size: 22px;
}

.team-reordered .board .team-person p {
    font-size: 14px;
}

@media (max-width:700px){
    .team-reordered .team-grid.management {
        gap: 16px;
    }

    .team-reordered .management .team-person h4 {
        font-size: 15px;
    }

    .team-reordered .management .team-person p {
        font-size: calc(11px + 2pt);
    }

    .team-reordered .team-grid.board {
        gap: 24px;
        max-width: 560px;
    }

    .team-reordered .board .team-person h4 {
        font-size: 19px;
    }

    .team-reordered .board-block {
        margin-top: 36px;
        padding-top: 30px;
    }
}

@media (max-width:480px){
    .team-reordered .team-grid.management {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-reordered .management .team-person img {
        max-width: 190px;
    }

    .team-reordered .management .team-person h4 {
        font-size: 18px;
    }

    .team-reordered .team-grid.board {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .team-reordered .board .team-person img {
        max-width: 230px;
    }
}

/* Quality certifications */
.iso-certifications {
    margin-top: 28px;
    padding: 22px 24px;
    border-left: 3px solid var(--red);
    background: #fff;
}

.iso-certifications p {
    margin: 0;
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink);
}

.iso-certifications strong {
    font-weight: 700;
    white-space: nowrap;
    color: var(--red);
}

@media (max-width:700px){
    .iso-certifications {
        padding: 20px;
    }

    .iso-certifications p {
        font-size: 17px;
    }
}

.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    margin-top: 22px;
}

.certificate-gallery a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.certificate-gallery img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px #17203912;
}

.certificate-gallery span {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
}

.certificate-gallery a:hover img {
    border-color: var(--red);
}

@media (max-width:480px){
    .certificate-gallery {
        gap: 12px;
    }

    .certificate-gallery span {
        font-size: calc(12px + 2pt);
    }
}

.certificate-gallery.certification-marks {
    gap: 18px;
    align-items: center;
}

.certificate-gallery.certification-marks img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    border: 0;
    box-shadow: none;
}

@media (max-width:480px){
    .certificate-gallery.certification-marks {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .certificate-gallery.certification-marks img {
        max-width: 300px;
    }
}

/* Keep both team rows within the continuous section background */
.about>.team {
    margin-top: 0;
}

.team-reordered .board-block,
.team-reordered .team-person,
.team-reordered .team-person h4,
.team-reordered .team-person p {
    background: transparent;
}
