@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --bg: #17191f;
    --panel: #20232a;
    --line: #454952;
    --text: #f1f1f2;
    --muted: #9b9ea7;
    --white: #f5f5f3;
    --max: 1240px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.55
}

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

.container {
    width: min(calc(100% - 64px), var(--max));
    margin: auto
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font: 27px "Space Grotesk";
    letter-spacing: -.08em
}

.logo span {
    color: #9da0a7
}

.nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #b5b7bd
}

.nav-links a:hover, .nav-links a.active {
    color: #fff
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--white);
    color: #17191f;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .25s
}

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

.btn.dark {
    background: transparent;
    color: #eee
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 22px
}

.eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #a8abb2;
    font-weight: 600
}

.hero {
    min-height: 570px;
    display: grid;
    grid-template-columns:1.15fr .85fr;
    align-items: end;
    gap: 30px
}

.hero-copy {
    padding-bottom: 70px
}

.hero h1 {
    font: clamp(65px, 9.3vw, 132px)/.82 "Space Grotesk";
    letter-spacing: -.075em;
    margin: 14px 0 22px;
    text-transform: uppercase
}

.hero h1 span {
    display: block
}

.hero p {
    max-width: 600px;
    color: #b5b7bd;
    font-size: 15px;
    margin: 0 0 28px
}

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

.hero-art {
    height: 540px;
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.availability {
    position: absolute;
    right: 18px;
    bottom: 26px;
    text-align: right
}

.availability small {
    display: block;
    color: #8f929a;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.availability strong {
    font: 22px "Space Grotesk";
    text-transform: uppercase
}

.stats {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden
}

.stat {
    padding: 24px 18px;
    text-align: center;
    border-right: 1px solid var(--line)
}

.stat:last-child {
    border: 0
}

.stat strong {
    display: block;
    font: 40px "Space Grotesk";
    letter-spacing: -.06em
}

.stat span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #8f929a
}

.section {
    padding: 78px 0
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px
}

.section-head h2, .page-title h1 {
    font: 48px/.95 "Space Grotesk";
    letter-spacing: -.06em;
    margin: 7px 0 0
}

.section-head a {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #aaaeb5
}

.projects-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px
}

.project-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: .25s
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #737780
}

.project-thumb {
    aspect-ratio: 1.48;
    overflow: hidden
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s
}

.project-card:hover img {
    transform: scale(1.03)
}

.project-info {
    padding: 17px
}

.project-info h3 {
    font: 23px/1 "Space Grotesk";
    margin: 0 0 8px
}

.project-info p {
    font-size: 12px;
    color: #999da5;
    margin: 0 0 14px
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.tag, .filter {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #c4c6cb;
    border: 1px solid #484b54;
    padding: 5px 8px;
    border-radius: 999px
}

.split, .about-grid, .contact-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px
}

.capabilities {
    display: grid;
    grid-template-columns:1fr 1fr
}

.cap {
    padding: 24px 0;
    border-bottom: 1px solid var(--line)
}

.cap h3 {
    font: 17px "Space Grotesk";
    margin: 0 0 6px
}

.cap p {
    font-size: 12px;
    color: #999da5;
    margin: 0
}

.stack-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 9px;
    margin-top: 14px
}

.stack {
    padding: 14px;
    border: 1px solid #42454e;
    border-radius: 12px;
    background: #252830
}

.stack b {
    font: 15px "Space Grotesk"
}

.stack small {
    display: block;
    color: #898d96;
    font-size: 10px;
    margin-top: 4px
}

.process {
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden
}

.step {
    padding: 22px;
    border-right: 1px solid var(--line)
}

.step:last-child {
    border: 0
}

.step .num {
    color: #777b84;
    font-size: 10px
}

.step h3 {
    font: 16px "Space Grotesk";
    margin: 13px 0 6px
}

.step p {
    color: #8f939b;
    font-size: 10px;
    margin: 0
}

.cta {
    padding: 38px;
    background: linear-gradient(120deg, #777a80, #252830 48%, #1c1e24);
    border: 1px solid #646770;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta h2 {
    font: 44px/.9 "Space Grotesk";
    letter-spacing: -.06em;
    margin: 0
}

.page-hero {
    padding: 75px 0 50px;
    border-bottom: 1px solid var(--line)
}

.page-title h1 {
    font-size: clamp(58px, 9vw, 110px);
    max-width: 900px;
    margin: 14px 0
}

.page-title p {
    max-width: 680px;
    color: #a4a7ae;
    font-size: 15px
}

.portrait-panel {
    min-height: 620px;
    padding: 0;
    overflow: hidden
}

.portrait-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.prose {
    font-size: 15px;
    color: #b2b5bc
}

.prose p {
    margin: 0 0 22px
}

.prose strong {
    color: #fff
}

.timeline {
    border-top: 1px solid var(--line)
}

.timeline-item {
    display: grid;
    grid-template-columns:150px 1fr;
    gap: 30px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line)
}

.timeline-item time {
    font-size: 11px;
    color: #7f838c
}

.timeline-item h3 {
    font: 22px "Space Grotesk";
    margin: 0 0 6px
}

.timeline-item p {
    color: #989ca4;
    font-size: 12px;
    margin: 0
}

.filterbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.filter {
    background: transparent;
    cursor: pointer;
    padding: 9px 14px
}

.filter.active, .filter:hover {
    background: #e9e9e7;
    color: #181a1f
}

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

.article {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    transition: .25s
}

.article:hover {
    transform: translateY(-3px);
    border-color: #737780
}

.article-meta {
    font-size: 9px;
    color: #858991;
    text-transform: uppercase;
    letter-spacing: .14em
}

.article h2 {
    font: 30px/.98 "Space Grotesk";
    letter-spacing: -.04em;
    margin: 30px 0 10px
}

.article p {
    font-size: 12px;
    color: #999da5;
    margin: 0
}

.article .read {
    margin-top: auto;
    padding-top: 22px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em
}

.article-body {
    max-width: 820px;
    margin: auto
}

.article-body h1 {
    font: clamp(48px, 7vw, 90px)/.9 "Space Grotesk";
    letter-spacing: -.06em;
    margin: 14px 0 22px
}

.article-body .lead {
    font-size: 18px;
    color: #b6b9c0
}

.article-body h2 {
    font: 30px "Space Grotesk";
    margin-top: 55px
}

.article-body p {
    color: #adb0b7;
    font-size: 15px
}

.code {
    background: #111318;
    border: 1px solid #41444d;
    border-radius: 14px;
    padding: 20px;
    overflow: auto;
    color: #d8d9dc;
    font: 12px/1.7 ui-monospace, monospace
}

.contact-details {
    display: grid;
    gap: 10px
}

.contact-item {
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px
}

.contact-item span {
    display: block;
    font-size: 9px;
    color: #7f838c;
    text-transform: uppercase;
    letter-spacing: .14em
}

.contact-item a, .contact-item strong {
    display: block;
    font: 20px "Space Grotesk";
    margin-top: 7px
}

form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px
}

.form-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 15px
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px
}

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

.field label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #8f939b
}

.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid #444750;
    background: #191b21;
    color: #eee;
    border-radius: 10px;
    padding: 13px;
    font: inherit;
    outline: none
}

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

.notice {
    display: none;
    margin-top: 15px;
    border: 1px solid #555963;
    padding: 12px;
    border-radius: 10px;
    color: #c8cad0;
    font-size: 12px
}

.notice.show {
    display: block
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: .65s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

footer {
    border-top: 1px solid var(--line);
    padding: 25px 0;
    color: #777b84;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.footer-row {
    display: flex;
    justify-content: space-between
}

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 34px), var(--max))
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 17px;
        right: 17px;
        background: #1b1d23;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        z-index: 20
    }

    .nav-links.open {
        display: flex
    }

    .menu-btn {
        display: block
    }

    .nav > .btn {
        display: none
    }

    .hero {
        grid-template-columns:1fr
    }

    .hero-copy {
        padding-bottom: 25px
    }

    .hero-art {
        height: 430px
    }

    .hero h1 {
        font-size: clamp(58px, 16vw, 100px)
    }

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

    .stat:nth-child(2) {
        border-right: 0
    }

    .projects-grid, .split, .about-grid, .contact-grid, .article-grid {
        grid-template-columns:1fr
    }

    .process {
        grid-template-columns:1fr
    }

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

    .step:last-child {
        border: 0
    }

    .capabilities {
        grid-template-columns:1fr
    }

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

    .timeline-item {
        grid-template-columns:1fr;
        gap: 7px
    }

    .cta {
        display: block
    }

    .cta .btn {
        margin-top: 24px
    }

    .form-grid {
        grid-template-columns:1fr
    }

    .field.full {
        grid-column: auto
    }
}

@media (max-width: 520px) {
    .section {
        padding: 55px 0
    }

    .section-head h2 {
        font-size: 38px
    }

    .page-title h1 {
        font-size: 54px
    }

    .hero-art {
        height: 360px
    }

    .stat strong {
        font-size: 32px
    }

    .cta h2 {
        font-size: 36px
    }

    .footer-row {
        flex-direction: column;
        gap: 10px
    }
}

.tech-browser {
    display: grid;
    grid-template-columns:280px 1fr;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel)
}

.tech-tabs {
    padding: 12px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px
}

.tech-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    text-align: left;
    padding: 14px;
    border-radius: 10px;
    font: 600 13px "Space Grotesk";
    cursor: pointer
}

.tech-tab:hover, .tech-tab.active {
    color: var(--text);
    background: #292c34;
    border-color: var(--line)
}

.tech-content {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    min-height: 260px
}

.tech-item {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #252830;
    font-size: 13px
}

.feedback-section {
    border-top: 1px solid var(--line)
}

.feedback-card {
    display: grid;
    grid-template-columns:.8fr 1.2fr;
    gap: 40px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel)
}

.feedback-card h2 {
    font: 38px/.95 "Space Grotesk";
    margin: 8px 0 12px
}

.feedback-card p {
    color: var(--muted);
    font-size: 13px
}

.feedback-form {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.feedback-form .field.full {
    grid-column: 1/-1
}

.feedback-form .btn, .feedback-form .notice {
    align-self: start
}

.feedback-form .notice {
    grid-column: 1/-1
}

@media (max-width: 760px) {
    .tech-browser, .feedback-card {
        grid-template-columns:1fr
    }

    .tech-tabs {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        overflow: auto
    }

    .tech-tab {
        white-space: nowrap
    }

    .feedback-form {
        grid-template-columns:1fr
    }

    .feedback-card {
        gap: 24px
    }

    .tech-content {
        min-height: 180px;
        padding: 20px
    }
}

.hero-art img[src*="portrait-damir"], .portrait-panel img[src*="portrait-damir"] {
    object-position: center 18%;
    filter: contrast(1.04) saturate(.92)
}

/* Reference-inspired homepage redesign */
body {
    background: #11151d;
    background-image: radial-gradient(circle at 50% 24%, rgba(71, 78, 94, .24), transparent 31%), radial-gradient(circle at 2% 55%, rgba(82, 87, 95, .15), transparent 13%), radial-gradient(circle at 98% 57%, rgba(55, 62, 72, .13), transparent 15%)
}

.nav {
    height: 76px;
    position: relative;
    z-index: 5
}

.logo {
    font-weight: 700;
    color: #f4f4f5
}

.nav-links {
    gap: 37px
}

.nav-links a.active {
    color: #fff;
    position: relative
}

.nav-links a.active:after {
    content: "";
    position: absolute;
    width: 58px;
    height: 1px;
    background: #d9dde4;
    left: 50%;
    transform: translateX(-50%);
    bottom: -19px
}

.nav > .btn {
    padding: 13px 27px;
    border: 0
}

.hero-reference {
    min-height: 635px;
    display: grid;
    grid-template-columns:48% 52%;
    gap: 0;
    position: relative;
    overflow: visible;
    background: linear-gradient(90deg, #11151d 0%, transparent 16%, transparent 82%, #11151d 100%);
}

.hero-reference .hero-copy {
    padding: 28px 0 34px;
    z-index: 3
}

.availability-pill {
    width: max-content;
    padding: 8px 16px;
    border: 1px solid #3e4654;
    border-radius: 999px;
    color: #c7cbd2;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .14em;
    margin-bottom: 26px;
    background: rgba(32, 37, 47, .58)
}

.availability-pill span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #59c57b;
    margin-right: 9px;
    vertical-align: 1px
}

.hero-role {
    font-size: 15px;
    letter-spacing: .48em;
    color: #aeb7c7;
    margin-bottom: 8px
}

.hero-reference h1 {
    font-family: Impact, "Arial Narrow", "Space Grotesk", sans-serif;
    font-weight: 900;
    font-size: clamp(84px, 10.1vw, 156px);
    line-height: .8;
    letter-spacing: -.045em;
    margin: 0 0 11px;
    color: #e6e7e8;
    text-shadow: 0 12px 45px rgba(0, 0, 0, .25)
}

.hero-specialties {
    font: 600 20px "Space Grotesk";
    letter-spacing: .24em;
    color: #b5bac4;
    margin: 4px 0 13px
}

.hero-specialties i {
    font-style: normal;
    color: #727a88;
    padding: 0 3px
}

.hero-reference p {
    max-width: 475px;
    color: #9ca4b2;
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 23px
}

.hero-actions {
    align-items: center
}

.hero-actions .btn {
    padding: 13px 28px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, .08)
}

.hero-actions b {
    font-size: 17px;
    font-weight: 400
}

.download-link {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #c5c8ce;
    padding: 12px 16px
}

.download-link b {
    font-size: 18px;
    margin-left: 8px
}

.socials {
    display: flex;
    gap: 26px;
    margin-top: 19px;
    align-items: center
}

.socials a {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #d8dbe0;
    font-weight: 700;
    font-size: 16px;
    opacity: .9
}

.socials a:nth-child(2) {
    font-size: 14px;
    border: 1px solid #aeb3bc;
    border-radius: 2px;
    height: 18px;
    width: 18px
}

.hero-reference .hero-art {
    height: 635px;
    position: relative;
    overflow: visible;
    border-radius: 0;
    background: radial-gradient(circle at 52% 42%, #2b303c, transparent 43%)
}

.hero-reference .hero-art:after {
    content: "";
    position: absolute;
    inset: 0;
    /*background: linear-gradient(90deg, #11151d 0%, transparent 16%, transparent 82%, #11151d 100%);*/
    pointer-events: none
}

.hero-reference .hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 47% 50%;
    filter: contrast(1.03) saturate(.82) brightness(.92);
    mix-blend-mode: lighten
}

.portrait-ring {
    position: absolute;
    width: 570px;
    height: 570px;
    border: 1px solid rgba(151, 161, 180, .45);
    border-radius: 50%;
    top: 20px;
    left: 10px;
    z-index: 0
}

.spark {
    position: absolute;
    right: 10%;
    top: 43%;
    font-size: 38px;
    color: #e8ebf0;
    z-index: 2
}

.hero-meta {
    position: absolute;
    right: 0;
    bottom: 67px;
    z-index: 3;
    color: #aeb5c0
}

.location {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .12em;
    line-height: 1.35;
    margin-bottom: 24px
}

.location:first-letter {
    font-size: 22px
}

.location b {
    font-weight: 500;
    color: #e2e4e7
}

.experience-badge {
    margin-left: 18px;
    width: 142px;
    padding: 19px 17px;
    border: 1px solid #48505f;
    border-radius: 17px;
    background: rgba(29, 34, 43, .72);
    display: grid;
    grid-template-columns:10px 1fr;
    column-gap: 8px;
    align-items: center
}

.experience-badge em {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55c779
}

.experience-badge strong {
    font: 600 13px "Space Grotesk";
    text-transform: uppercase
}

.experience-badge small {
    grid-column: 2;
    color: #9ca4b1;
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: .14em;
    margin-top: 2px
}

.stats-reference {
    margin-top: 4px;
    position: relative;
    z-index: 4;
    border-radius: 15px;
    background: rgba(23, 28, 37, .9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18)
}

.stats-reference .stat {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: left;
    padding: 20px 22px
}

.stat-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid #343c4b;
    background: radial-gradient(circle at 30% 25%, #2b3340, #1a1f29);
    font: 500 22px "Space Grotesk";
    color: #e0e3e8
}

.stats-reference .stat strong {
    font-size: 41px;
    line-height: 1
}

.stats-reference .stat span {
    display: block;
    margin-top: 4px;
    letter-spacing: .06em;
    text-transform: none;
    font-size: 11px;
    color: #a8afbb
}

.tech-strip {
    padding: 39px 0 29px
}

.tech-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px
}

.tech-strip-head span {
    font-size: 9px;
    color: #9ca5b2;
    text-transform: uppercase;
    letter-spacing: .12em
}

.tech-strip-items {
    display: grid;
    grid-template-columns:repeat(9, 1fr);
    gap: 10px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(67, 74, 88, .32)
}

.tech-strip-items div {
    min-height: 64px;
    border: 1px solid #394252;
    border-radius: 10px;
    background: rgba(27, 32, 41, .72);
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    place-items: center;
    color: #bfc4cc;
    font-size: 11px;
    transition: .25s
}

.tech-strip-items i {
    font-size: 26px;
}

.tech-strip-items div:hover {
    transform: translateY(-3px);
    border-color: #778294;
    color: #fff
}

@media (max-width: 900px) {
    .hero-reference {
        grid-template-columns:1fr;
        min-height: auto
    }

    .hero-reference .hero-copy {
        padding: 45px 0 20px
    }

    .hero-reference .hero-art {
        height: 520px
    }

    .portrait-ring {
        left: 50%;
        transform: translateX(-50%)
    }

    .hero-meta {
        right: 3%
    }

    .tech-strip-items {
        grid-template-columns:repeat(3, 1fr)
    }

    .stats-reference {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (max-width: 620px) {
    .nav-links a.active:after {
        display: none
    }

    .hero-role {
        font-size: 11px
    }

    .hero-specialties {
        font-size: 15px;
        letter-spacing: .12em
    }

    .hero-reference h1 {
        font-size: 24vw
    }

    .hero-reference .hero-art {
        height: 430px
    }

    .portrait-ring {
        width: 390px;
        height: 390px;
        top: 20px
    }

    .hero-meta {
        bottom: 18px
    }

    .spark {
        right: 8%;
        top: 25%
    }

    .stats-reference .stat {
        min-height: 112px;
        gap: 12px;
        padding: 14px 8px
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        font-size: 16px
    }

    .stats-reference .stat strong {
        font-size: 31px
    }

    .stats-reference .stat span {
        font-size: 9px
    }

    .tech-strip-items {
        grid-template-columns:repeat(2, 1fr)
    }

    .tech-strip {
        padding-top: 30px
    }

    .experience-badge {
        width: 120px;
        padding: 14px 12px
    }

    .location {
        font-size: 8px
    }
}

/* Global brand + language selector */
.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(67, 74, 88, .32);
    background: rgba(17, 21, 29, .72);
    backdrop-filter: blur(16px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 235px
}

.brand-mark {
    display: grid;
    place-items: center;
    font: 800 25px/1 "Space Grotesk";
    letter-spacing: -.12em;
    color: #f4f5f7
}

.brand-name {
    font: 500 12px/1 "Space Grotesk";
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e0e2e6
}

.nav {
    height: 76px
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.language-selector {
    position: relative;
    background: none;
    border: none;
    padding: 0px;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #3c4451;
    background: #1a1f28;
    color: #e7e9ec;
    border-radius: 999px;
    padding: 10px 12px;
    font: 600 10px "Space Grotesk";
    letter-spacing: .1em;
    cursor: pointer
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 190px;
    padding: 7px;
    border: 1px solid #3e4654;
    border-radius: 14px;
    background: #171c24;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    display: none
}

.language-selector.open .language-menu {
    display: grid;
    gap: 3px
}

.language-menu button {
    display: grid;
    grid-template-columns:22px 30px 1fr;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #bfc4cc;
    padding: 10px;
    border-radius: 9px;
    text-align: left;
    cursor: pointer
}

.language-menu button:hover, .language-menu button.selected {
    background: #252b35;
    color: #fff
}

.language-menu small {
    color: #7f8795;
    font-size: 9px
}

.nav-cta {
    padding: 11px 18px
}

.nav-links a.active {
    color: #fff
}

.nav-links a.active:after {
    display: none
}

/* Listing controls */
.content-toolbar {
    display: grid;
    /*grid-template-columns:1.5fr repeat(3, minmax(130px, .55fr));*/
    grid-template-columns: 1.6fr repeat(4, minmax(135px, .65fr)) auto;
    gap: 9px;
    margin-bottom: 24px
}

.content-toolbar input, .content-toolbar select {
    width: 100%;
    border: 1px solid #3d4552;
    background: #181d25;
    color: #dfe2e7;
    border-radius: 10px;
    padding: 12px 13px;
    font: 500 11px "DM Sans";
    outline: none
}

.content-toolbar input::placeholder {
    color: #707784
}

.content-toolbar select {
    cursor: pointer
}

.content-toolbar input:focus, .content-toolbar select:focus {
    border-color: #687384
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #747c89;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em
}

.content-card {
    display: flex
}

.content-card[hidden] {
    display: none !important
}

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center
}

.language-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.language-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #46505e;
    background: #1b2029;
    color: #cbd0d7;
    border-radius: 999px;
    padding: 5px 8px;
    font: 700 8px "Space Grotesk";
    letter-spacing: .06em
}

.language-chip.active {
    background: #e8eaec;
    color: #16191f;
    border-color: #e8eaec
}

.language-chip.disabled {
    opacity: .3;
    cursor: default
}

.detail-language-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 18px 0 26px
}

.detail-language-bar .eyebrow {
    margin: 0
}

.published-on {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 28px 0 8px
}

.published-on a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid #3d4654;
    border-radius: 10px;
    background: #191e26;
    color: #cfd3da;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: .2s
}

.published-on a:hover {
    border-color: #7a8493;
    color: #fff;
    transform: translateY(-2px)
}

.published-note {
    color: #737b88;
    font-size: 10px;
    margin: 0 0 18px
}

.detail-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 14px 0 5px
}

.detail-tags .tag {
    background: #1a2029
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #9ea6b3;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.back-link:hover {
    color: #fff
}

.empty-state {
    padding: 45px;
    text-align: center;
    border: 1px dashed #424b59;
    border-radius: 16px;
    color: #858d99;
    font-size: 12px
}

@media (max-width: 900px) {
    .brand {
        min-width: 0
    }

    .brand-name {
        display: none
    }

    .nav-actions {
        margin-left: auto
    }

    .content-toolbar {
        grid-template-columns:1fr 1fr
    }

    .content-toolbar input {
        grid-column: 1/-1
    }

    .detail-language-bar {
        align-items: flex-start;
        flex-direction: column
    }

    .language-menu {
        right: -30px
    }
}

@media (max-width: 520px) {
    .nav {
        height: 70px
    }

    .brand-mark {
        font-size: 23px
    }

    .nav-actions {
        gap: 6px
    }

    .language-current {
        padding: 9px 10px
    }

    .content-toolbar {
        grid-template-columns:1fr
    }

    .content-toolbar input {
        grid-column: auto
    }

    .card-topline {
        align-items: flex-start;
        flex-direction: column
    }

    .published-on a {
        flex: 1
    }

    .published-on {
        display: grid;
        grid-template-columns:1fr 1fr
    }

    .article h2 {
        font-size: 26px
    }
}

/* V3 enhancements */
.brand {
    min-width: 245px
}

.brand-name {
    display: inline-block
}

.nav-links {
    gap: 24px
}

.nav-actions {
    gap: 8px
}

.nav-cta {
    white-space: nowrap
}

.project-toolbar {
    display: grid;
    grid-template-columns:1.6fr repeat(4, minmax(135px, .65fr)) auto;
    gap: 9px;
    align-items: center;
    margin-bottom: 22px
}

.project-toolbar input, .project-toolbar select {
    width: 100%;
    border: 1px solid #3d4552;
    background: #181d25;
    color: #dfe2e7;
    border-radius: 10px;
    padding: 12px 13px;
    font: 500 11px "DM Sans";
    outline: none
}

.project-toolbar input::placeholder {
    color: #707784
}

.project-toolbar input:focus, .project-toolbar select:focus {
    border-color: #687384
}

.reset-filter {
    background: transparent;
    cursor: pointer;
    padding: 10px 14px
}

.project-toolbar-meta {
    display: flex;
    justify-content: space-between;
    color: #747c89;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 16px
}

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start
}

.card-topline h3 {
    margin: 0
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid #3f4856;
    background: #1a2029;
    color: #cdd2da;
    border-radius: 9px;
    font-size: 9px;
    letter-spacing: .03em
}

.tech-list-large {
    gap: 9px;
    margin-top: 16px
}

.tech-list-large .tech-pill {
    padding: 10px 12px;
    font-size: 10px
}

.tech-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2a313c;
    color: #fff;
    font: 700 9px "Space Grotesk"
}

.project-gallery {
    display: grid;
    grid-template-columns:1.4fr .6fr;
    gap: 12px
}

.project-gallery figure {
    margin: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden
}

.project-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover
}

.project-gallery figcaption {
    padding: 12px 16px;
    color: #858c98;
    font-size: 10px
}

.gallery-note {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.gallery-slot-list {
    display: grid;
    gap: 8px;
    margin-top: 12px
}

.gallery-slot-list span {
    border: 1px dashed #49515f;
    border-radius: 10px;
    padding: 10px;
    color: #8d95a2;
    font-size: 10px
}

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

.service-card {
    min-height: 300px;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    transition: .25s
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #737780
}

.service-card h2 {
    font: 42px/.92 "Space Grotesk";
    letter-spacing: -.06em;
    margin: 20px 0 12px
}

.service-card p {
    color: #9ca1aa;
    font-size: 13px;
    max-width: 560px
}

.service-arrow {
    margin-top: auto;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em
}

.service-landing .page-title p {
    max-width: 760px;
    font-size: 18px
}

.map-section .section-head {
    align-items: flex-end
}

.map-help {
    max-width: 420px;
    color: #858d9a;
    font-size: 11px;
    margin: 0
}

.map-layout {
    display: grid;
    grid-template-columns:1.6fr .4fr;
    gap: 12px
}

.map-panel {
    background: radial-gradient(circle at 50% 40%, #252d38, #171b23 65%);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    min-height: 430px
}

.world-map {
    display: block;
    width: 100%;
    height: auto;
    min-height: 430px
}

.world-map .country {
    fill: #2b313b;
    stroke: #171b22;
    stroke-width: .55;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill .18s, opacity .18s
}

.world-map .country:hover {
    fill: #657080
}

.world-map .country.selected {
    fill: #f0f1ef
}

.world-map .country.dim {
    opacity: .55
}

.map-side {
    padding: 24px
}

.map-country-list {
    display: grid;
    gap: 6px;
    margin-top: 15px;
    max-height: 330px;
    overflow: auto
}

.map-country-button {
    border: 1px solid #394251;
    background: #1b2029;
    color: #bfc5ce;
    border-radius: 9px;
    padding: 9px 10px;
    text-align: left;
    font: 500 10px "DM Sans";
    cursor: pointer;
    display: flex;
    justify-content: space-between
}

.map-country-button.selected {
    background: #e9ebed;
    color: #17191f;
    border-color: #e9ebed
}

.map-note {
    font-size: 10px;
    color: #777f8c;
    margin: 16px 0 0
}

.footer-main {
    display: grid;
    grid-template-columns:1.4fr .7fr .7fr;
    gap: 35px;
    padding: 38px 0 28px
}

.footer-brand .brand {
    margin-bottom: 12px
}

.footer-brand p {
    font-size: 10px;
    color: #747c89;
    text-transform: none;
    letter-spacing: 0
}

.footer-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #747c89;
    margin-bottom: 12px
}

.footer-contact, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.footer-contact a, .footer-social a {
    font-size: 11px;
    color: #b8bec7
}

.footer-contact a:hover, .footer-social a:hover {
    color: #fff
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    color: #777f8b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.footer-legal {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.footer-legal a:hover {
    color: #fff
}

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    background: rgba(21, 25, 32, .97);
    border: 1px solid #48515f;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(18px)
}

.cookie-banner.show {
    display: flex
}

.cookie-banner strong {
    font: 600 16px "Space Grotesk"
}

.cookie-banner p {
    margin: 5px 0 0;
    color: #969eaa;
    font-size: 10px;
    max-width: 680px
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0
}

.inline-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 15px
    }

    .project-toolbar {
        grid-template-columns:1fr 1fr 1fr
    }

    .project-toolbar input {
        grid-column: 1/-1
    }

    .map-layout {
        grid-template-columns:1fr
    }

    .map-side {
        display: grid;
        grid-template-columns:1fr 1fr;
        gap: 15px
    }

    .map-side .eyebrow, .map-side .map-note {
        grid-column: 1/-1
    }

    .map-country-list {
        max-height: 210px
    }

    .footer-main {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 900px) {
    .brand-name {
        display: inline-block
    }

    .nav-links {
        gap: 17px
    }

    .service-grid, .project-gallery {
        grid-template-columns:1fr
    }

    .footer-main {
        grid-template-columns:1fr 1fr
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start
    }

    .cookie-banner {
        align-items: flex-start;
        flex-direction: column
    }

    .cookie-actions {
        width: 100%
    }

    .cookie-actions .btn {
        flex: 1
    }
}

@media (max-width: 760px) {
    .brand {
        min-width: 0
    }

    .brand-name {
        font-size: 10px
    }

    .project-toolbar {
        grid-template-columns:1fr 1fr
    }

    .project-toolbar input {
        grid-column: 1/-1
    }

    .map-side {
        grid-template-columns:1fr
    }

    .footer-main {
        grid-template-columns:1fr
    }

    .nav-actions .nav-cta {
        display: none
    }
}

@media (max-width: 520px) {
    .brand-name {
        display: none
    }

    .project-toolbar {
        grid-template-columns:1fr
    }

    .project-toolbar input {
        grid-column: auto
    }

    .service-card h2 {
        font-size: 34px
    }

    .map-panel, .world-map {
        min-height: 300px
    }

    .world-map {
        height: 300px
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px
    }

    .footer-legal {
        gap: 10px
    }
}


/* ============================================
   SECTION / FILTER PAGES
   ============================================ */
.section-listing-page .page-hero {
    padding-bottom: 42px;
}

.section-listing-page .page-title h1 {
    max-width: 980px;
}

.section-listing-page .section-head {
    margin-bottom: 12px;
}

.section-listing-page .section-head h2 {
    margin: 7px 0 0;
    font: clamp(34px, 5vw, 58px)/.95 "Space Grotesk";
    letter-spacing: -.055em;
}

.section-listing-page .back-link {
    /*margin-bottom: 4px;*/
    white-space: nowrap;
}

/* Section cards shown on Projects / Articles / Blog landing pages */
.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.section-card {
    position: relative;
    min-height: 245px;
    padding: 28px;
    display: flex;
    gap: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.055), transparent 34%),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.section-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -44px;
    bottom: -48px;
    border: 1px solid #3d434d;
    border-radius: 50%;
    opacity: .55;
}

.section-card:hover {
    transform: translateY(-4px);
    border-color: #737780;
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.075), transparent 36%),
        #242830;
}

.section-card-number {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #4b535f;
    border-radius: 50%;
    color: #cdd1d7;
    font: 600 13px "Space Grotesk";
}

.section-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.section-card h2 {
    margin: 10px 0 10px;
    font: 34px/.95 "Space Grotesk";
    letter-spacing: -.055em;
}

.section-card p {
    margin: 0;
    color: #8f949d;
    font-size: 11px;
    line-height: 1.6;
}

.section-card .read {
    margin-top: auto;
    padding-top: 24px;
    color: #e6e7e8;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

/* Listing toolbar */
.section-listing-page .content-toolbar,
.section-listing-page .project-toolbar {
    padding-top: 14px;
    padding-bottom: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
    /*background: #1b2027;*/
    /*border: 1px solid #343b46;*/
    /*border-radius: 14px;*/
}

.section-listing-page .content-toolbar .filter,
.section-listing-page .project-toolbar .filter {
    min-height: 40px;
    border: 1px solid #3d4552;
    border-radius: 10px;
    color: #bfc4cc;
    font: 600 10px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-listing-page .content-toolbar .filter:hover,
.section-listing-page .project-toolbar .filter:hover {
    border-color: #747c88;
    background: #252b34;
    color: #fff;
}

.section-results-meta,
.section-listing-page .project-toolbar-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    color: #747c89;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.section-results-meta [data-content-count],
.section-listing-page [data-project-count] {
    color: #c7cbd1;
}

.section-listing-page .article-grid,
.section-listing-page .projects-grid {
    min-height: 120px;
}

.section-listing-page .empty-state {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .section-listing-page .content-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .section-listing-page .content-toolbar input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .section-card {
        min-height: 210px;
        padding: 22px;
    }

    .section-card h2 {
        font-size: 28px;
    }

    .section-card-number {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .section-results-meta,
    .section-listing-page .project-toolbar-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .section-listing-page .content-toolbar {
        grid-template-columns: 1fr;
    }

    .section-listing-page .content-toolbar input {
        grid-column: auto;
    }
}


/* Database-driven content filters */
.filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    margin-bottom: 32px;
}
.filters input,
.filters select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 12px;
    background: var(--surface, #fff);
    color: inherit;
}
@media (max-width: 900px) {
    .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .filters { grid-template-columns: 1fr; }
}
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 10px;
}
