:root {
    --blue: #16478f;
    --navy: #0b2450;
    --red: #ed1c24;
    --ink: #101828;
    --muted: #667085;
    --line: #e5e7eb;
    --mist: #eaf5f8;
    --soft: #f7f9fc;
    --white: #ffffff;
    --success: #24a148;
    --warning: #e7ed12;
    --progress: #2f73df;
    --shadow: 0 18px 60px rgba(16, 24, 40, .12);
    --header-height: 154px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-shell {
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid rgba(22, 71, 143, .08);
    backdrop-filter: blur(16px);
}

.site-header .container {
    width: min(100% - 72px, 1840px);
}

.nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: clamp(24px, 4vw, 68px);
}

.brand {
    display: flex;
    align-items: center;
    width: clamp(190px, 17vw, 318px);
}

.brand img {
    width: 100%;
    height: auto;
}

.nav-panel {
    display: grid;
    align-content: center;
    justify-content: flex-end;
    justify-items: end;
    gap: 24px;
    min-width: 0;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.3vw, 40px);
}

.nav-links {
    order: 2;
}

.nav-actions {
    order: 1;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-links a {
    color: #050505;
    font-size: 31px;
    font-weight: 560;
    line-height: 1;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--blue);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(22, 71, 143, .16);
    border-radius: 999px;
    color: var(--navy);
    background: var(--white);
    font-weight: 850;
}

.nav-toggle-lines {
    display: grid;
    gap: 4px;
}

.nav-toggle-lines span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle.is-open .nav-toggle-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-logout-form {
    margin: 0;
}

.site-header .btn {
    min-height: 58px;
    padding-inline: 28px;
    font-size: 23px;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 780;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 30px rgba(237, 28, 36, .18);
}

.btn-secondary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 30px rgba(22, 71, 143, .16);
}

.btn-light {
    color: var(--navy);
    background: var(--white);
}

.btn-outline {
    color: var(--blue);
    border: 1px solid rgba(22, 71, 143, .24);
    background: var(--white);
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: calc(100svh - var(--header-height));
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(6, 22, 52, .88), rgba(6, 22, 52, .5) 44%, rgba(6, 22, 52, .12)),
        linear-gradient(0deg, rgba(6, 22, 52, .72), rgba(6, 22, 52, 0) 48%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    padding: 86px 0 72px;
}

.kicker {
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero h1 {
    max-width: 780px;
    margin: 16px 0 18px;
    font-size: 88px;
    line-height: .95;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .88);
    font-size: 22px;
}

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

.section {
    padding: 88px 0;
}

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

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

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

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
    gap: 48px;
    align-items: end;
    margin-bottom: 42px;
}

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1;
    letter-spacing: 0;
}

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

.section-blue .section-head p,
.section-red .section-head p {
    color: rgba(255, 255, 255, .82);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: 30px 24px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--blue);
    font-size: 48px;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 58px;
    align-items: center;
}

.split-media {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.split-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.prose h2,
.prose h3 {
    margin: 0 0 18px;
    color: var(--navy);
    line-height: 1.06;
}

.prose h2 {
    font-size: 52px;
}

.prose h3 {
    font-size: 28px;
}

.prose p {
    margin: 0 0 18px;
    color: #344054;
    font-size: 17px;
}

.service-list {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, .18);
}

.service-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
}

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

.service-row img {
    width: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.service-row h3 {
    margin: 0 0 8px;
    font-size: 26px;
}

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

.project-grid,
.job-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-showcase-list {
    display: grid;
    gap: 48px;
}

.project-showcase {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: stretch;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.project-showcase:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.project-showcase:nth-child(even) {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
}

.project-showcase:nth-child(even) .project-showcase-media {
    order: 2;
}

.project-showcase-media {
    min-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
}

.project-showcase-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.project-showcase-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.project-showcase h3 {
    margin: 10px 0 14px;
    color: var(--navy);
    font-size: 38px;
    line-height: 1.04;
}

.project-summary {
    margin: 0 0 16px;
    color: #344054;
    font-size: 18px;
    font-weight: 750;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--blue);
    background: var(--mist);
    font-size: 13px;
    font-weight: 850;
}

.project-description {
    display: grid;
    gap: 12px;
}

.project-description p {
    margin: 0;
}

.tile {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tile-body {
    padding: 22px;
}

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

.tile p {
    margin: 0 0 18px;
    color: var(--muted);
}

.link-action {
    color: var(--red);
    font-weight: 900;
}

.cta-band {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}

.cta-band .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
    padding: 64px 0;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: 52px;
    line-height: 1;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 18px;
}

.page-hero {
    padding: 84px 0 42px;
    background: var(--soft);
}

.page-title {
    width: min(860px, 100%);
}

.page-title-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    width: min(1120px, calc(100% - 40px));
}

.page-title-actions form {
    margin: 0;
    flex: 0 0 auto;
}

.breadcrumbs {
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.form-surface {
    padding: 42px;
    border-radius: 8px;
    background: var(--mist);
}

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

.field {
    display: grid;
    gap: 8px;
}

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

.field label {
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: var(--white);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22, 71, 143, .12);
}

.wizard {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
}

.wizard-steps {
    display: grid;
    gap: 14px;
    align-self: start;
    padding: 28px;
    border-radius: 8px;
    background: var(--white);
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

.wizard-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef2f7;
}

.wizard-step.active {
    color: var(--blue);
}

.wizard-step.active span {
    color: var(--white);
    background: var(--blue);
}

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

.choice {
    position: relative;
    display: block;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 18px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--white);
    font-weight: 850;
}

.choice input:checked + span {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22, 71, 143, .1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.wizard-panel[hidden] {
    display: none;
}

.alert {
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 750;
}

.alert-success {
    color: #14532d;
    background: #dcfce7;
}

.alert-error {
    color: #7f1d1d;
    background: #fee2e2;
}

.dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.panel-header,
.panel-body {
    padding: 24px;
}

.panel-header {
    border-bottom: 1px solid var(--line);
}

.request-table {
    width: 100%;
    border-collapse: collapse;
}

.request-table th,
.request-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.request-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}

.status::before {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    content: "";
    background: var(--warning);
}

.status-in_progress::before {
    background: var(--progress);
}

.status-completed::before {
    background: var(--success);
}

.site-footer {
    color: var(--white);
    background: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 42px;
    padding: 52px 0;
}

.site-footer img {
    width: 130px;
    margin-bottom: 12px;
}

.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, .78);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.sr-only-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.reveal {
    animation: reveal .7s ease both;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1320px) {
    .site-header .container {
        width: min(100% - 48px, 1440px);
    }

    .brand {
        width: clamp(180px, 20vw, 270px);
    }

    .nav-links a {
        font-size: 27px;
    }

    .site-header .btn {
        min-height: 52px;
        padding-inline: 22px;
        font-size: 20px;
    }
}

@media (max-width: 1180px) {
    :root {
        --header-height: 84px;
    }

    .site-header .container {
        width: min(100% - 28px, 1120px);
    }

    .nav {
        position: relative;
        display: flex;
        min-height: var(--header-height);
        padding: 8px 0;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand {
        min-width: 0;
        width: clamp(124px, 28vw, 160px);
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-panel {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        align-items: stretch;
        justify-content: stretch;
        justify-items: stretch;
        gap: 14px;
        padding: 14px;
        border: 1px solid rgba(22, 71, 143, .14);
        border-radius: 8px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 44px rgba(16, 24, 40, .12);
    }

    .nav-panel.is-open {
        display: flex;
        flex-direction: column;
        animation: reveal .18s ease both;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        align-items: stretch;
        gap: 8px;
        overflow: visible;
        padding: 0;
    }

    .nav-links {
        order: 1;
        flex-direction: column;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 750;
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
        background: var(--soft);
    }

    .nav-actions {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-actions .btn,
    .nav-logout-form .btn {
        width: 100%;
        min-height: 46px;
        min-width: 0;
        padding-inline: 12px;
        border-radius: 8px;
        font-size: 15px;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 82px;
    }

    .site-header .container {
        width: min(100% - 28px, 1120px);
    }

    .nav {
        position: relative;
        display: flex;
        min-height: var(--header-height);
        padding: 8px 0;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand {
        min-width: 0;
        width: clamp(118px, 32vw, 154px);
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-panel {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        align-items: stretch;
        justify-content: stretch;
        justify-items: stretch;
        gap: 14px;
        padding: 14px;
        border: 1px solid rgba(22, 71, 143, .14);
        border-radius: 8px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 44px rgba(16, 24, 40, .12);
    }

    .nav-panel.is-open {
        display: flex;
        flex-direction: column;
        animation: reveal .18s ease both;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        align-items: stretch;
        gap: 8px;
        overflow: visible;
        padding: 0;
    }

    .nav-links {
        order: 1;
        flex-direction: column;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 750;
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
        background: var(--soft);
    }

    .nav-actions {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-actions .btn,
    .nav-logout-form .btn {
        width: 100%;
        min-height: 46px;
        min-width: 0;
        padding-inline: 12px;
        border-radius: 8px;
        font-size: 15px;
    }

    .hero {
        min-height: 680px;
    }

    .hero-inner {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero p {
        font-size: 20px;
    }

    .section-head h2,
    .page-title h1 {
        font-size: 44px;
    }

    .prose h2,
    .cta-band h2 {
        font-size: 42px;
    }

    .stat strong {
        font-size: 42px;
    }

    .section-head,
    .split,
    .wizard,
    .dashboard,
    .cta-band .container {
        grid-template-columns: 1fr;
    }

    .stats,
    .project-grid,
    .job-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-showcase,
    .project-showcase:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-showcase:nth-child(even) .project-showcase-media {
        order: 0;
    }

    .project-showcase h3 {
        font-size: 32px;
    }

    .project-showcase-media img {
        min-height: 340px;
    }

    .service-row {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .service-row .btn {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .container,
    .hero-inner {
        width: min(100% - 28px, 1120px);
    }

    .brand img {
        width: 100%;
    }

    .nav-panel {
        padding: 12px;
    }

    .nav-actions {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 620px;
    }

    .hero h1 {
        font-size: 44px;
    }

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

    .section-head h2,
    .page-title h1 {
        font-size: 36px;
    }

    .prose h2,
    .cta-band h2 {
        font-size: 34px;
    }

    .stat strong {
        font-size: 36px;
    }

    .section {
        padding: 64px 0;
    }

    .stats,
    .project-grid,
    .job-grid,
    .article-grid,
    .form-grid,
    .choice-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .service-row {
        grid-template-columns: 1fr;
    }

    .service-row img {
        width: 100%;
    }

    .project-showcase-list {
        gap: 36px;
    }

    .project-showcase {
        padding-bottom: 36px;
    }

    .project-showcase h3 {
        font-size: 28px;
    }

    .project-summary {
        font-size: 17px;
    }

    .project-showcase-media img {
        min-height: 240px;
    }

    .service-row .btn {
        grid-column: auto;
    }

    .form-surface {
        padding: 24px;
    }

    .form-actions,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .page-title-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .page-title-actions form,
    .page-title-actions .btn {
        width: 100%;
    }

    .request-table {
        display: block;
        overflow-x: auto;
    }
}
