/* ============================================================
   BRUTALIST PORTFOLIO — Александр Лучков
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/fonts/inter-greek-ext.woff2") format("woff2");
    unicode-range: U+1F00-1FFF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/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;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("public/assets/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;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-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;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-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;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("public/assets/fonts/jetbrains-mono-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;
}

:root {
    --c-ink: #0a0a0a;
    --c-ink-2: #141414;
    --c-ink-3: #1a1a1a;
    --c-paper: #ebe6db;
    --c-paper-2: #e2dccf;
    --c-line: #0a0a0a;
    --c-line-soft: rgba(10, 10, 10, .25);
    --c-line-soft-d: rgba(255, 255, 255, .14);
    --c-muted: #5a5650;
    --c-muted-d: #a09a90;
    --c-white: #f5f1e8;
    --c-accent: #d7ff2f;
    --c-accent-soft: rgba(215, 255, 47, .18);

    --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --max: 1280px;
    --gutter: 56px;

    --ease: cubic-bezier(.7, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--f-sans);
    color: var(--c-ink);
    background: var(--c-ink);
    line-height: 1.45;
    font-size: 16px;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; background: none; border: 0; color: inherit; }

::selection { background: #0a0a0a; color: var(--c-paper); }

/* ===== GLOBAL OVERLAYS ===== */

.grain {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 100;
    background: url("public/assets/ui/patterns/noise-overlay.svg") repeat;
    opacity: .08;
    mix-blend-mode: overlay;
}

.scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 2px;
    z-index: 200;
    background: transparent;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--c-paper);
    transition: width .08s linear;
}

/* Custom cursor */
.cursor, .cursor-dot {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 999;
    border-radius: 50%;
    will-change: transform;
    mix-blend-mode: difference;
}
.cursor {
    width: 32px; height: 32px;
    border: 1px solid #fff;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-dot {
    width: 4px; height: 4px;
    background: #fff;
    transform: translate(-50%, -50%);
}
.cursor.is-hover {
    width: 64px; height: 64px;
    background: rgba(255, 255, 255, .08);
}

/* ===== HEADER ===== */

.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 90;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, .65), rgba(10, 10, 10, 0));
    transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(10, 10, 10, .9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: rgba(255, 255, 255, .07);
    padding: 14px 0;
}
.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    color: var(--c-paper);
}
.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--f-sans);
    flex-shrink: 0;
}
.brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--c-paper);
}
.brand-role {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--c-muted-d);
}

.nav {
    display: flex;
    gap: 34px;
    margin-left: auto;
    margin-right: 24px;
}
.nav-link {
    position: relative;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--c-paper);
    padding: 6px 0;
    display: inline-block;
}
.nav-link::before {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 2px;
    height: 1px;
    background: var(--c-paper);
    transition: right .35s var(--ease);
}
.nav-link:hover::before { right: 0; }
.nav-link { transition: transform .3s var(--ease), color .3s var(--ease); }
.nav-link:hover { color: #fff; }

/* Mobile nav toggle (burger) */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    color: var(--c-paper);
    position: relative;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav-toggle:hover { border-color: rgba(255, 255, 255, .45); }
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
    transform-origin: center;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    z-index: 78;
    background: var(--c-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease);
    overflow-y: auto;
    padding: 40px 0 48px;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter);
    max-width: 480px;
    margin: 0 auto;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.005em;
    color: var(--c-paper);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: color .2s var(--ease), padding-left .3s var(--ease);
}
.mobile-nav-link:hover,
.mobile-nav-link:active { color: var(--c-accent); padding-left: 6px; }
.mobile-nav-link-accent {
    color: var(--c-accent);
    font-family: var(--f-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2em;
    margin-top: 18px;
    border-bottom: 0;
}
body.nav-open { overflow: hidden; }

@media (min-width: 801px) {
    .mobile-nav { display: none !important; }
    body.nav-open { overflow: auto; }
}
body.nav-open .site-header {
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, .08);
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1;
    padding: 14px 22px;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--c-paper);
    position: relative;
    overflow: hidden;
    transition: color .35s var(--ease);
    cursor: none;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--c-paper);
    transform: translateX(-101%);
    transition: transform .45s var(--ease);
    z-index: 0;
}
.btn:hover { color: var(--c-ink); }
.btn:hover::before { transform: translateX(0); }
.btn > * { position: relative; z-index: 1; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 12px 18px; font-size: 11px; letter-spacing: .2em; }
.btn-lg { padding: 18px 28px; font-size: 12.5px; }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--c-paper);
    padding: 6px 0;
    border-bottom: 1px solid currentColor;
    position: relative;
    cursor: none;
}
.btn-link svg { transition: transform .3s var(--ease); }
.btn-link:hover svg { transform: translate(2px, -2px) rotate(0deg); }
.btn-link.btn-link-light { color: var(--c-paper); }
.section-light .btn-link { color: var(--c-ink); }

/* ===== HERO ===== */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--c-ink);
    color: var(--c-paper);
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: stretch;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: .92;
    will-change: transform;
}
.hero-bg-fade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, .96) 0%, rgba(10, 10, 10, .78) 35%, rgba(10, 10, 10, .25) 60%, rgba(10, 10, 10, .15) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 25%, rgba(10, 10, 10, 0) 70%, rgba(10, 10, 10, .55) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.hero-content { flex: 1; max-width: 760px; }

.hero-title {
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: clamp(40px, 5.2vw, 80px);
    line-height: .94;
    letter-spacing: -.025em;
    color: var(--c-paper);
    margin-bottom: 32px;
}
.hero-title em {
    font-style: normal;
    color: var(--c-accent);
}
.hero-title .line {
    display: block;
    overflow: hidden;
    padding: .04em 0;
}
.hero-title .line-inner {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}
.hero-title.is-in .line-inner {
    transform: translateY(0);
    transition: transform .9s var(--ease);
}
.hero-title.is-in .line:nth-child(1) .line-inner { transition-delay: .05s; }
.hero-title.is-in .line:nth-child(2) .line-inner { transition-delay: .15s; }
.hero-title.is-in .line:nth-child(3) .line-inner { transition-delay: .25s; }
.hero-title.is-in .line:nth-child(4) .line-inner { transition-delay: .35s; }

.hero-lead {
    font-size: 16px;
    line-height: 1.55;
    color: #c4beb1;
    max-width: 420px;
    margin-bottom: 36px;
    font-weight: 400;
}
.hero-lead em {
    font-style: normal;
    color: var(--c-accent);
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}


/* ===== SECTIONS ===== */

.section {
    position: relative;
    padding: 110px 0;
}
.section-light {
    background: var(--c-paper);
    background-image: url("public/assets/media/textures/texture-light-concrete-paper.jpg");
    background-blend-mode: multiply;
    background-size: cover;
    color: var(--c-ink);
}
.section-dark {
    background: var(--c-ink);
    background-image: url("public/assets/media/textures/texture-dark-concrete.jpg");
    background-blend-mode: multiply;
    background-size: cover;
    color: var(--c-paper);
}
.section-dark::before,
.section-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("public/assets/ui/patterns/fine-grid.svg") repeat;
    opacity: .04;
    pointer-events: none;
}

.section-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.h2 {
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: clamp(30px, 3.6vw, 46px);
    letter-spacing: -.015em;
    line-height: .95;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.rule {
    display: block;
    width: 56px; height: 2px;
    background: var(--c-ink);
    margin-bottom: 24px;
}
.rule-light { background: var(--c-paper); }

/* ===== ABOUT ===== */

.about-wrap { display: flex; flex-direction: column; gap: 56px; }

.about-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    align-items: start;
}
.about-row + .about-row {
    padding-top: 44px;
    border-top: 1px solid var(--c-line-soft);
}

.about-label .rule { margin-top: 22px; }
.about-spacer { display: block; }

.about-body { display: flex; flex-direction: column; gap: 20px; max-width: 880px; }

.about-lead {
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--c-ink);
    margin: 0;
}
.about-lead em {
    font-style: normal;
    background: linear-gradient(transparent 62%, var(--c-accent) 62%);
    padding: 0 .12em .04em;
    color: var(--c-ink);
    white-space: nowrap;
}
.about-lead-sub {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.3;
    color: var(--c-muted);
    letter-spacing: -.005em;
    margin: 0;
    max-width: 720px;
}
.about-sub {
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-muted);
    margin: 0;
    max-width: 640px;
    font-weight: 400;
    padding-top: 16px;
    border-top: 1px solid var(--c-line-soft);
}

.about-body-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    max-width: 100%;
}
.about-col { display: flex; flex-direction: column; gap: 12px; }
.about-col .col-kicker {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    color: var(--c-muted);
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
    text-transform: uppercase;
}
.about-col p {
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--c-ink);
    margin: 0;
    font-weight: 400;
}
.about-col p + p { margin-top: 6px; color: var(--c-muted); }

/* ===== CASES ===== */

.cases-grid {
    display: grid;
    grid-template-columns: .85fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.cases-side {
    padding-right: 16px;
    position: sticky;
    top: 110px;
    align-self: start;
    will-change: transform;
}
.cases-side .h2 { color: var(--c-paper); }
.cases-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-muted-d);
    margin: 0 0 28px;
    max-width: 220px;
}

.case-card {
    position: relative;
    background: var(--c-ink-2);
    background-image: url("public/assets/media/textures/texture-card-concrete.jpg");
    background-blend-mode: multiply;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    color: var(--c-paper);
    transition: transform .5s var(--ease), border-color .3s var(--ease);
    overflow: hidden;
}
.case-card {
    transform: translateY(0) scale(1);
    transform-origin: center;
    transition: transform .5s var(--ease), border-color .3s var(--ease),
                opacity .4s var(--ease), filter .5s var(--ease), box-shadow .4s var(--ease);
}
.case-card:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-6px) scale(1.035); z-index: 3; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); }

@media (hover: hover) {
    .cases-grid:has(.case-card:hover) .case-card:not(:hover) {
        opacity: .55;
        filter: brightness(.78);
    }
    .cases-grid:has(.case-card:hover) .case-card:not(:hover) .case-image img {
        filter: saturate(.22) brightness(.78) contrast(.95);
    }
}

.case-link { position: absolute; inset: 0; z-index: 5; }

.case-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--c-paper);
}
.case-arrow { transition: transform .4s var(--ease); }
.case-card:hover .case-arrow { transform: translate(4px, -4px); }

.case-image {
    margin: 0 -22px 18px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: #000;
}
.case-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease), filter .6s var(--ease);
    filter: saturate(.62) brightness(1.04) contrast(1.04);
}
.case-card:hover .case-image img {
    transform: scale(1.05);
    filter: saturate(.78) brightness(1.06) contrast(1.08);
}

.case-title {
    font-size: 14px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--c-paper);
}
.case-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--c-muted-d);
    margin-bottom: 18px;
    flex-grow: 1;
}

.case-foot {
    display: flex;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--c-paper);
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: auto;
}
.case-foot .case-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
}
.case-foot .arr { display: inline-block; transition: transform .35s var(--ease); }
.case-card:hover .case-foot .arr { transform: translateX(4px); }

/* ===== APPROACH ===== */

.approach-wrap { display: flex; flex-direction: column; gap: 64px; }
.approach-head { max-width: 720px; }

.approach-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-line-soft);
}

.step {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--c-line-soft);
    border-bottom: 1px solid var(--c-line-soft);
    transition: background-color .35s var(--ease);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    row-gap: 18px;
    align-items: start;
}
.step:nth-child(3n) { border-right: 0; }
.step:nth-last-child(-n+3) { border-bottom: 0; }
.step:nth-child(3n+1) { padding-left: 0; }
.step:nth-child(3n) { padding-right: 0; }

.step-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-block;
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: 56px;
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--c-ink);
    align-self: start;
    padding-right: 4px;
    border: 0;
    margin: 0;
    padding-bottom: 0;
}

.step-glyph {
    display: none;
}

.step-title {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--f-sans);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
    margin: 0;
    color: var(--c-ink);
    text-transform: uppercase;
    align-self: start;
    padding-top: 14px;
}
.step:hover .step-title { color: var(--c-ink); }
.step-text {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-muted);
    max-width: 340px;
    margin: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 0;
    background: var(--c-accent);
    transition: height .35s var(--ease);
}
.step:hover::before { height: 3px; }

/* ===== CONTACTS ===== */

.contacts {
    color: var(--c-paper);
    overflow: hidden;
    padding: 120px 0 100px;
}
.contacts-bg {
    position: absolute; inset: 0; z-index: 0;
}
.contacts-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: .85;
}
.contacts::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .8) 50%, rgba(10, 10, 10, .25) 100%);
}

.contacts-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contacts-side .h2 { color: var(--c-paper); }
.contacts-lead {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--c-paper);
}
.contacts-lead em {
    font-style: normal;
    color: var(--c-accent);
}
.contacts-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-muted-d);
    max-width: 360px;
}

.contacts-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    position: relative;
    overflow: hidden;
    cursor: none;
    transition: padding-left .35s var(--ease);
}
.contact-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, .04);
    transition: width .35s var(--ease);
}
.contact-row:hover { padding-left: 16px; }
.contact-row:hover::before { width: 100%; }

.contact-ico {
    width: 28px; height: 28px;
    filter: invert(1) brightness(.9);
    position: relative; z-index: 1;
    transition: transform .4s var(--ease);
}
.contact-row:hover .contact-ico { transform: scale(1.1) rotate(-4deg); }
.contact-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.contact-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--c-muted-d);
}
.contact-value {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--c-paper);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER ===== */

.site-footer {
    background: var(--c-ink);
    color: var(--c-muted-d);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .14em;
}
.foot-col-center { text-align: center; }
.foot-col-end { text-align: right; }

/* ===== REVEAL ===== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.case-card.is-hover-ready {
    transition: transform .22s var(--ease), border-color .2s var(--ease),
                opacity .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
    transition-delay: 0s;
}
.case-card.reveal.is-in.is-hover-ready {
    transform: translateY(0) scale(1);
}
.case-card.reveal.is-in.is-hover-ready:hover {
    transform: translateY(-6px) scale(1.035);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
    :root { --gutter: 36px; }
    .nav { gap: 24px; }
    .cases-grid { grid-template-columns: 1fr 1fr; }
    .cases-side { grid-column: 1 / -1; padding-right: 0; margin-bottom: 12px; }
    .about-row { grid-template-columns: 180px 1fr; gap: 36px; }
    .about-body-cols { gap: 32px; }
    .privacy-hero h1 { font-size: 56px; }
}

@media (max-width: 800px) {
    :root { --gutter: 22px; }

    /* Anchored scroll: clear the fixed header */
    #about, #cases, #approach, #contacts { scroll-margin-top: 92px; }

    .site-header { padding: 12px 0; }
    .header-inner { gap: 16px; }
    .nav, .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .brand-role { display: none; }
    .brand-name { font-size: 12px; letter-spacing: .12em; }

    /* HERO */
    .hero { padding-top: 120px; min-height: auto; padding-bottom: 64px; }
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
    .hero-bg-fade { background: linear-gradient(180deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .6) 50%, rgba(10, 10, 10, .85) 100%); }
    .hero-title {
        font-size: clamp(30px, 8.6vw, 48px);
        letter-spacing: -.03em;
        line-height: 1;
        margin-bottom: 26px;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    .hero-title .line { padding: .02em 0; }
    .hero-lead { font-size: 15.5px; margin-bottom: 30px; }
    .hero-ctas { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-width: 320px; }
    .hero-ctas .btn { justify-content: center; }
    .hero-ctas .btn-link { align-self: flex-start; }

    /* SECTIONS */
    .section { padding: 64px 0; }
    .h2 { font-size: clamp(28px, 8.5vw, 38px); }

    /* ABOUT */
    .about-row { grid-template-columns: 1fr; gap: 18px; }
    .about-spacer { display: none; }
    .about-body-cols { grid-template-columns: 1fr; gap: 28px; }
    .about-wrap { gap: 36px; }
    .about-row + .about-row { padding-top: 28px; }
    .about-lead {
        font-size: clamp(26px, 7.6vw, 36px);
        line-height: 1.06;
    }
    .about-lead em { white-space: normal; padding: 0 .08em .02em; }
    .about-lead br { display: none; }
    .about-lead-sub { font-size: 16px; }
    .about-sub { font-size: 15px; }

    /* CASES */
    .cases-grid { grid-template-columns: 1fr; gap: 18px; }
    .cases-side { position: static; padding-right: 0; margin-bottom: 12px; }
    .cases-desc { max-width: 100%; font-size: 14.5px; }
    .case-card { padding: 18px 18px 20px; }
    .case-image { margin: 0 -18px 16px; aspect-ratio: 16/10; }
    .case-title { font-size: 15px; }
    .case-text { font-size: 13.5px; }

    /* APPROACH */
    .approach-wrap { gap: 36px; }
    .approach-steps { grid-template-columns: 1fr; }
    .step, .step:nth-child(3n+1), .step:nth-child(3n) {
        padding: 26px 0;
        border-left: 0;
        border-right: 0;
        column-gap: 18px;
    }
    .step { border-bottom: 1px solid var(--c-line-soft); }
    .step:last-child { border-bottom: 0; }
    .step-num { font-size: 40px; }
    .step-title { font-size: 18px; padding-top: 8px; }
    .step-text { font-size: 14.5px; }

    /* CONTACTS */
    .contacts { padding: 80px 0 72px; }
    .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
    .contacts-lead br { display: none; }
    .contacts-sub { max-width: 100%; }
    .contacts-meta li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .contacts-meta li:last-child { border-bottom: 0; }
    .contacts-meta li strong { text-align: left; font-size: 13.5px; letter-spacing: .04em; }
    .contact-row { gap: 16px; padding: 18px 0; }
    .contact-ico { width: 24px; height: 24px; }
    .contact-value { font-size: 14.5px; word-break: break-word; }

    /* FOOTER */
    .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 10px; padding-bottom: 6px; }
    .foot-col-center, .foot-col-end { text-align: left; }

    /* Custom cursor: never on mobile */
    .cursor, .cursor-dot { display: none !important; }
    .btn, .btn-link, button, .contact-row { cursor: pointer; }
}

/* ===== CASE MODAL ===== */

.case-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--c-paper);
    overflow: hidden;
    z-index: 500;
}
.case-modal[open] {
    display: flex;
}
.case-modal::backdrop {
    background: rgba(10, 10, 10, .88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.case-modal-inner {
    position: relative;
    background: var(--c-ink);
    background-image: url("public/assets/media/textures/texture-dark-concrete.jpg");
    background-blend-mode: multiply;
    background-size: cover;
    color: var(--c-paper);
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
    -webkit-overflow-scrolling: touch;
}
.case-modal[open] .case-modal-inner {
    transform: translateY(0);
    opacity: 1;
}

.case-modal-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 44px;
    background: rgba(10, 10, 10, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--c-muted-d);
}
.case-modal-num { color: var(--c-paper); font-weight: 500; }
.case-modal-tags { flex: 1; }
.case-modal-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--c-paper);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 500;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.case-modal-close:hover {
    background: var(--c-accent);
    color: var(--c-ink);
    border-color: var(--c-accent);
}

.case-modal-content {
    padding: 64px 64px 96px;
    max-width: 1100px;
    margin: 0 auto;
}
.case-modal-content .case-section p,
.case-modal-content .case-list,
.case-modal-content .case-decisions,
.case-modal-content .case-modal-lead {
    max-width: 760px;
}

.case-modal-hero { margin-bottom: 64px; }
.case-modal-eyebrow {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--c-muted-d);
    padding-bottom: 8px;
    margin-bottom: 26px;
    border-bottom: 1px solid currentColor;
    text-transform: uppercase;
}
.case-modal-title {
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--c-paper);
    margin: 0 0 32px;
    text-transform: uppercase;
}
.case-modal-title em {
    font-style: normal;
    color: var(--c-accent);
}
.case-modal-lead {
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-muted-d);
    max-width: 720px;
    margin: 0;
}

.case-modal-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 64px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.case-modal-meta > div { display: flex; flex-direction: column; gap: 10px; }
.case-modal-meta-label {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .22em;
    color: var(--c-muted-d);
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
    text-transform: uppercase;
}
.case-modal-meta p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--c-paper);
    margin: 0;
}

.case-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.case-stat { display: flex; flex-direction: column; gap: 14px; }
.case-stat-num {
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: clamp(40px, 4.5vw, 64px);
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--c-paper);
}
.case-stat-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--c-muted-d);
    text-transform: uppercase;
    line-height: 1.4;
}

.case-section { margin-bottom: 56px; }
.case-section h2 {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--c-paper);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-transform: uppercase;
}
.case-section h3 {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.005em;
    color: var(--c-paper);
    margin: 32px 0 14px;
    text-transform: uppercase;
}
.case-section p {
    font-size: 16px;
    line-height: 1.62;
    color: #c4beb1;
    margin: 0 0 16px;
}
.case-section p:last-child { margin-bottom: 0; }
.case-section strong { color: var(--c-paper); font-weight: 600; }
.case-section-tail { margin-bottom: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }

.case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.case-list li {
    position: relative;
    padding: 12px 0 12px 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #c4beb1;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.case-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 22px;
    width: 12px; height: 1px;
    background: var(--c-accent);
}
.case-list li:last-child { border-bottom: 0; }

.case-decisions {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: case-decisions;
}
.case-decisions li {
    counter-increment: case-decisions;
    position: relative;
    padding: 18px 0 18px 56px;
    font-size: 16px;
    line-height: 1.6;
    color: #c4beb1;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.case-decisions li::before {
    content: counter(case-decisions, decimal-leading-zero);
    position: absolute;
    left: 0; top: 18px;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--c-accent);
}
.case-decisions li:last-child { border-bottom: 0; }

.case-callout {
    background: rgba(255, 255, 255, .04);
    border-left: 3px solid var(--c-accent);
    padding: 22px 28px;
    margin: 24px 0;
}
.case-callout-label {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .22em;
    color: var(--c-accent);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.case-callout p { font-size: 15.5px; line-height: 1.55; margin: 0 0 8px; color: var(--c-paper); }
.case-callout p:last-child { margin: 0; }

.case-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}
.case-block {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.case-block-num {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--c-accent);
    margin-bottom: 4px;
}
.case-block h4 {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
    color: var(--c-paper);
    margin: 0 0 8px;
    text-transform: uppercase;
}
.case-block p { font-size: 13.5px; line-height: 1.55; color: #b8b2a4; margin: 0; }
.case-block strong { color: var(--c-paper); font-weight: 600; }

.case-modal-foot {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: var(--c-paper);
}
.case-modal-foot-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 18px;
    font-weight: 700;
}
.case-modal-cta { white-space: nowrap; }

.case-modal-next {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 12px;
    color: var(--c-paper);
    text-decoration: none;
    transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.case-modal-next:hover { color: var(--c-accent); padding-left: 6px; }
.case-modal-next-label {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .24em;
    color: var(--c-muted-d);
    text-transform: uppercase;
    margin-right: 6px;
}
.case-modal-next:hover .case-modal-next-label { color: var(--c-accent); }
.case-modal-next-title {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.case-modal-next svg {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform .35s var(--ease);
}
.case-modal-next:hover svg { transform: translateX(8px); }

body.modal-open { overflow: hidden; }
body.modal-open .cursor,
body.modal-open .cursor-dot { opacity: 0 !important; }

/* Inside dialog (top-layer) — restore native cursor */
.case-modal,
.case-modal * { cursor: auto; }
.case-modal a,
.case-modal button,
.case-modal [data-case],
.case-modal .case-modal-close,
.case-modal .case-modal-cta { cursor: pointer; }

/* ===== CASE VIZ ===== */

.case-viz {
    margin: 0 0 56px;
    padding: 32px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.viz-cap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 640px;
}
.viz-eyebrow {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .24em;
    color: var(--c-accent);
    text-transform: uppercase;
}
.viz-title {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.005em;
    color: var(--c-paper);
    text-transform: uppercase;
}
.viz-desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: #a09a90;
}

.viz-frame {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 24px;
}
.viz-svg {
    display: block;
    width: 100%;
    height: auto;
    color: var(--c-paper);
}
.viz-svg .viz-axis {
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .14em;
    fill: #8a857a;
}
.viz-svg .viz-axis-em {
    letter-spacing: .22em;
    fill: var(--c-muted-d);
}
.viz-svg .viz-h {
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: .22em;
    fill: var(--c-accent);
}
.viz-svg .viz-sub {
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .08em;
    fill: #888173;
}
.viz-svg .viz-fn {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .16em;
    fill: var(--c-paper);
}
.viz-svg .viz-fn-accent { fill: var(--c-accent); font-weight: 700; }

/* matrix 2x2 BCG-style */
.viz-quad {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: 1fr 32px;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .1);
}
.viz-quad-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--c-muted-d);
    text-transform: uppercase;
}
.viz-quad-axis-y {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 8px 0;
}
.viz-quad-axis-x { padding: 0 12px; }

.viz-quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    aspect-ratio: 16/10;
    min-height: 360px;
}
.viz-quad-cell {
    position: relative;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    margin: -.5px;
    overflow: hidden;
}
.viz-quad-tl { background: rgba(215, 255, 47, .07); }
.viz-quad-tr { background: rgba(180, 200, 230, .04); }
.viz-quad-bl { background: rgba(220, 180, 120, .04); }
.viz-quad-br { background: rgba(220, 90, 90, .07); }

.viz-quad-tag {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
.viz-quad-tag strong {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--c-muted-d);
    text-transform: uppercase;
}
.viz-quad-tag em {
    font-style: normal;
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: .14em;
    color: var(--c-muted);
    text-transform: uppercase;
}
.viz-quad-tl .viz-quad-tag strong { color: var(--c-accent); }
.viz-quad-tl .viz-quad-tag em { color: rgba(215, 255, 47, .6); }
.viz-quad-tag-danger strong { color: #ff8a8a !important; }
.viz-quad-tag-danger em { color: rgba(255, 138, 138, .6) !important; }
.viz-quad-icon {
    font-family: var(--f-mono);
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    margin-right: 3px;
    transform: translateY(-1px);
}

.viz-quad-dot {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.viz-quad-dot .vdot {
    width: 10px;
    height: 10px;
    background: var(--c-paper);
    opacity: .65;
    border-radius: 50%;
    flex-shrink: 0;
}
.viz-quad-dot .vname {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--c-paper);
    white-space: nowrap;
}
.viz-quad-tr .vdot { background: #b4c8e6; opacity: .85; }
.viz-quad-bl .vdot { background: #dcb478; opacity: .85; }
.viz-quad-br .vdot { background: #ff8a8a; opacity: .9; }
.viz-quad-dot-accent .vdot {
    width: 16px;
    height: 16px;
    background: var(--c-accent);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(215, 255, 47, .15);
}
.viz-quad-dot-accent .vname {
    color: var(--c-accent);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .14em;
}

/* shift */
.viz-shift {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .1);
}
.viz-shift-col {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.viz-shift-before { background: rgba(255, 255, 255, .025); }
.viz-shift-after  { background: rgba(215, 255, 47, .04); }
.viz-shift-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--c-muted-d);
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
}
.viz-shift-after .viz-shift-label { color: var(--c-accent); }
.viz-shift-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.viz-shift-col li {
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--c-paper);
    padding-left: 16px;
    position: relative;
}
.viz-shift-col li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 1px;
    background: currentColor;
    opacity: .5;
}
.viz-shift-after li { color: var(--c-paper); }
.viz-shift-after li::before { background: var(--c-accent); opacity: 1; }
.viz-shift-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
    padding: 0 18px;
    border-left: 1px dashed rgba(255, 255, 255, .15);
    border-right: 1px dashed rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .25);
}
.viz-shift-arrow svg { width: 60px; height: 24px; }

/* funnels */
.viz-funnel-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.viz-funnel {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--c-muted-d);
}
.viz-funnel-1 { color: var(--c-accent); }
.viz-funnel-cap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.viz-funnel-type {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--c-paper);
    font-weight: 600;
}
.viz-funnel-tag {
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: .22em;
    color: currentColor;
}
.viz-funnel-svg {
    width: 100%;
    height: auto;
    max-height: 200px;
}
.viz-funnel-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.viz-funnel-meta li {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.viz-funnel-meta li:last-child { border-bottom: 0; }
.viz-funnel-meta span { color: var(--c-muted-d); }
.viz-funnel-meta strong { color: var(--c-paper); font-weight: 600; }

/* pipeline */
.viz-svg .viz-node rect {
    fill: rgba(255, 255, 255, .04);
    stroke: rgba(255, 255, 255, .25);
    stroke-width: 1;
}
.viz-svg .viz-node text {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .14em;
    fill: var(--c-paper);
}
.viz-svg .viz-node-accent rect {
    fill: rgba(215, 255, 47, .08);
    stroke: var(--c-accent);
}
.viz-svg .viz-node-accent text {
    fill: var(--c-accent);
}

/* questions table */
.viz-questions {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .1);
}
.viz-q-head {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 0;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.viz-q-head > span {
    padding: 14px 20px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .22em;
    color: var(--c-muted-d);
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, .1);
}
.viz-q-head > span:last-child { border-right: 0; }
.viz-q-head-before { color: #b0aa9c; }
.viz-q-head-after { color: var(--c-accent); }

.viz-q-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.viz-q-row:last-child { border-bottom: 0; }
.viz-q-row > div {
    padding: 18px 20px;
    font-size: 14.5px;
    line-height: 1.45;
    color: #c4beb1;
    border-right: 1px solid rgba(255, 255, 255, .07);
}
.viz-q-row > div:last-child { border-right: 0; }
.viz-q-q {
    color: var(--c-paper) !important;
    font-weight: 600;
    font-size: 15px !important;
}
.viz-q-before {
    background: rgba(255, 255, 255, .015);
    color: #888173 !important;
}
.viz-q-after {
    background: rgba(215, 255, 47, .035);
    color: var(--c-paper) !important;
}
.viz-q-after::before {
    content: '→ ';
    color: var(--c-accent);
    font-weight: 700;
}

@media (max-width: 900px) {
    .case-viz { margin-bottom: 36px; padding-top: 24px; }
    .viz-shift { grid-template-columns: 1fr; }
    .viz-shift-arrow { border: 0; padding: 14px 0; transform: rotate(90deg); }
    .viz-funnel-row { grid-template-columns: 1fr; }
    .viz-q-head, .viz-q-row { grid-template-columns: 1fr; }
    .viz-q-head > span, .viz-q-row > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
    .viz-q-row > div:last-child { border-bottom: 0; }
    .viz-quad { grid-template-columns: 24px 1fr; }
    .viz-quad-grid { aspect-ratio: 4/5; min-height: 480px; }
    .viz-quad-dot .vname { font-size: 10px; }
    .viz-quad-tag strong { font-size: 10px; }
    .viz-quad-tag em { font-size: 9px; }
}

@media (max-width: 900px) {
    .case-modal-bar { padding: 12px 18px; gap: 12px; }
    .case-modal-tags { display: none; }
    .case-modal-close {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: .18em;
        gap: 8px;
    }
    .case-modal-content { padding: 32px 20px 56px; }
    .case-modal-hero { margin-bottom: 44px; }
    .case-modal-title {
        font-size: clamp(28px, 8.5vw, 40px);
        line-height: .98;
        letter-spacing: -.025em;
        margin-bottom: 22px;
        overflow-wrap: break-word;
    }
    .case-modal-lead { font-size: 15.5px; }
    .case-modal-meta { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; padding-top: 28px; }
    .case-modal-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 44px;
        padding: 24px 0;
    }
    .case-stat { gap: 8px; flex-direction: row; align-items: baseline; gap: 16px; }
    .case-stat-num { font-size: 38px; flex-shrink: 0; }
    .case-stat-label { font-size: 10.5px; line-height: 1.35; }
    .case-grid-3 { grid-template-columns: 1fr; }
    .case-section { margin-bottom: 40px; }
    .case-section h2 { font-size: 22px; margin-bottom: 18px; padding-bottom: 12px; }
    .case-section h3 { font-size: 16px; margin: 24px 0 10px; }
    .case-section p { font-size: 15px; }
    .case-list li { font-size: 14.5px; padding: 10px 0 10px 22px; }
    .case-decisions li { font-size: 14.5px; padding: 16px 0 16px 38px; }
    .case-decisions li::before { font-size: 11px; top: 16px; }
    .case-callout { padding: 18px 20px; }
    .case-callout p { font-size: 14.5px; }
    .case-modal-foot { padding-top: 24px; }
    .case-modal-foot-cta { font-size: 15px; gap: 16px; }
    .case-modal-next { padding: 18px 0; gap: 14px; align-items: flex-start; }
    .case-modal-next-title { font-size: 15px; }
    .case-modal-next-label { display: block; margin: 0 0 4px; font-size: 9.5px; }
    .case-modal-next svg { margin-top: 4px; }

    /* viz tweaks */
    .viz-cap { margin-bottom: 18px; }
    .viz-title { font-size: 17px; }
    .viz-desc { font-size: 13.5px; }
    .viz-frame { padding: 14px; }

    /* matrix: keep readable on narrow screens */
    .viz-quad { padding: 12px; gap: 8px; grid-template-columns: 20px 1fr; }
    .viz-quad-grid { min-height: 460px; aspect-ratio: auto; }
    .viz-quad-cell { padding: 10px 12px; }
    .viz-quad-axis { font-size: 9px; letter-spacing: .16em; }
    .viz-quad-axis-x { padding: 0 4px; gap: 8px; }
    .viz-quad-axis-x span { white-space: nowrap; }
    .viz-quad-tag strong { font-size: 9.5px; letter-spacing: .08em; }
    .viz-quad-tag em { font-size: 8.5px; letter-spacing: .08em; line-height: 1.25; }
    .viz-quad-dot { gap: 5px; }
    .viz-quad-dot .vdot { width: 8px; height: 8px; }
    .viz-quad-dot .vname { font-size: 9.5px; letter-spacing: .06em; }
    .viz-quad-dot-accent .vdot { width: 12px; height: 12px; box-shadow: 0 0 0 4px rgba(215, 255, 47, .15); }
    .viz-quad-dot-accent .vname { font-size: 10.5px; letter-spacing: .08em; }

    .viz-funnel { padding: 18px 16px; gap: 12px; }
    .viz-funnel-svg { max-height: 180px; }

    .viz-shift-col { padding: 22px 20px; }
    .viz-shift-col li { font-size: 13.5px; }

    .viz-q-head > span { padding: 12px 16px; font-size: 9.5px; }
    .viz-q-row > div { padding: 14px 16px; font-size: 13.5px; }
    .viz-q-q { font-size: 14px !important; }

    /* pipeline SVG: allow horizontal scroll for tiny screens */
    .case-viz-pipeline .viz-frame { padding: 14px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .case-viz-pipeline .viz-svg { min-width: 560px; }
}

/* ===== CONTACTS META ===== */

.contacts-meta {
    list-style: none;
    padding: 24px 0 0;
    margin: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}
.contacts-meta li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    letter-spacing: .14em;
}
.contacts-meta li span {
    color: var(--c-muted-d);
    text-transform: uppercase;
    font-weight: 500;
    flex-shrink: 0;
}
.contacts-meta li strong {
    color: var(--c-paper);
    font-weight: 500;
    text-align: right;
    text-transform: none;
    letter-spacing: .05em;
    font-size: 12px;
}

/* ===== FOOTER NAV ===== */

.foot-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.foot-nav a,
.foot-link {
    font: inherit;
    letter-spacing: inherit;
    color: var(--c-muted-d);
    transition: color .25s var(--ease);
    text-transform: capitalize;
}
.foot-nav a:hover,
.foot-link:hover { color: var(--c-accent); }

/* ===== CONSENT BANNER ===== */

.consent-banner[hidden] { display: none; }
.consent-banner {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 260;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 14px 12px 18px;
    color: var(--c-ink);
    background: rgba(235, 230, 219, .96);
    border: 1px solid rgba(10, 10, 10, .2);
    border-radius: 6px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.consent-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.consent-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.consent-copy strong {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .18em;
    line-height: 1.35;
    text-transform: uppercase;
    flex: 0 0 auto;
}
.consent-copy p {
    max-width: 680px;
    color: var(--c-muted);
    font-size: 13.5px;
    line-height: 1.35;
}
.consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 14px;
    border: 1px solid var(--c-ink);
    border-radius: 4px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.consent-btn-ghost { color: var(--c-ink); }
.consent-btn-primary {
    color: var(--c-ink);
    background: var(--c-accent);
    border-color: var(--c-accent);
}
.consent-btn:hover {
    color: var(--c-paper);
    background: var(--c-ink);
    border-color: var(--c-ink);
}
.consent-btn:focus-visible,
.foot-link:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
}

/* ===== PRIVACY PAGE ===== */

body.privacy-page {
    background: var(--c-paper);
    color: var(--c-ink);
}
.privacy-main {
    background: var(--c-paper);
    color: var(--c-ink);
}
.privacy-hero {
    min-height: auto;
    padding: 132px var(--gutter) 74px;
    display: flex;
    align-items: flex-start;
    background: var(--c-ink);
    color: var(--c-paper);
}
.privacy-hero-inner {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}
.privacy-back {
    display: inline-flex;
    margin-bottom: 28px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--c-muted-d);
    transition: color .25s var(--ease);
}
.privacy-back:hover { color: var(--c-accent); }
.privacy-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--c-accent);
    text-transform: uppercase;
}
.privacy-hero h1 {
    max-width: 1080px;
    margin-bottom: 22px;
    font-size: clamp(48px, 4.85vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
    text-transform: uppercase;
}
.privacy-hero p {
    max-width: 640px;
    color: var(--c-muted-d);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.42;
}
.privacy-content {
    padding: 74px var(--gutter) 104px;
}
.privacy-doc {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 42px;
    min-width: 0;
}
.privacy-block {
    padding-top: 24px;
    border-top: 1px solid rgba(10, 10, 10, .18);
    min-width: 0;
}
.privacy-block h2 {
    margin-bottom: 16px;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -.01em;
}
.privacy-block p,
.privacy-block li {
    color: var(--c-muted);
    font-size: 16px;
    line-height: 1.72;
}
.privacy-block p + p,
.privacy-block p + ul,
.privacy-block ul + p { margin-top: 12px; }
.privacy-block a {
    color: var(--c-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.privacy-block a:hover { color: #4c5f0f; }
.privacy-block ul {
    list-style: none;
    display: grid;
    gap: 8px;
}
.privacy-block li {
    position: relative;
    padding-left: 20px;
}
.privacy-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .8em;
    width: 6px;
    height: 6px;
    background: var(--c-ink);
}
.privacy-table-wrap {
    max-width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid rgba(10, 10, 10, .18);
    border-radius: 6px;
}
.privacy-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, .2);
}
.privacy-table th,
.privacy-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(10, 10, 10, .12);
    border-right: 1px solid rgba(10, 10, 10, .12);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.55;
}
.privacy-table th {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-ink);
}
.privacy-table td { color: var(--c-muted); }
.privacy-table tr:last-child td { border-bottom: 0; }
.privacy-table th:last-child,
.privacy-table td:last-child { border-right: 0; }
.privacy-table code {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--c-ink);
}
.privacy-block a:focus-visible {
    outline: 2px solid var(--c-ink);
    outline-offset: 3px;
}

@media (min-width: 801px) and (max-height: 760px) {
    .privacy-hero {
        padding-top: 108px;
        padding-bottom: 58px;
    }
    .privacy-back { margin-bottom: 22px; }
    .privacy-eyebrow { margin-bottom: 12px; }
    .privacy-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(44px, 4.2vw, 60px);
    }
    .privacy-hero p { font-size: 17px; }
}

/* ===== POLISH ===== */

.grain { opacity: .05; }
.case-modal::backdrop {
    background: rgba(10, 10, 10, .95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ===== ACTIVE NAV ===== */

.nav-link.is-active { color: var(--c-accent); }
.nav-link.is-active::before {
    right: 0;
    background: var(--c-accent);
}

/* ===== LETTER STAGGER FOR H2 ===== */

.h2 {
    overflow: hidden;
    padding-bottom: .08em;
}
.h2.reveal { opacity: 1; transform: none; }
.h2 .h2-char {
    display: inline-block;
    transform: translateY(110%);
    transition: transform .65s cubic-bezier(.7, 0, .2, 1);
    transition-delay: calc(var(--i) * 30ms);
}
.h2.is-in .h2-char { transform: translateY(0); }
.h2 .h2-char { color: inherit; }

/* ===== SPOTLIGHT (cursor-tracked) ===== */

.spotlight {
    position: fixed;
    top: 0; left: 0;
    width: 520px; height: 520px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 255, 47, .07) 0%, rgba(255, 255, 255, .03) 30%, transparent 70%);
    z-index: 90;
    opacity: 0;
    transition: opacity .45s var(--ease);
    will-change: transform;
    mix-blend-mode: screen;
}
.spotlight.is-on { opacity: 1; }
@media (max-width: 900px) { .spotlight { display: none; } }

/* ===== VIZ STROKE-DRAW ===== */

.case-viz svg path,
.case-viz svg line,
.case-viz svg polyline,
.case-viz svg polygon,
.case-viz svg rect,
.case-viz svg circle {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: none;
}
.case-viz.is-in svg path,
.case-viz.is-in svg line,
.case-viz.is-in svg polyline,
.case-viz.is-in svg polygon,
.case-viz.is-in svg rect,
.case-viz.is-in svg circle {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.5s cubic-bezier(.7, 0, .2, 1);
}
/* filled shapes shouldn't be hidden by dashoffset trick — use opacity */
.case-viz svg [fill="currentColor"],
.case-viz svg circle[fill]:not([fill="none"]),
.case-viz svg rect[fill]:not([fill="none"]),
.case-viz svg path[fill]:not([fill="none"]) {
    opacity: 0;
    transition: opacity .8s var(--ease);
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}
.case-viz.is-in svg [fill="currentColor"],
.case-viz.is-in svg circle[fill]:not([fill="none"]),
.case-viz.is-in svg rect[fill]:not([fill="none"]),
.case-viz.is-in svg path[fill]:not([fill="none"]) {
    opacity: 1;
    transition-delay: 1.1s;
}
.case-viz svg text { opacity: 0; transition: opacity .6s var(--ease); }
.case-viz.is-in svg text { opacity: 1; transition-delay: 1.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-title .line-inner { transform: none; }
}

@media (max-width: 800px) {
    .contacts-meta { max-width: 100%; }
    .foot-nav { gap: 14px; }
}

/* ============================================================
   MOBILE POLISH (production)
   Comprehensive pass — fixes hero crop, header sizing,
   approach rhythm, contacts typography, footer stacking,
   case-modal viz density, tap targets, safe-area insets.
   ============================================================ */

@media (max-width: 800px) {
    /* iOS safe-area insets */
    .site-header { padding-top: max(12px, env(safe-area-inset-top)); }
    .header-inner,
    .section-inner,
    .footer-inner,
    .mobile-nav-inner {
        padding-left: max(var(--gutter), env(safe-area-inset-left));
        padding-right: max(var(--gutter), env(safe-area-inset-right));
    }

    /* HEADER — tighten + reliable burger sizing */
    .site-header.is-scrolled { padding: 10px 0; }
    .header-inner { gap: 12px; }
    .brand {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .brand-name { font-size: 12.5px; letter-spacing: .14em; line-height: 1; }
    .nav-toggle {
        width: 44px; height: 44px;
        border-color: rgba(255, 255, 255, .25);
    }
    .nav-toggle:active { background: rgba(255, 255, 255, .06); }

    /* MOBILE NAV — align top with real header bottom, use dvh */
    .mobile-nav {
        top: 64px;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        padding: 28px 0 calc(48px + env(safe-area-inset-bottom));
    }
    .mobile-nav-link {
        padding: 18px 0;
        font-size: 22px;
    }
    .mobile-nav-link-accent { font-size: 13px; margin-top: 14px; }

    /* HERO — clean wrap, full-width CTAs, photo composed with text */
    .hero {
        padding-top: 108px;
        padding-bottom: 56px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero-bg-img {
        object-position: center 35%;
    }
    .hero-bg-fade {
        background:
            linear-gradient(180deg,
                rgba(10,10,10,.92) 0%,
                rgba(10,10,10,.75) 18%,
                rgba(10,10,10,.45) 38%,
                rgba(10,10,10,.18) 58%,
                rgba(10,10,10,.55) 82%,
                rgba(10,10,10,.95) 100%
            );
    }
    .hero-inner { gap: 24px; justify-content: flex-start; }
    .hero-content { padding-bottom: 4vh; }
    .hero-title {
        font-size: clamp(34px, 9.4vw, 52px);
        margin-bottom: 22px;
        line-height: .98;
    }
    .hero-lead {
        font-size: 15.5px;
        line-height: 1.55;
        margin-bottom: 28px;
        max-width: 100%;
    }
    .hero-lead br { display: none; }
    .hero-ctas {
        gap: 16px;
        max-width: 360px;
        width: 100%;
    }
    .hero-ctas .btn-lg { padding: 16px 22px; font-size: 12px; width: 100%; }
    .hero-ctas .btn-link {
        padding: 10px 0;
        align-self: flex-start;
        min-height: 44px;
        align-items: center;
    }

    /* SECTION TYPOGRAPHY */
    .section { padding: 56px 0; }
    .about-wrap { gap: 28px; }
    .about-row { gap: 14px; }
    .about-lead { margin-top: 6px; }
    .about-sub { padding-top: 18px; font-size: 14.5px; line-height: 1.6; }

    /* CASES — slightly larger image area + better tap target */
    .cases-side { margin-bottom: 6px; }
    .cases-side .h2 { margin-bottom: 14px; }
    /* The "see all cases" link points to #cases — redundant on mobile where
       the cards sit directly below it, so hide it to drop a dead-end tap. */
    .cases-side .btn-link { display: none; }
    .cases-grid { gap: 14px; }
    .case-card { padding: 18px 18px 20px; }
    .case-image { aspect-ratio: 16/11; margin: 0 -18px 16px; }
    .case-title { font-size: 16px; line-height: 1.2; margin-bottom: 10px; }
    .case-text { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
    .case-foot { padding-top: 14px; }
    .case-foot .case-cta { font-size: 11px; letter-spacing: .16em; }

    /* APPROACH — show ghost glyph as quiet visual rhythm */
    .approach-wrap { gap: 28px; }
    .approach-steps { border-top: 1px solid var(--c-line-soft); }
    .step {
        padding: 22px 0;
        column-gap: 16px;
        row-gap: 10px;
    }
    .step-num { font-size: 42px; line-height: .9; }
    .step-title { font-size: 17px; padding-top: 10px; letter-spacing: 0; }
    .step-text { font-size: 14.5px; line-height: 1.55; max-width: 100%; }

    /* CONTACTS — softer metadata, real tap targets */
    .contacts { padding: 64px 0 56px; }
    .contacts-side .h2 { margin-bottom: 14px; }
    .contacts-lead {
        font-size: clamp(22px, 6.6vw, 30px);
        line-height: 1.18;
        margin-bottom: 14px;
    }
    .contacts-sub { font-size: 14.5px; line-height: 1.6; }
    .contacts-meta {
        padding-top: 22px;
        margin-top: 22px;
        gap: 4px;
    }
    .contacts-meta li {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 14px;
        padding: 12px 0;
    }
    .contacts-meta li span {
        font-family: var(--f-mono);
        font-size: 10.5px;
        letter-spacing: .2em;
        min-width: 70px;
    }
    .contacts-meta li strong {
        font-family: var(--f-sans);
        font-size: 14px;
        letter-spacing: 0;
        font-weight: 500;
        color: var(--c-paper);
        text-align: left;
        line-height: 1.4;
    }
    .contacts-list { border-top-color: rgba(255, 255, 255, .12); }
    .contact-row {
        gap: 14px;
        padding: 18px 0;
        min-height: 64px;
        align-items: center;
        border-bottom-color: rgba(255, 255, 255, .12);
    }
    .contact-row:active { background: rgba(255, 255, 255, .03); }
    .contact-ico { width: 22px; height: 22px; flex-shrink: 0; }
    .contact-label { font-size: 10.5px; letter-spacing: .2em; }
    .contact-value { font-size: 15px; line-height: 1.3; }
    .contact-value svg { width: 14px; height: 14px; }

    /* FOOTER — three rows, all visible */
    .site-footer { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        font-size: 10.5px;
        letter-spacing: .14em;
    }
    .foot-col, .foot-col-center, .foot-col-end { text-align: left; }
    .foot-nav {
        justify-content: flex-start;
        gap: 4px 18px;
        flex-wrap: wrap;
    }
    .foot-nav a,
    .foot-link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 6px 0;
    }

    /* CONSENT + PRIVACY */
    .consent-banner {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .consent-copy {
        display: grid;
        gap: 5px;
    }
    .consent-copy strong { font-size: 10px; letter-spacing: .14em; }
    .consent-copy p { font-size: 13px; line-height: 1.35; }
    .consent-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }
    .consent-btn {
        width: 100%;
        min-height: 40px;
        padding: 10px 6px;
        font-size: 9px;
        letter-spacing: .08em;
    }
    .privacy-hero {
        min-height: auto;
        padding: 118px max(var(--gutter), env(safe-area-inset-right)) 58px max(var(--gutter), env(safe-area-inset-left));
    }
    .privacy-back { margin-bottom: 34px; }
    .privacy-eyebrow { font-size: 10px; letter-spacing: .22em; }
    .privacy-hero h1 {
        font-size: clamp(31px, 9.2vw, 48px);
        line-height: 1;
        margin-bottom: 18px;
    }
    .privacy-hero p { font-size: 16px; }
    .privacy-content {
        padding: 44px max(var(--gutter), env(safe-area-inset-right)) 74px max(var(--gutter), env(safe-area-inset-left));
    }
    .privacy-doc { gap: 34px; }
    .privacy-block { padding-top: 20px; }
    .privacy-block p,
    .privacy-block li { font-size: 15px; line-height: 1.64; }
    .privacy-table th,
    .privacy-table td { padding: 12px 14px; }

    /* CASE MODAL — tighter chrome, comfortable scroll */
    .case-modal-bar { padding: 10px 16px; gap: 10px; }
    .case-modal-num { font-size: 10.5px; letter-spacing: .2em; }
    .case-modal-close {
        padding: 9px 12px;
        min-height: 36px;
        font-size: 10px;
    }
    .case-modal-content { padding: 28px 18px 44px; }
    .case-modal-hero { margin-bottom: 36px; }
    .case-modal-title {
        font-size: clamp(30px, 9.2vw, 44px);
        line-height: 1;
        margin-bottom: 20px;
    }
    .case-modal-lead { font-size: 15.5px; line-height: 1.55; }
    .case-modal-eyebrow { margin-bottom: 20px; }
    .case-modal-meta { gap: 18px; margin-bottom: 36px; padding-top: 22px; }
    .case-modal-meta p { font-size: 14.5px; }
    .case-modal-stats {
        gap: 18px;
        padding: 20px 0;
        margin-bottom: 36px;
    }
    .case-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 4px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }
    .case-stat:last-child { border-bottom: 0; }
    .case-stat-num { font-size: 36px; letter-spacing: -.03em; }
    .case-stat-label { font-size: 10.5px; letter-spacing: .16em; }

    /* MODAL CTAs and next-link — better tap, no overlap */
    .case-modal-foot-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        font-size: 16px;
    }
    .case-modal-foot-cta .btn { align-self: stretch; justify-content: center; }
    .case-modal-next {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 8px 14px;
    }
    .case-modal-next-title {
        flex: 1 1 100%;
        font-size: 17px;
        line-height: 1.18;
    }
    .case-modal-next svg { margin-left: 0; }

    /* VIZ — TIGHTER FRAMES */
    .viz-frame { padding: 14px 12px; }
    .viz-cap { margin-bottom: 16px; gap: 6px; }
    .viz-title { font-size: 16px; line-height: 1.18; }
    .viz-desc { font-size: 13.5px; }
    .viz-eyebrow { font-size: 10px; letter-spacing: .22em; }

    /* MATRIX (case 1) — switch from 2x2 grid to readable list */
    .viz-quad {
        padding: 10px;
        gap: 6px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .viz-quad-axis-y {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0;
        order: 0;
        font-size: 9.5px;
        letter-spacing: .18em;
    }
    .viz-quad-axis-y span:nth-child(2) { color: #ff8a8a; }
    .viz-quad-axis-x {
        order: 2;
        padding: 0;
        font-size: 9.5px;
        letter-spacing: .18em;
    }
    .viz-quad-grid {
        order: 1;
        min-height: 420px;
        aspect-ratio: auto;
    }
    .viz-quad-cell { padding: 8px 10px; }
    .viz-quad-tag {
        gap: 1px;
        max-width: 86%;
    }
    .viz-quad-tag strong { font-size: 9px; letter-spacing: .06em; line-height: 1.3; }
    .viz-quad-tag em { font-size: 8px; letter-spacing: .04em; line-height: 1.25; }
    .viz-quad-dot { gap: 4px; }
    .viz-quad-dot .vdot { width: 7px; height: 7px; }
    .viz-quad-dot .vname {
        font-size: 9px;
        letter-spacing: .04em;
        padding: 1px 4px;
        background: rgba(10, 10, 10, .55);
        border-radius: 1px;
    }
    .viz-quad-dot-accent .vdot { width: 11px; height: 11px; box-shadow: 0 0 0 3px rgba(215, 255, 47, .15); }
    .viz-quad-dot-accent .vname { font-size: 10px; background: rgba(10, 10, 10, .65); }

    /* SHIFT (case 1) — already stacks at 900px, polish */
    .viz-shift { grid-template-columns: 1fr; }
    .viz-shift-col { padding: 18px 18px; gap: 12px; }
    .viz-shift-arrow {
        padding: 10px 0;
        border: 0;
        border-top: 1px dashed rgba(255, 255, 255, .15);
        border-bottom: 1px dashed rgba(255, 255, 255, .15);
        transform: none;
    }
    .viz-shift-arrow svg { transform: rotate(90deg); width: 40px; height: 20px; }
    .viz-shift-col li { font-size: 13.5px; line-height: 1.4; }
    .viz-shift-label { font-size: 10.5px; letter-spacing: .2em; }

    /* FUNNELS (case 2) — already stacks; fix the dark labels */
    .viz-funnel { padding: 18px 16px; gap: 12px; }
    .viz-funnel-svg { max-height: 170px; }
    .viz-funnel-svg .viz-fn,
    .viz-funnel-2 .viz-funnel-svg text,
    .viz-funnel-3 .viz-funnel-svg text {
        fill: #c4beb1;
        font-size: 11.5px;
    }
    .viz-funnel-1 .viz-funnel-svg text { fill: var(--c-accent); }
    .viz-funnel-2 .viz-funnel-svg path,
    .viz-funnel-2 .viz-funnel-svg line,
    .viz-funnel-3 .viz-funnel-svg path,
    .viz-funnel-3 .viz-funnel-svg line {
        stroke: #a6a094;
    }
    .viz-funnel-type { font-size: 11.5px; letter-spacing: .14em; }
    .viz-funnel-tag { font-size: 10px; letter-spacing: .2em; }
    .viz-funnel-meta li { font-size: 12px; padding: 7px 0; }

    /* GROWTH CHART (case 2) — give labels breathing room, simpler axes */
    .case-viz-growth .viz-svg { font-size: 11px; }
    .case-viz-growth .viz-callout text { font-size: 12px; }

    /* PIPELINE (case 3) — stacked vertical card flow on mobile */
    .case-viz-pipeline .viz-frame {
        padding: 12px;
        overflow: visible;
    }
    .case-viz-pipeline .viz-svg { display: none; }
    .viz-pipeline-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .vps-group {
        background: rgba(255, 255, 255, .03);
        border: 1px solid rgba(255, 255, 255, .1);
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .vps-group.is-accent {
        background: rgba(215, 255, 47, .06);
        border-color: rgba(215, 255, 47, .35);
    }
    .vps-h {
        font-family: var(--f-mono);
        font-size: 9.5px;
        letter-spacing: .22em;
        color: var(--c-accent);
        text-transform: uppercase;
    }
    .vps-items {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .vps-items span {
        font-family: var(--f-mono);
        font-size: 10.5px;
        letter-spacing: .08em;
        padding: 6px 10px;
        border: 1px solid rgba(255, 255, 255, .18);
        color: var(--c-paper);
        text-transform: uppercase;
    }
    .vps-items.is-accent span {
        color: var(--c-accent);
        border-color: rgba(215, 255, 47, .5);
        background: rgba(215, 255, 47, .06);
    }
    .vps-sub {
        font-family: var(--f-mono);
        font-size: 9.5px;
        letter-spacing: .12em;
        color: var(--c-muted-d);
        text-transform: uppercase;
    }
    .vps-arrow {
        text-align: center;
        color: var(--c-accent);
        font-family: var(--f-mono);
        font-size: 18px;
        line-height: 1;
        padding: 2px 0;
        opacity: .55;
    }
    .vps-strip {
        margin-top: 8px;
        padding: 12px 14px;
        border: 1px dashed rgba(255, 255, 255, .15);
        font-family: var(--f-mono);
        font-size: 9px;
        letter-spacing: .16em;
        color: var(--c-muted-d);
        text-align: center;
        line-height: 1.55;
        text-transform: uppercase;
    }
}

/* Hide the mobile stack on tablet+ */
@media (min-width: 801px) {
    .viz-pipeline-stack { display: none !important; }
}

@media (max-width: 800px) {

    /* QUESTIONS TABLE (case 3) — stacked card per row, no redundant header */
    .viz-questions .viz-q-head { display: none; }
    .viz-q-row { padding: 4px 0 14px; }
    .viz-q-row > div {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
        position: relative;
    }
    .viz-q-row > div:last-child { border-bottom: 0; }
    .viz-q-q { font-size: 15px !important; padding-top: 16px; padding-bottom: 12px; }
    .viz-q-before {
        font-size: 13px !important;
    }
    .viz-q-before::before,
    .viz-q-after::before {
        content: "БЫЛО";
        display: block;
        font-family: var(--f-mono);
        font-size: 9px;
        letter-spacing: .22em;
        color: var(--c-muted-d);
        margin-bottom: 4px;
        text-transform: uppercase;
    }
    .viz-q-after::before {
        content: "СТАЛО";
        color: var(--c-accent);
    }
    .viz-q-after { font-size: 13.5px !important; }

    /* CASE MODAL LISTS */
    .case-list li { font-size: 14px; padding: 10px 0 10px 20px; }
    .case-list li::before { top: 20px; }
    .case-decisions li { padding: 14px 0 14px 36px; font-size: 14px; }
    .case-decisions li::before { top: 14px; font-size: 11px; }
    .case-callout { padding: 16px 18px; margin: 18px 0; }
    .case-callout-label { font-size: 9.5px; letter-spacing: .2em; }
    .case-callout p { font-size: 14px; line-height: 1.55; }
    .case-block { padding: 18px 16px; }
    .case-block h4 { font-size: 15.5px; }
    .case-block p { font-size: 13.5px; }
}

/* Narrow phones (≤ 360px) */
@media (max-width: 360px) {
    :root { --gutter: 18px; }
    .hero-title { font-size: clamp(28px, 9vw, 36px); }
    .h2 { font-size: clamp(26px, 8vw, 32px); }
    .about-lead { font-size: clamp(22px, 7vw, 30px); }
    .nav-toggle { width: 40px; height: 40px; }
    .case-modal-title { font-size: clamp(26px, 8.6vw, 36px); }
    .case-stat-num { font-size: 32px; }
    .step-num { font-size: 38px; }
    .step-title { font-size: 16px; padding-top: 8px; }
    .contacts-meta li span { min-width: 60px; }
}

/* Prevent iOS form/button auto-zoom — already covered by 16px base */
@supports (-webkit-touch-callout: none) {
    .hero-lead, .case-modal-lead, .case-section p { font-size: max(15.5px, 15.5px); }
}
