:root {
    --bg-dark: #080808;
    --bg-panel: #111315;
    --bg-panel-strong: #181b1f;
    --text-light: #f7f3ec;
    --text-muted: #b6b8bc;
    --text-soft: #d9d7d2;
    --accent-amber: #d9a441;
    --accent-cool: #6bb6c9;
    --accent-red: #b94d3f;
    --border-color: #2a2e32;
    --border-strong: #3b4146;
    --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

body.nav-open {
    overflow: hidden;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    width: min(1240px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: var(--text-light);
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo span {
    color: var(--text-muted);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.nav-links > a:not(.nav-action) {
    color: var(--text-muted);
    transition: color 180ms ease;
}

.nav-links > a:not(.nav-action):hover,
.nav-links > a:not(.nav-action):focus-visible {
    color: var(--text-light);
}

.nav-action {
    margin-left: 2px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-panel);
    color: var(--text-light);
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn-primary,
.btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    cursor: pointer;
}

.btn-primary {
    border: 1px solid var(--accent-amber);
    background: var(--accent-amber);
    color: #14110b;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
    transform: translateY(-1px);
}

.btn-primary--light {
    border-color: var(--text-light);
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-secondary {
    border: 1px solid var(--border-strong);
    background: rgba(17, 19, 21, 0.72);
    color: var(--text-light);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--accent-cool);
}

.hero {
    min-height: 84vh;
    display: grid;
    align-content: end;
    gap: 56px;
    padding: 116px 24px 34px;
    border-bottom: 1px solid var(--border-color);
    background-image:
        linear-gradient(90deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.68) 48%, rgba(8, 8, 8, 0.42) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, 0.90) 0%, rgba(8, 8, 8, 0.04) 42%),
        url("/assets/img/hero-car.jpg");
    background-position: center;
    background-size: cover;
}

.hero__content,
.hero__panel,
.section,
.split-section,
.review-section,
.cta-section,
.site-footer,
.proof-strip__inner {
    width: min(1240px, 100%);
    margin-inline: auto;
}

.hero__content {
    max-width: 860px;
    margin-inline: auto auto;
}

.eyebrow,
.card-kicker {
    color: var(--accent-amber);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin-top: 18px;
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 0.98;
}

.hero__lede {
    max-width: 720px;
    margin-top: 28px;
    color: var(--text-soft);
    font-size: 1.16rem;
}

.hero__actions,
.cta-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-strong);
}

.hero__panel article {
    min-height: 150px;
    padding: 24px;
    background: rgba(12, 13, 14, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero__panel span,
.metric-row span,
.proof-strip p {
    color: var(--accent-cool);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero__panel strong {
    display: block;
    margin-top: 12px;
    font-size: 1.05rem;
}

.hero__panel p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.proof-strip {
    border-bottom: 1px solid var(--border-color);
    background: #0d0e10;
}

.proof-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 24px;
}

.proof-strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 28px;
    color: var(--text-soft);
    list-style: none;
}

.section,
.review-section {
    padding: 94px 24px;
}

.section--services {
    padding-bottom: 102px;
}

.section__header {
    max-width: 720px;
}

.section__header--wide {
    max-width: 920px;
}

.section__header h2,
.split-section__content h2,
.review-section h2,
.cta-section h2 {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 2.75rem;
    line-height: 1.08;
}

.section__header p:not(.eyebrow),
.split-section__content p,
.cta-section p {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 1.04rem;
}

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

.service-card,
.project-card,
.quote-grid figure,
.triage-form {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-panel);
}

.service-card,
.project-card {
    min-height: 100%;
    padding: 26px;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.service-card:hover,
.project-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-panel-strong);
    transform: translateY(-2px);
}

.service-card h3,
.project-card h3 {
    margin-top: 14px;
    font-size: 1.25rem;
    line-height: 1.18;
}

.service-card p:not(.card-kicker),
.project-card p:not(.card-kicker) {
    margin-top: 14px;
    color: var(--text-muted);
}

.service-card ul {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-soft);
    list-style: none;
    font-size: 0.94rem;
}

.service-card li {
    display: flex;
    gap: 9px;
}

.service-card li::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 9px;
    border-radius: 2px;
    background: var(--accent-amber);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    padding: 96px 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.split-section__media {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-panel);
    aspect-ratio: 5 / 4;
}

.split-section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--border-color);
}

.metric-row div {
    padding: 20px;
    background: var(--bg-panel);
}

.metric-row strong {
    display: block;
    color: var(--text-light);
    font-size: 1rem;
}

.metric-row span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.section--work {
    background:
        linear-gradient(180deg, rgba(105, 182, 201, 0.07) 0%, rgba(8, 8, 8, 0) 34%),
        var(--bg-dark);
}

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

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card a {
    width: fit-content;
    margin-top: auto;
    padding-top: 28px;
    color: var(--accent-cool);
    font-weight: 800;
}

.review-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #0d0e10;
}

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

.quote-grid figure {
    padding: 28px;
}

.quote-grid blockquote {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.35;
}

.quote-grid figcaption {
    margin-top: 20px;
    color: var(--accent-amber);
    font-size: 0.9rem;
    font-weight: 800;
}

.cta-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    padding: 82px 24px;
}

.cta-section > div:first-child {
    max-width: 820px;
}

.cta-section__actions {
    justify-content: flex-end;
    margin-top: 0;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 24px 46px;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    max-width: 420px;
    margin-top: 10px;
    color: var(--text-muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: var(--text-muted);
}

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

.triage-section {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 82px 24px 104px;
}

.triage-intro {
    margin-bottom: 38px;
}

.triage-intro h1 {
    margin-top: 12px;
    font-size: 2.75rem;
    line-height: 1.08;
}

.triage-intro p {
    margin-top: 12px;
    color: var(--text-muted);
}

.triage-form {
    padding: 38px;
}

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

.form-section-title {
    margin: 36px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 1.1rem;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #0b0c0d;
    color: var(--text-light);
    padding: 14px;
    transition: border-color 180ms ease, background 180ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-amber);
    background: #0f1113;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 26px;
}

.msg {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
}

.msg.success {
    color: #56d88f;
    background: rgba(86, 216, 143, 0.11);
    border-color: rgba(86, 216, 143, 0.28);
}

.msg.error {
    color: #ff7b73;
    background: rgba(185, 77, 63, 0.13);
    border-color: rgba(185, 77, 63, 0.35);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
}

.error-page__content {
    max-width: 620px;
}

.error-page h1 {
    margin-top: 12px;
    font-size: 3rem;
    line-height: 1.05;
}

.error-page p:not(.eyebrow) {
    margin: 18px 0 34px;
    color: var(--text-muted);
    font-size: 1.12rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

@media screen and (max-width: 1100px) {
    .service-grid,
    .project-grid,
    .quote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-grid .service-card:last-child {
        grid-column: span 2;
    }

    .cta-section {
        grid-template-columns: 1fr;
    }

    .cta-section__actions {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 900px) {
    .nav-container {
        width: min(100% - 32px, 1240px);
    }

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

    .nav-links {
        position: fixed;
        inset: 76px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: var(--bg-panel);
        box-shadow: var(--shadow-strong);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 17px 18px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .nav-links .nav-action {
        margin: 10px;
    }

    .hero {
        min-height: auto;
        padding-top: 96px;
        background-position: 58% center;
    }

    .hero h1 {
        font-size: 3.3rem;
        line-height: 1.02;
    }

    .hero__panel,
    .split-section,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .split-section {
        gap: 34px;
    }

    .section__header h2,
    .split-section__content h2,
    .review-section h2,
    .cta-section h2,
    .triage-intro h1 {
        font-size: 2.25rem;
    }

    .proof-strip__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .proof-strip ul {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 680px) {
    .nav-container {
        min-height: 68px;
    }

    .nav-links {
        inset: 68px 16px auto 16px;
    }

    .logo {
        font-size: 0.92rem;
    }

    .hero {
        gap: 36px;
        padding: 84px 18px 24px;
        background-position: 64% center;
    }

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

    .hero__lede {
        font-size: 1rem;
    }

    .hero__actions,
    .cta-section__actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 46px;
        padding-inline: 16px;
    }

    .hero__panel article {
        min-height: auto;
        padding: 20px;
    }

    .proof-strip__inner,
    .section,
    .split-section,
    .review-section,
    .cta-section,
    .site-footer,
    .triage-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section,
    .review-section {
        padding-top: 70px;
        padding-bottom: 72px;
    }

    .split-section,
    .cta-section {
        padding-top: 68px;
        padding-bottom: 70px;
    }

    .service-grid,
    .project-grid,
    .quote-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .service-card,
    .project-card,
    .quote-grid figure,
    .triage-form {
        padding: 22px;
    }

    .section__header h2,
    .split-section__content h2,
    .review-section h2,
    .cta-section h2,
    .triage-intro h1 {
        font-size: 1.95rem;
    }

    .quote-grid blockquote {
        font-size: 1.08rem;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}
