/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-greek-ext.woff2") format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-greek.woff2") format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-greek-ext.woff2") format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-greek.woff2") format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-ext.woff2") format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-cyrillic.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-greek-ext.woff2") format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-greek.woff2") format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --bg: #0E0E0C;
    --bg2: #161614;
    --text: #F0EDE6;
    --muted: #6A6860;
    --accent: #C4A97A;
    --border: rgba(240, 237, 230, 0.09);
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden
}

/* ── LANGUAGE ── */


[data-lang] {
    display: none
}

body.lang-en [data-lang="en"] {
    display: revert
}

body.lang-ru [data-lang="ru"] {
    display: revert
}

[data-i] {
    display: none
}

body.lang-en [data-i="en"] {
    display: inline
}

body.lang-ru [data-i="ru"] {
    display: inline
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns:1fr 1fr;
    padding-top: 48px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 72px 56px;
    border-right: 1px solid var(--border);
    position: relative;
}

.hero-tag {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    display: block
}

.hero-count {
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 56px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 3.4vw, 56px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 32px;
}

.hero-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 380px;
    margin-bottom: 56px;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    padding: 16px 36px;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: all 0.3s;
}

.btn-view:hover {
    background: rgba(196, 169, 122, 0.08);
    border-color: var(--text)
}

.btn-view svg {
    transition: transform 0.3s;
    color: var(--accent)
}

.btn-view:hover svg {
    transform: translateX(4px)
}

/* hero right – canvas animation */
.hero-right {
    position: relative;
    overflow: hidden;
    background: #060605;
    min-height: calc(100vh - 64px)
}

#blueprint-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    /* identity filter so the white -> gold tint can interpolate */
    filter: brightness(1) sepia(0) saturate(1) drop-shadow(0 0 0 transparent);
    transition: filter 1.4s ease;
}

@keyframes bpDraw {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

#blueprint-img.drawing {
    animation: bpDraw 2.6s ease-in-out forwards;
}

/* white lines tinted to the gold accent, drop-shadow thickens the contour */
#blueprint-img.gold {
    filter: brightness(0.62) sepia(1) saturate(1.6) drop-shadow(0 0 1px rgba(196, 169, 122, 0.9));
}

#draw-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(196, 169, 122, 0.8);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

@keyframes lineSweep {
    0% {
        left: 0;
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

#draw-line.drawing {
    animation: lineSweep 2.6s ease-in-out forwards;
}

#replay-btn {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 20;
    background: rgba(14, 14, 12, 0.75);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.5s, color 0.2s;
    backdrop-filter: blur(8px);
}

#replay-btn.show {
    opacity: 1
}

#replay-btn:hover {
    color: var(--text)
}

/* ── SERVICES ── */
#services {
    border-top: 1px solid var(--border)
}

.svc-header {
    padding: 64px 56px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.svc-num {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--accent);
    text-transform: uppercase;
    padding-top: 6px
}

.svc-title-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.svc-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 16px;
    padding: 24px 56px 56px;
}

.svc-item {
    padding: 40px 36px 48px;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: background 0.3s;
    background: var(--bg2);
}

.svc-item:last-child {
    border-right: none
}

.svc-item:hover {
    background: rgba(196, 169, 122, 0.04)
}

.svc-n {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    line-height: 1;
}

.svc-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.svc-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
}

/* ── PROJECTS ── */
#projects {
    border-top: 1px solid var(--border)
}

.proj-header {
    padding: 64px 56px 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.proj-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 1
}

.proj-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.filter-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--border)
}

.filter-tab {
    padding: 10px 22px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    border-right: 1px solid var(--border);
    background: transparent;
    border-top: none;
    border-bottom: none;
    border-left: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:last-child {
    border-right: none
}

.filter-tab.active {
    color: var(--bg);
    background: var(--text)
}

.filter-tab:not(.active):hover {
    color: var(--text)
}

/* 3-col project grid matching screenshot */
.proj-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    grid-template-rows:auto auto;
    gap: 16px;
    padding: 24px 56px 56px;
    background: var(--bg);
}

.proj-card {
    background: var(--bg2);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

.proj-thumb-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.proj-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.4s, transform 0.6s;
    display: block;
    filter: grayscale(15%);
}

.proj-card:hover .proj-thumb {
    opacity: 1;
    transform: scale(1.04);
    filter: grayscale(0%);
}

.proj-info {
    padding: 16px 20px 22px;
    border-top: none;
    background: var(--bg2);
}

.proj-info::before {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--accent);
    margin-bottom: 12px;
}

.proj-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.proj-meta {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* blueprint placeholder card */
.proj-bp {
    width: 100%;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
    background: #060605;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-bp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
}

/* ── ABOUT ── */
#about {
    border-top: 1px solid var(--border)
}

.about-top {
    padding: 80px 56px 64px;
    border-bottom: 1px solid var(--border);
}

.about-kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent)
}

.about-big {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.98;
    max-width: 1000px;
    margin-bottom: 0;
}

.about-bottom {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    padding: 56px;
}

.about-body-col {
    padding: 48px 48px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg2);
}

.about-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85
}

.stats-col {
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg2);
}

.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.stat-row:first-child {
    padding-top: 0
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.stat-n {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-l {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--muted);
    text-transform: uppercase;
    text-align: right;
}

/* ── CONTACTS ── */
#contacts {
    border-top: 1px solid var(--border)
}

.contact-head {
    padding: 80px 56px 64px;
    border-bottom: 1px solid var(--border)
}

.contact-head-num {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 16px
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 5.5vw, 88px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

/* 2x3 contact grid matching screenshot */
.contact-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    padding: 56px;
}

.contact-cell {
    padding: 36px 40px 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg2);
    transition: background 0.2s;
}

.contact-cell:hover {
    background: rgba(196, 169, 122, 0.03)
}

.contact-key {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    line-height: 1.2;
    display: block;
    transition: color 0.2s;
}

.contact-val:hover {
    color: var(--accent)
}

.contact-note {
    padding: 32px 56px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-style: italic;
    line-height: 1.7;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted)
}

.footer-r {
    font-size: 11px;
    color: var(--muted);
    opacity: 0.45;
    letter-spacing: 0.06em
}

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

.hero-left > * {
    animation: fadeUp 0.75s ease both
}

.hero-left > *:nth-child(1) {
    animation-delay: 0.08s
}

.hero-left > *:nth-child(2) {
    animation-delay: 0.18s
}

.hero-left > *:nth-child(3) {
    animation-delay: 0.28s
}

.hero-left > *:nth-child(4) {
    animation-delay: 0.38s
}

.hero-left > *:nth-child(5) {
    animation-delay: 0.48s
}

/* Middle card row 1: span 2 rows, taller image */
.proj-card.tall {
    grid-row: span 2;
    align-self: start;
}

.proj-card.tall .proj-thumb-wrap {
    aspect-ratio: 3/4;
    height: auto;
}

.proj-card.tall .proj-bp {
    aspect-ratio: 3/4;
    height: auto;
    min-height: unset;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 48px;
    background: #0E0E0C;
    border-bottom: 1px solid rgba(240, 237, 230, 0.07);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F0EDE6;
    white-space: nowrap;
}

.nav-logo em {
    font-style: normal;
    color: #C4A97A;
    margin: 0 3px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 237, 230, 0.38);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #F0EDE6;
}

.lang-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0;
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.lang-btn span[data-l] {
    padding: 0 5px;
    color: rgba(240, 237, 230, 0.38);
    transition: color 0.2s;
}

.lang-btn span[data-l].active {
    color: #C4A97A;
}

.lang-btn .sep {
    color: rgba(240, 237, 230, 0.2);
    padding: 0 1px;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 1px;
    background: #F0EDE6;
    transition: transform 0.25s, opacity 0.25s;
}

nav.menu-open .nav-burger span:first-child {
    transform: translateY(3px) rotate(45deg);
}

nav.menu-open .nav-burger span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* ── TABLET ── */
@media (max-width: 900px) {
    .svc-grid {
        grid-template-columns:repeat(2, 1fr);
    }

    .proj-grid {
        grid-template-columns:repeat(2, 1fr);
    }

    .proj-card.tall {
        grid-row: auto;
    }

    .proj-card.tall .proj-thumb-wrap, .proj-card.tall .proj-bp {
        aspect-ratio: 4/3;
    }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
    nav {
        padding: 0 18px;
        height: 52px;
    }

    .nav-right {
        gap: 20px;
    }

    .nav-burger {
        display: flex;
    }

    /* Links collapse into a dropdown panel under the fixed nav */
    .nav-links {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #0E0E0C;
        border-bottom: 1px solid rgba(240, 237, 230, 0.07);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    }

    nav.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        font-size: 10.5px;
        letter-spacing: 0.22em;
        padding: 16px 18px;
        border-top: 1px solid rgba(240, 237, 230, 0.07);
    }

    .nav-logo {
        font-size: 12px;
    }

    /* Hero stacks: copy first, visual below */
    .hero {
        grid-template-columns:1fr;
        padding-top: 52px;
        min-height: auto;
    }

    .hero-left {
        padding: 48px 22px 40px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 40px);
    }

    .hero-sub {
        max-width: 100%;
        margin-bottom: 36px;
    }

    .hero-right {
        min-height: 56vh;
    }

    /* Section headers + padding */
    .svc-header {
        padding: 44px 22px 28px;
    }

    .svc-grid {
        grid-template-columns:1fr;
        padding: 20px 22px 44px;
        gap: 14px;
    }

    .svc-item {
        padding: 28px 24px 32px;
    }

    .svc-n {
        margin-bottom: 24px;
    }

    .proj-header {
        padding: 44px 22px 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .filter-tabs {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-tab {
        flex: 1 1 auto;
        padding: 12px 16px;
        text-align: center;
    }

    .proj-grid {
        grid-template-columns:1fr;
        padding: 20px 22px 44px;
        gap: 16px;
    }

    .proj-card.tall .proj-thumb-wrap, .proj-card.tall .proj-bp {
        aspect-ratio: 4/3;
    }

    .about-top {
        padding: 52px 22px 40px;
    }

    .about-bottom {
        grid-template-columns:1fr;
        padding: 40px 22px;
    }

    .about-body-col, .stats-col {
        padding: 32px 26px;
    }

    .stat-n {
        font-size: clamp(36px, 12vw, 56px);
    }

    .contact-head {
        padding: 52px 22px 40px;
    }

    .contact-grid {
        grid-template-columns:1fr;
        padding: 40px 22px;
    }

    .contact-cell {
        padding: 28px 24px 30px;
    }

    .contact-note {
        padding: 26px 22px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 22px;
    }

}

.vlb-stage {
    width: min(1100px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vlb-track-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border, #2a2a28);
    border-radius: 2px;
}

.vlb-track {
    width: 100%;
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .15, 1);
}

.vlb-slide {
    min-width: 100%;
    height: min(72vh, 680px);
    background: #0c0c0b;
}

.vlb-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vlb-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.vlb-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vlb-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #f2f0ea);
    letter-spacing: -0.01em;
}

.vlb-sub {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted, #8a8a82);
}

.vlb-dots {
    display: flex;
    gap: 8px;
}

.vlb-dot {
    width: 28px;
    height: 3px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: background .25s;
}

.vlb-dot.active {
    background: var(--accent, #c8ff00);
}

.vlb-count {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--muted, #8a8a82);
    letter-spacing: 0.08em;
    min-width: 46px;
    text-align: right;
    justify-self: end;
}

.vlb-count span {
    color: var(--text, #f2f0ea);
}

.vlb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 18, 0.6);
    color: var(--text, #f2f0ea);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
}

.vlb-nav:hover {
    background: var(--accent, #c8ff00);
    color: #0c0c0b;
    border-color: var(--accent, #c8ff00);
}

.vlb-prev {
    left: max(20px, calc(50vw - 620px));
}

.vlb-next {
    right: max(20px, calc(50vw - 620px));
}

.vlb-close {
    position: absolute;
    top: 26px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 18, 0.6);
    color: var(--text, #f2f0ea);
    font-size: 16px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.vlb-close:hover {
    background: var(--accent, #c8ff00);
    color: #0c0c0b;
    border-color: var(--accent, #c8ff00);
}

@media (max-width: 640px) {
    .vlb-nav {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .vlb-prev {
        left: 12px;
    }

    .vlb-next {
        right: 12px;
    }

    .vlb-stage {
        width: 94vw;
    }

    .vlb-slide {
        height: min(64vh, 480px);
    }

    .vlb-bar {
        gap: 12px;
    }
}

/* ── Generic lightbox (заменяет 8 одинаковых per-carousel блоков) ── */
#lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 5, 0.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .28s ease;
}

#lb.open {
    display: flex;
    opacity: 1;
}
