:root {
    color-scheme: light;
    --brand-dark: #060b16;
    --brand-accent: #1a94ff;
    --brand-muted: #5c657a;
    --shell-max: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--brand-dark);
    background: #f5f7fb;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

.shell {
    width: min(100%, var(--shell-max));
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    padding: .5rem 1rem;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 2px 10px rgba(6, 11, 22, 0.2);
    transition: transform 0.2s ease;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(245, 247, 251, 0.9);
    border-bottom: 1px solid rgba(6, 11, 22, 0.08);
    backdrop-filter: blur(12px);
    z-index: 12;
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--brand-dark);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--brand-dark);
    font-weight: 500;
}

.site-nav a[aria-current="page"] {
    color: var(--brand-accent);
}

.site-main {
    padding: 3rem 0 4rem;
}

.section {
    margin-bottom: 3rem;
}

.hero {
    padding: 3rem;
    background: linear-gradient(135deg, #0b172d, #0f264f);
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 40px 80px rgba(6, 11, 22, 0.3);
    display: grid;
    gap: 1.5rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 10px 20px rgba(6, 11, 22, 0.25);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

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

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 40px rgba(6, 11, 22, 0.08);
}

.pager {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.pager li {
    list-style: none;
}

.pager a {
    display: inline-flex;
}

.card h3 {
    margin-top: 0;
    margin-bottom: .6rem;
}

.eyebrow {
    font-size: .72rem;
    letter-spacing: .2em;
    color: var(--brand-muted);
    text-transform: uppercase;
    margin-bottom: .4rem;
    display: block;
}

.projects-grid .project-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.project-card a {
    font-weight: 600;
}

.project-cta {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.project-body {
    margin-top: 1rem;
}

.stat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.stat {
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(6, 11, 22, 0.06);
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
}

form.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-control {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: .8rem;
    border: 1px solid rgba(6, 11, 22, 0.15);
    font-size: 1rem;
    background: #fff;
}

.form-control:focus {
    outline: 3px solid rgba(26, 148, 255, 0.35);
    border-color: var(--brand-accent);
}

.form-field-hidden {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.site-footer {
    padding: 2rem 0;
    background: #0b172d;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
    color: #fff;
    font-weight: 500;
}

.site-footer .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.alert {
    border-radius: .8rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #e1f8ec;
    color: #0d6a40;
}

.alert-info {
    background: #e4f0ff;
    color: #0b3d91;
}

.alert-warning {
    background: #fff5e0;
    color: #8a5800;
}

.alert-danger,
.alert-error {
    background: #fdeceb;
    color: #7a1812;
}

.legal-copy {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(6, 11, 22, 0.08);
}

.legal-copy h2 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(6, 11, 22, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem;
    }

    .site-main {
        padding-top: 2rem;
    }

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