:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #101010;
    --surface-strong: #1a1a1a;
    --text: #fff;
    --muted: #b8b8b8;
    --line: #707070;
    --line-soft: #242424;
    --accent: #fff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 28vw), radial-gradient(circle at 90% 16%, rgba(255, 255, 255, 0.045), transparent 24vw), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) center / 96px 96px, var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
}

a {
    color: inherit;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
}

.brand {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    color: var(--muted);
    font-size: 0.94rem;
}

    .nav-links a {
        text-decoration: none;
        border-bottom: 1px solid transparent;
    }

        .nav-links a:hover {
            color: var(--text);
            border-bottom-color: var(--accent);
        }

    .nav-links .language-link {
        margin-left: -12px;
        min-width: 34px;
        padding: 3px 8px;
        border: 1px solid var(--line-soft);
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.4;
        text-align: center;
        text-transform: uppercase;
    }

        .nav-links .language-link:hover {
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.08);
        }

        .nav-links .language-link[aria-current="page"] {
            border-color: var(--accent);
            background: var(--accent);
            color: var(--bg);
        }

.hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 54px 0 84px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 860px;
    margin-bottom: 28px;
    font-size: clamp(3rem, 7.5vw, 6.8rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

    h1 span {
        display: block;
        color: var(--muted);
    }

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
    background: transparent;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

    .button:hover {
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

    .button.primary {
        border-color: var(--accent);
        background: var(--accent);
        color: var(--bg);
    }

        .button.primary:hover {
            background: #dcdcdc;
            color: #000;
        }

section {
    padding: 82px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.section-heading p,
.text-block p {
    color: var(--muted);
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.service-card,
.project-card,
.text-block {
    border: 1px solid var(--line-soft);
    border-radius: 2px;
    background: linear-gradient(145deg, var(--surface), #080808);
    box-shadow: var(--shadow);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, filter 180ms ease;
}

    .service-card:nth-child(odd),
    .project-card:nth-child(odd),
    .text-block:nth-child(odd) {
        background: transparent;
    }

.service-card {
    min-height: 210px;
    padding: 24px;
    box-shadow: none;
}

    .service-card:nth-child(1),
    .service-card:nth-child(4) {
        grid-column: span 2;
    }

    .service-card:nth-child(5) {
        grid-column: span 2;
    }

    .service-card strong {
        display: block;
        margin-bottom: 42px;
        color: var(--muted);
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .service-card p {
        margin-bottom: 0;
        font-size: 1.02rem;
        line-height: 1.45;
    }

.two-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.text-block {
    padding: clamp(24px, 4vw, 38px);
    box-shadow: none;
}

    .text-block h3 {
        margin-bottom: 14px;
        font-size: 1.35rem;
        letter-spacing: -0.03em;
    }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 1px;
    align-items: stretch;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 42px;
    grid-column: span 4;
    min-height: 280px;
    padding: clamp(24px, 3vw, 34px);
    box-shadow: none;
}

    .service-card:hover,
    .project-card:hover,
    .text-block:hover,
    .service-card:active,
    .project-card:active,
    .text-block:active {
        border-color: var(--article-pop-color, var(--accent));
        background: var(--article-pop-color, var(--accent));
        color: var(--article-pop-text, #000);
    }

        .service-card:hover strong,
        .service-card:hover p,
        .project-card:hover p,
        .project-card:hover .project-location,
        .project-card:hover .project-location::before,
        .text-block:hover p,
        .service-card:active strong,
        .service-card:active p,
        .project-card:active p,
        .project-card:active .project-location,
        .project-card:active .project-location::before,
        .text-block:active p {
            color: var(--article-pop-text, #000);
        }

.service-card:hover,
.text-block:hover {
    transform: translateY(-2px);
}

.service-card:active,
.project-card:active,
.text-block:active {
    transform: translateY(1px);
    filter: saturate(1.15) brightness(0.92);
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-card:nth-child(1),
.project-card:nth-child(5) {
    grid-column: span 7;
    min-height: 360px;
}

.project-card:nth-child(4) {
    grid-column: span 5;
    min-height: 360px;
}

.project-card:nth-child(8) {
    grid-column: span 5;
}

.project-card:nth-child(2),
.project-card:nth-child(3),
.project-card:nth-child(7),
.project-card:nth-child(9) {
    grid-column: span 3;
}

.project-card:nth-child(6) {
    grid-column: span 4;
}

.project-card h3 {
    margin-bottom: 0;
    font-size: clamp(1.32rem, 2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.project-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.project-heading {
    display: grid;
    gap: 12px;
}

.project-details {
    display: grid;
    gap: 12px;
    max-width: 54ch;
}

.project-location {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

    .project-location::before {
        content: "— ";
        color: var(--accent);
    }

.project-description {
    font-size: 0.98rem;
    line-height: 1.56;
}

.realisations-video {
    display: block;
    width: 100%;
    margin-top: 16px;
}

.realisations-video-description {
    margin: 34px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.project-card:nth-child(1) .project-description,
.project-card:nth-child(5) .project-description {
    font-size: 1.05rem;
}

.cta {
    margin: 82px 0 34px;
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: linear-gradient(145deg, var(--surface-strong), #050505);
    box-shadow: var(--shadow);
    text-align: left;
}

    .cta h2 {
        margin-bottom: 18px;
    }

    .cta p {
        max-width: 680px;
        margin: 0 0 28px;
        color: var(--muted);
    }

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 0 46px;    
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .service-card:nth-child(n) {
        grid-column: auto;
    }

    .project-card:nth-child(n) {
        grid-column: span 3;
        min-height: 250px;
    }

    .project-card:nth-child(1),
    .project-card:nth-child(4),
    .project-card:nth-child(5) {
        grid-column: span 6;
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 28px, 1120px);
    }

    .nav {
        align-items: center;
    }

    .nav-links {
        display: flex;
        gap: 14px;
    }

        .nav-links a:not(.language-link) {
            display: none;
        }

    section {
        padding: 46px 0;
    }

    .hero {
        gap: 34px;
        padding-bottom: 46px;
    }

    .hero-actions,
    footer {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(n) {
        grid-column: auto;
        min-height: auto;
    }
}
