:root {
    --navy: #061b4f;
    --blue: #0577d8;
    --red: #d80005;
    --ink: #13223b;
    --muted: #6a7484;
    --line: #dfe5ee;
    --soft: #f5f7fa;
    --white: #fff
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

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

a {
    color: var(--blue);
    text-decoration: none
}

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

label.error {
    color: var(--red) !important;
}

input.error, select.error {
    outline: 2px solid var(--red) !important;
}

/* input:invalid, select:invalid { */
/*     outline: 2px solid var(--red) !important; */
/* } */


ul.inline {
    list-style-type: none;
    list-style: none;
    margin: 0;
}

ul.inline li {
    display: inline-block;
    padding: 0;
    margin: 0 .5rem 1rem 0;
}

ul.inline li:last-of-type {
    margin-right: 0
}


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

.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 14px
}

.topbar a {
    color: #fff;
}

.topbar .container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px
}

.topbar a {
    opacity: .95
}

.topbar a:hover {
    opacity: 1;
    text-decoration: underline
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30
}

.header-row {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.brand img {
    width: 270px;
    max-height: 74px;
    object-fit: contain
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-item {
    position: relative
}

.main-nav>a,
.nav-trigger {
    display: block;
    padding: 15px 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .055em;
    color: var(--navy);
    text-transform: uppercase;
    background: none;
    border: 0;
    cursor: pointer
}

.main-nav>a:hover,
.nav-trigger:hover {
    color: var(--blue)
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(6, 27, 79, .14);
    display: none
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: block
}

.dropdown a {
    display: block;
    padding: 12px 14px;
    border-radius: 3px;
    font-size: 15px
}

.dropdown a:hover {
    background: var(--soft);
    color: var(--blue)
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #8fd0ff
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer
}

.btn-primary {
    background: var(--blue);
    color: #fff
}

.btn-primary:hover {
    background: #056dc4
}

.btn-outline {
    border-color: #fff;
    color: #fff;
    background: transparent
}

.btn-outline:hover {
    background: #fff;
    color: var(--navy)
}

.section {
    padding: 78px 0
}

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

.section-title {
    max-width: 760px;
    margin-bottom: 38px
}

.section-title .eyebrow {
    color: var(--blue)
}

.section-title h2 {
    font-size: 39px;
    line-height: 1.15;
    margin: 8px 0 15px;
    color: var(--navy)
}

.section-title p {
    font-size: 18px;
    color: var(--muted);
    margin: 0
}

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

.about-copy p {
    font-size: 18px;
    color: #4f5b6d
}

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

.value {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--line)
}

.value:last-child {
    border-right: 0
}

.value strong {
    display: block;
    color: var(--navy);
    font-size: 18px
}

.value span {
    font-size: 13px;
    color: var(--muted)
}

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

.solution-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 34px;
    min-height: 270px;
    display: flex;
    flex-direction: column
}

.solution-card .num {
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: .15em
}

.solution-card h3 {
    font-size: 25px;
    color: var(--navy);
    margin: 12px 0
}

.solution-card p {
    color: var(--muted);
    margin: 0 0 26px
}

.text-link {
    margin-top: auto;
    color: var(--blue);
    font-weight: 700
}

.text-link:hover {
    text-decoration: underline
}

.page-hero {
    padding: 78px 0;
    background: linear-gradient(135deg, #071c4f, #0c3473);
    color: #fff
}

.page-hero h1 {
    font-size: 46px;
    margin: 8px 0 10px
}

.page-hero p {
    font-size: 19px;
    max-width: 720px;
    color: rgba(255, 255, 255, .84)
}

.page-hero .eyebrow {
    color: #8fd0ff
}

.form-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px
}

.form-card {
    border: 1px solid var(--line);
    padding: 34px;
    background: #fff
}

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

.field.full {
    grid-column: 1/-1
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 7px
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #cbd3de;
    background: #fff;
    padding: 13px 12px;
    font: inherit;
    color: var(--ink);
    border-radius: 2px
}

.field textarea {
    min-height: 125px;
    resize: vertical
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(5, 119, 216, .15);
    border-color: var(--blue)
}

.form-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px
}

.success-message {
    display: none;
    padding: 13px 15px;
    margin-top: 18px;
    background: #eef8ff;
    border-left: 3px solid var(--blue);
    color: var(--navy)
}

.side-panel {
    background: var(--soft);
    padding: 32px;
    height: max-content
}

.side-panel h3 {
    margin-top: 0;
    color: var(--navy)
}

.side-panel p {
    color: var(--muted)
}

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

.person-card {
    border: 1px solid var(--line);
    padding: 28px;
    background: #fff
}

.person-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 22px
}

.person-card .role {
    color: var(--blue);
    font-weight: 700;
    margin: 5px 0 17px
}

.person-card a {
    display: block;
    color: #4f5b6d;
    margin-top: 6px
}

.person-card a:hover {
    color: var(--blue)
}

.hq {
    margin-top: 36px;
    background: var(--navy);
    color: #fff;
    padding: 32px
}

.hq h3 {
    margin-top: 0
}

.hq p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .82)
}

.footer {
    background: #031437;
    color: #fff;
    padding: 46px 0 24px;
    margin-top: 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .8fr;
    gap: 50px
}

.footer-logo {
    background: #fff;
    padding: 12px;
    max-width: 260px;
    margin-bottom: 18px
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, .73);
    font-size: 14px
}

.footer h4 {
    margin: 0 0 14px
}

.footer a {
    display: block;
    margin: 6px 0
}

.footer a:hover {
    color: #fff
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 20px;
    margin-top: 34px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55)
}

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--navy)
}

@media(max-width:900px) {
    .topbar {
        display: none
    }

    .header-row {
        height: 78px
    }

    .brand img {
        width: 220px
    }

    .mobile-toggle {
        display: block
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch
    }

    .main-nav.open {
        display: flex
    }

    .nav-item:hover .dropdown {
        display: none
    }

    .nav-item.open .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        margin-left: 14px
    }

    .main-nav>a,
    .nav-trigger {
        text-align: left;
        width: 100%
    }

    .about-grid,
    .form-wrap {
        grid-template-columns: 1fr
    }

    .solution-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr
    }

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

    .footer-grid>div:first-child {
        grid-column: 1/-1
    }
}

@media(max-width:620px) {
    .container {
        width: min(100% - 28px, 1180px)
    }

    .section {
        padding: 58px 0
    }

    .section-title h2,
    .page-hero h1 {
        font-size: 34px
    }

    .solution-grid,
    .contact-grid,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

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

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

    .value:last-child {
        border-bottom: 0
    }
}

/* Client-approved September update: preserve the existing page layout. */

.brand img {
    height: 82px;
    max-height: 82px;
    object-fit: cover;
    object-position: center;
    width: 270px
}

.person-card {
    min-width: 0
}

.person-card a,
.footer a {
    overflow-wrap: anywhere
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    color: #4f5b6d
}

.consent input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--blue);
    margin: 3px 0 0
}

.field label,
.form-note {
    font-size: 14px
}

.form-grid {
    margin-bottom: 12px
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #0577d8;
    outline-offset: 4px
}

.nav-item.open .dropdown {
    display: block
}

.page-hero {
    background-color: #031437;
    background-image: linear-gradient(90deg, #031437 0%, rgba(3, 20, 55, .96) 32%, rgba(3, 20, 55, .58) 62%, rgba(3, 20, 55, .08) 100%), url('/assets/images/tmsi-global-art.png');
    background-position: center, right 32%;
    background-size: cover, auto 145%;
    background-repeat: no-repeat
}

.page-hero .container {
    position: relative
}

@media(max-width:620px) {
    .page-hero {
        background-image: linear-gradient(90deg, rgba(3, 20, 55, .92), rgba(3, 20, 55, .65)), url('/assets/images/tmsi-global-art.png');
        background-position: center, center 32%
    }
}

@media(max-width:900px) {
    .brand img {
        width: 220px;
        height: 70px;
        max-height: 70px
    }
}

@media(max-width:620px) {
    .form-card {
        padding: 24px
    }

    .header-row {
        gap: 12px
    }

    .value {
        padding: 22px 16px
    }
}

@media(max-width:620px) {}

/* One blended hero surface, with proportional art and content. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 78% 48%, #102947 0%, #071a33 42%, #051329 76%)
}

.hero>.container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    align-items: center;
    gap: 0;
    padding-block: 24px;
    min-height: 0
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 16px 0
}

.hero h1 {
    font-size: clamp(40px, 4.2vw, 60px);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 16px 0 20px
}

.hero p {
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.6;
    margin: 0 0 28px;
    color: #e0e8f3;
    max-width: 540px
}

.hero .eyebrow {
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .18em
}

.hero-art {
    position: relative;
    width: 100%;
    margin: 0;
    align-self: stretch;
    min-height: 0;
    pointer-events: none;
    mix-blend-mode: screen
}

.hero-art img {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 120%;
    aspect-ratio: 1;
    max-width: none;
    object-fit: contain;
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 13%, #000 83%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 13%, #000 83%, transparent 100%);
    -webkit-mask-composite: source-in
}

@media(max-width:1000px) and (min-width:761px) {
    .hero>.container {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr)
    }

    .hero .btn {
        padding-inline: 16px;
        font-size: 12px
    }

    .hero .eyebrow {
        font-size: 11px;
        letter-spacing: .1em
    }
}

@media(max-width:760px) {
    .hero {
        background: radial-gradient(ellipse at 50% 72%, #102947 0%, #071a33 40%, #051329 78%)
    }

    .hero>.container {
        grid-template-columns: 1fr;
        padding-block: 34px 8px;
        min-height: 0;
        gap: 0
    }

    .hero-content {
        max-width: 580px;
        padding: 0;
        margin-inline: auto
    }

    .hero h1 {
        font-size: clamp(38px, 7.4vw, 48px);
        margin: 12px 0 16px
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 24px
    }

    .hero-art {
        width: 100%;
        max-width: 380px;
        height: clamp(210px, 64vw, 280px);
        margin: -6px auto 0
    }

    .hero-art img {
        top: -11%;
        height: 122%
    }

    .hero .eyebrow {
        font-size: 11px;
        letter-spacing: .13em
    }

    .hero .btn-row {
        gap: 10px
    }

    .hero .btn {
        padding-inline: 18px
    }
}

@media(max-width:380px) {
    .hero .btn-row {
        display: grid;
        grid-template-columns: 1fr
    }

    .hero .btn {
        width: 100%
    }

    .hero-art {
        margin-top: 4px
    }
}

.hero .hero-tagline {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 16px 0 18px;
    color: #fff
}

/* Center homepage text with natural word spacing. */
.hero-content,
.about-copy {
    text-align: center;
    min-width: 0
}

.hero-content {
    margin-inline: auto
}

.hero-content>p,
.about-copy>.section-title {
    margin-inline: auto
}

.hero-content>p:not(.hero-tagline),
.about-copy>p {
    text-align: center;
    word-spacing: normal;
    text-wrap: pretty
}

.hero-content .btn-row {
    justify-content: center
}
