:root {
    --black: #0d1117;
    --steel: #151c24;
    --panel: #1d2630;
    --panel-2: #222d38;
    --line: #344454;
    --text: #eef3f7;
    --muted: #a8b7c3;
    --amber: #d79b44;
    --cyan: #4db6d0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--black);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

img {
    max-width: 100%;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 28px;
    background: rgba(13, 17, 23, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    color: var(--text);
}

.nav-cta {
    padding: 9px 12px;
    border: 1px solid rgba(215, 155, 68, 0.62);
    border-radius: 4px;
    color: var(--text);
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--black);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(0.75) contrast(1.08);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 17, 23, 0.94), rgba(13, 17, 23, 0.7) 48%, rgba(13, 17, 23, 0.22)),
        linear-gradient(180deg, rgba(13, 17, 23, 0.14), rgba(13, 17, 23, 0.94));
}

.hero-panel {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: 170px 0 150px;
}

.hero h1 {
    margin: 0;
    max-width: 860px;
    color: var(--text);
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 24px 0 32px;
    color: var(--muted);
    font-size: 19px;
}

.hero-status {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(21, 28, 36, 0.86);
    backdrop-filter: blur(12px);
}

.hero-status div {
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-status div:last-child {
    border-right: 0;
}

.hero-status span {
    color: var(--amber);
    font-size: 24px;
    font-weight: 900;
}

.hero-status p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 4px;
    background: var(--amber);
    color: #12161c;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.section {
    padding: 86px 0;
}

.service-shell,
.process-section {
    background: var(--steel);
}

.fit-section { background: var(--panel-2); }
.fit-layout { display:grid; grid-template-columns:.82fr 1.18fr; gap:64px; align-items:start; }
.fit-layout h2 { margin:0; font-size:clamp(30px,4vw,50px); line-height:1.05; }
.fit-layout > div > p:last-child { color:var(--muted); font-size:17px; }
.fit-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.fit-cards article { padding:28px; background:var(--panel); }
.fit-cards article + article { border-left:1px solid var(--line); }
.fit-cards h3 { margin:0 0 20px; font-size:20px; }
.fit-cards ul { margin:0; padding:0; }
.fit-cards li { position:relative; list-style:none; padding:12px 0 12px 24px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.fit-cards li::before { content:"✓"; position:absolute; left:0; color:var(--cyan); font-weight:900; }
.fit-cards .muted-card { background:#182129; }
.fit-cards .muted-card li::before { content:"—"; color:var(--amber); }

.dashboard-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 34px;
}

.dashboard-heading h2,
.process-layout h2,
.about-grid h2,
.contact-grid h2 {
    max-width: 850px;
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: 0;
}

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

.service-grid article {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, var(--panel), #18212a);
}

.service-grid span,
.process span {
    color: var(--cyan);
    font-weight: 900;
}

.service-grid h3,
.project-card h3,
.process h3,
.panel h3 {
    margin: 12px 0 10px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.18;
}

.service-grid p,
.project-card p,
.process p,
.about-grid p,
.contact-grid p,
.panel li {
    color: var(--muted);
}

.projects {
    background: var(--black);
}

.project-board {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
    gap: 14px;
}

.project-card {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
}

.project-card:first-child {
    grid-row: span 2;
}

.project-card img {
    width: 100%;
    aspect-ratio: 1.25;
    display: block;
    object-fit: contain;
    padding: 18px;
    background: #f6f8fa;
}

.project-card:first-child img {
    aspect-ratio: 1.1;
}

.project-copy {
    padding: 22px;
}

.project-card dl {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.project-card dt {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.project-card dd {
    margin: 6px 0 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 18px;
    color: var(--amber);
    font-weight: 900;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus {
    color: var(--white);
}

.case-hero {
    padding: 170px 0 84px;
    background:
        radial-gradient(circle at 82% 22%, rgba(77, 182, 208, 0.15), transparent 30%),
        linear-gradient(135deg, var(--steel), var(--black));
}

.case-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.case-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
}

.case-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.case-hero-image {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6f8fa;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.case-hero-image img {
    width: 100%;
    display: block;
    padding: 30px;
}

.case-stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.case-stats .wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-stats article {
    display: grid;
    gap: 4px;
    padding: 28px 24px;
    border-right: 1px solid var(--line);
}

.case-stats article:first-child {
    border-left: 1px solid var(--line);
}

.case-stats strong {
    color: var(--amber);
    font-size: 30px;
}

.case-stats span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.case-body {
    background: var(--black);
}

.case-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
    gap: 72px;
    align-items: start;
}

.case-layout aside {
    position: sticky;
    top: 110px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}

.case-facts {
    margin: 0;
}

.case-facts dt {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.case-facts dd {
    margin: 6px 0 0;
    color: var(--muted);
}

.case-story {
    display: grid;
    gap: 0;
}

.case-story section {
    padding: 0 0 54px;
    margin-bottom: 54px;
    border-bottom: 1px solid var(--line);
}

.case-story h2,
.case-cta h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.case-story p:not(.eyebrow) {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
}

.case-story .case-outcome {
    padding: 40px;
    border: 1px solid rgba(215, 155, 68, 0.48);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(215, 155, 68, 0.11), var(--panel));
}

.case-cta {
    background: var(--steel);
}

.case-cta .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.process-layout,
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 42px;
    align-items: start;
}

.process {
    display: grid;
    gap: 12px;
}

.process article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 94px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-2);
}

.about {
    background: #121820;
}

.panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}

.panel ul {
    margin: 18px 0 0;
    padding-left: 18px;
}

.contact {
    background: #e9eef2;
    color: #15202a;
}

.contact .eyebrow {
    color: #9a611e;
}

.contact h2,
.contact p:not(.eyebrow) {
    color: #15202a;
}

.lead-form {
    padding: 28px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid #cbd5dd;
    box-shadow: 0 22px 54px rgba(13, 17, 23, 0.14);
}

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

.lead-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #15202a;
    font-size: 14px;
    font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c4d0d9;
    border-radius: 4px;
    padding: 10px 12px;
    color: #15202a;
    background: var(--white);
    font: inherit;
}

.lead-form textarea {
    resize: vertical;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 4px;
    background: #e7f6ee;
    color: #145c36;
    font-weight: 900;
}

.notice-error {
    background: #fff0ed;
    color: #8c2f22;
}

.lead-form .button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.form-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-footer {
    padding: 30px 0;
    color: var(--muted);
    background: #080b0f;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.site-footer strong {
    color: var(--text);
}

@media (max-width: 1040px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
    }

    .service-grid,
    .project-board,
    .process-layout,
    .about-grid,
    .contact-grid,
    .case-hero-grid,
    .case-layout {
        grid-template-columns: 1fr;
    }

    .case-layout aside {
        position: static;
    }

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

    .case-stats article:nth-child(odd) {
        border-left: 1px solid var(--line);
    }

    .case-cta .wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .fit-layout,
    .fit-cards {
        grid-template-columns: 1fr;
    }

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

    .project-card:first-child {
        grid-row: auto;
    }

    .hero-status {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 700px) {
    .wrap,
    .hero-panel {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        min-height: 760px;
    }

    .hero-panel {
        padding: 172px 0 90px;
    }

    .hero-status,
    .form-grid,
    .site-footer .wrap {
        grid-template-columns: 1fr;
    }

    .hero-status-band {
        padding: 14px;
        background: var(--black);
    }

    .hero-status {
        position: relative;
        inset: auto;
        width: 100%;
    }

    .hero-status div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-status div:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 58px 0;
    }

    .site-footer .wrap {
        display: grid;
    }

    .case-hero {
        padding-top: 180px;
    }

    .case-stats .wrap {
        grid-template-columns: 1fr;
    }

    .case-stats article {
        border-left: 1px solid var(--line);
    }

    .case-story .case-outcome {
        padding: 26px;
    }
}
