:root {
    --nx-bg: #f2f2f2;
    --nx-surface: #ffffff;
    --nx-surface-muted: #fafafa;
    --nx-text: #0a0a0a;
    --nx-text-soft: #404040;
    --nx-text-muted: #737373;
    --nx-border: #d4d4d4;
    --nx-border-subtle: #e5e5e5;
    --nx-primary: #000000;
    --nx-primary-foreground: #ffffff;
    --nx-radius-sm: 4px;
    --nx-radius-md: 6px;
    --nx-radius-lg: 8px;
    --nx-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
    --nx-page-x: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--nx-text);
    background: var(--nx-bg);
    font-family: "Geist", "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(255 255 255 / 0.92);
    border-bottom: 1px solid var(--nx-border-subtle);
    backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 0 var(--nx-page-x);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 174px;
    min-width: 174px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--nx-radius-md);
    color: var(--nx-text-soft);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 140ms ease-out, color 140ms ease-out;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--nx-text);
    background: var(--nx-bg);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-md);
    background: var(--nx-surface);
    color: var(--nx-text);
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 140ms ease-out, opacity 140ms ease-out;
}

.nav-toggle.active span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

.hero {
    background: var(--nx-surface);
    border-bottom: 1px solid var(--nx-border-subtle);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 56px;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 88px var(--nx-page-x) 76px;
}

.hero-copy {
    align-self: center;
    max-width: 690px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--nx-text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 18px;
    text-transform: uppercase;
}

.eyebrow-inverse {
    color: rgb(255 255 255 / 0.62);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: 56px;
    font-weight: 690;
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: 34px;
    font-weight: 670;
    line-height: 1.14;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 670;
    line-height: 26px;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 640px;
    margin-bottom: 28px;
    color: var(--nx-text-soft);
    font-size: 16px;
    line-height: 27px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--nx-radius-md);
    font-size: 13px;
    font-weight: 650;
    line-height: 18px;
    text-decoration: none;
    transition: background 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}

.button-primary {
    background: var(--nx-primary);
    color: var(--nx-primary-foreground);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #171717;
    outline: none;
}

.button-secondary {
    background: var(--nx-surface);
    border-color: var(--nx-border);
    color: var(--nx-text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--nx-surface-muted);
    outline: none;
}

.signal-panel {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background: var(--nx-surface-muted);
    color: var(--nx-text);
    border: 1px solid var(--nx-border-subtle);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-sm);
}

.signal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 16px;
    border-bottom: 1px solid var(--nx-border-subtle);
    color: var(--nx-text-soft);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.signal-header img {
    width: 34px;
    height: 34px;
    padding: 7px;
    background: var(--nx-primary);
    border-radius: var(--nx-radius-md);
}

.signal-list {
    display: grid;
    flex: 1;
    margin: 0;
}

.signal-list div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border-bottom: 1px solid var(--nx-border-subtle);
}

.signal-list div:last-child {
    border-bottom: 0;
}

.signal-list dt {
    color: var(--nx-text-muted);
    font-variant-numeric: tabular-nums;
}

.signal-list dd {
    margin: 0;
    color: var(--nx-text);
    font-size: 15px;
    font-weight: 620;
    line-height: 23px;
}

.section {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 68px var(--nx-page-x);
}

.section-muted {
    width: 100%;
    background: var(--nx-bg);
}

.section-muted > * {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    max-width: 690px;
    margin-bottom: 30px;
}

.section-header h2 {
    margin-bottom: 0;
}

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

.work-card {
    min-height: 230px;
    padding: 24px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border-subtle);
    border-radius: var(--nx-radius-lg);
}

.work-card span {
    display: block;
    margin-bottom: 34px;
    color: var(--nx-text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 18px;
    text-transform: uppercase;
}

.work-card p,
.service-row p,
.method-layout > div > p,
.contact-inner p {
    margin-bottom: 0;
    color: var(--nx-text-soft);
}

.industries .section-header {
    max-width: 760px;
}

.industries .section-header p:last-child {
    margin-bottom: 0;
    color: var(--nx-text-soft);
    font-size: 16px;
    line-height: 26px;
}

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

.industry-grid span {
    display: flex;
    align-items: center;
    min-height: 74px;
    padding: 18px 20px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border-subtle);
    border-radius: var(--nx-radius-lg);
    color: var(--nx-text);
    font-size: 15px;
    font-weight: 650;
    line-height: 22px;
}

.service-table {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border-subtle);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
}

.service-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    padding: 26px 28px;
    border-bottom: 1px solid var(--nx-border-subtle);
}

.service-row:last-child {
    border-bottom: 0;
}

.service-index {
    color: var(--nx-text-muted);
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.section-dark {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--nx-primary);
    color: var(--nx-primary-foreground);
}

.method-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: 56px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 76px var(--nx-page-x);
}

.method-layout > div > p {
    max-width: 610px;
    color: rgb(255 255 255 / 0.68);
}

.method-list {
    display: grid;
    gap: 1px;
    align-self: start;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
}

.method-list li {
    padding: 22px;
    background: #0a0a0a;
}

.method-list span {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 670;
}

.method-list p {
    margin-bottom: 0;
    color: rgb(255 255 255 / 0.68);
}

.careers {
    background: var(--nx-bg);
}

.careers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.careers .section-header {
    margin-bottom: 0;
}

.careers .section-header p:last-child {
    max-width: 560px;
    margin-bottom: 0;
    color: var(--nx-text-soft);
    font-size: 16px;
    line-height: 26px;
}

.careers-status {
    padding: 24px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border-subtle);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-sm);
}

.careers-status span {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 670;
}

.careers-status p {
    margin-bottom: 0;
    color: var(--nx-text-soft);
}

.contact {
    background: var(--nx-surface);
}

.contact-inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 76px var(--nx-page-x);
}

.contact-logo {
    width: 220px;
}

.contact-inner p {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 26px;
}

.contact-inner .eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 18px;
}

.footer {
    padding: 24px var(--nx-page-x);
    background: var(--nx-primary);
    color: rgb(255 255 255 / 0.68);
    text-align: center;
}

.footer-cross {
    display: inline-block;
    margin-bottom: 14px;
    color: rgb(255 255 255 / 0.82);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgb(255 255 255 / 0.28);
    padding-bottom: 3px;
    transition: color 180ms ease, border-color 180ms ease;
}

.footer-cross:hover {
    color: #fff;
    border-color: #fff;
}

.footer p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 900px) {
    :root {
        --nx-page-x: 18px;
    }

    .hero-grid,
    .method-layout,
    .careers-layout,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 32px;
        padding-top: 72px;
    }

    .signal-panel {
        min-height: auto;
    }

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

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

    .work-card {
        min-height: auto;
    }

    .work-card span {
        margin-bottom: 28px;
    }

    .contact-inner {
        gap: 24px;
    }

    h1 {
        font-size: 46px;
    }

    h2 {
        font-size: 30px;
    }
}

@media (max-width: 720px) {
    .nav {
        min-height: 58px;
    }

    .brand {
        width: 152px;
        min-width: 152px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 58px;
        right: 0;
        left: 0;
        display: none;
        padding: 8px var(--nx-page-x) 18px;
        background: var(--nx-surface);
        border-bottom: 1px solid var(--nx-border-subtle);
    }

    .nav-menu.active {
        display: grid;
        gap: 4px;
    }

    .nav-menu a {
        padding: 11px 8px;
    }

    .hero-grid {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    h2 {
        font-size: 27px;
    }

    .hero-lede {
        font-size: 16px;
        line-height: 26px;
    }

    .button {
        width: 100%;
    }

    .section,
    .method-layout,
    .contact-inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 22px;
    }

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

    .signal-list div {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }

    .signal-list dd {
        font-size: 16px;
        line-height: 26px;
    }

    .contact-logo {
        width: 178px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
