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

:root {
    --red: #e62b34;
    --red2: #ff4b52;
    --bg: #090a0c;
    --panel: #111318;
    --white: #f5f4ef;
    --muted: #898c91;
    --line: #282b30
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    overflow-x: hidden
}

body.modal-open {
    overflow: hidden
}

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

button {
    font: inherit
}

.nav {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    top: 0;
    height: 82px;
    padding: 0 4.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff1a;
    background: #090a0c9e;
    backdrop-filter: blur(20px);
    transition: .35s
}

.nav.scrolled {
    height: 68px;
    background: #090a0cf5
}

.logo {
    display: flex;
    gap: 11px;
    align-items: center;
    font: 700 14px/1.05 'Space Grotesk';
    letter-spacing: .08em;
    flex-shrink: 0
}

.logo b {
    color: var(--red)
}

.mark {
    width: 39px;
    height: 39px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px
}

.links {
    display: flex;
    gap: clamp(12px, 1.8vw, 27px)
}

.links a {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
    color: #999;
    position: relative;
    padding: 8px 0;
    white-space: nowrap
}

.links a:after {
    content: '';
    position: absolute;
    height: 1px;
    left: 0;
    right: 100%;
    bottom: 0;
    background: var(--red);
    transition: .3s
}

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

.links a:hover:after,
.links a.active:after {
    right: 0
}

.right {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap
}

.lang {
    background: none;
    border: 0;
    color: #666;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer
}

.lang.active {
    color: #fff
}

.nav-cta {
    margin-left: 13px;
    border: 1px solid #fff;
    padding: 11px 14px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em
}

.hamb {
    display: none;
    background: none;
    border: 0
}

.hamb i {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    margin: 6px
}

.references-hero {
    min-height: 690px;
    height: min(94vh, 900px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 130px 8vw 80px;
    background: linear-gradient(90deg, #090a0c 0%, #090a0c 43%, #090a0cdd 72%, #090a0c 100%), radial-gradient(ellipse at 78% 42%, #292b31 0%, #111318 28%, #090a0c 65%)
}

.references-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 119px, #ffffff08 120px), repeating-linear-gradient(0deg, transparent 0 119px, #ffffff08 120px);
    mask-image: linear-gradient(90deg, #000, transparent 95%)
}

.hero-grid {
    position: absolute;
    right: 5vw;
    top: 19%;
    width: 36vw;
    height: 62%;
    border: 1px solid #ffffff14;
    background: linear-gradient(135deg, #ffffff08, transparent 55%);
    transform: skewY(-8deg)
}

.hero-grid:after {
    content: 'BC';
    position: absolute;
    right: -2vw;
    bottom: -7vw;
    font: 700 clamp(180px, 28vw, 430px)/.8 'Space Grotesk';
    letter-spacing: -.1em;
    color: #ffffff08
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px
}

.kicker,
.section-kicker {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .25em;
    color: #a5a7aa
}

.references-hero h1 {
    font: 700 clamp(64px, 10.5vw, 150px)/.82 'Space Grotesk';
    letter-spacing: -.075em;
    margin: 27px 0 30px
}

.references-hero h1 em {
    font-style: normal;
    color: var(--red)
}

.hero-desc {
    max-width: 570px;
    color: #c4c5c6;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 30px
}

.solid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    background: var(--red);
    border: 1px solid var(--red);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
    transition: .3s
}

.solid-btn:hover {
    background: var(--red2);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px #e62b3430
}

.hero-index {
    position: absolute;
    right: 8vw;
    bottom: 8%;
    font: 700 10px/1.8 'Space Grotesk';
    letter-spacing: .2em;
    color: #777;
    text-align: right
}

.projects-section {
    padding: 105px 8vw 115px
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end
}

.section-title {
    font: 700 clamp(58px, 8vw, 112px)/.86 'Space Grotesk';
    letter-spacing: -.065em;
    margin: 18px 0 48px
}

.section-title span {
    color: var(--red)
}

.section-intro {
    max-width: 460px;
    color: #92959a;
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 52px
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 17px 0;
    margin-bottom: 28px
}

.filter {
    background: transparent;
    border: 1px solid #383b40;
    color: #85878b;
    padding: 10px 13px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
    transition: .25s
}

.filter:hover,
.filter.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.project-count {
    margin-left: auto;
    color: #777;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px
}

.reference-card {
    min-width: 0;
    background: #0d0f12;
    border: 1px solid #35383d;
    transition: border-color .3s, transform .3s;
    cursor: pointer
}

.reference-card:hover {
    border-color: var(--red);
    transform: translateY(-5px)
}

.card-image {
    height: 245px;
    position: relative;
    overflow: hidden;
    background: #17191d
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .65s
}

.reference-card:hover .card-image img {
    transform: scale(1.045)
}

.card-image:after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, #090a0c99)
}

.card-number {
    position: absolute;
    top: 15px;
    left: 16px;
    z-index: 1;
    font: 700 11px 'Space Grotesk';
    letter-spacing: .12em
}

.card-arrow {
    position: absolute;
    right: 16px;
    bottom: 15px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 1px solid #ffffff80;
    display: grid;
    place-items: center;
    font-size: 18px
}

.card-copy {
    padding: 22px 22px 24px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start
}

.card-date {
    color: var(--red);
    font: 700 29px/.9 'Space Grotesk';
    letter-spacing: -.05em
}

.card-date small {
    display: block;
    font: 800 8px Manrope;
    letter-spacing: .15em;
    color: #85878b;
    margin-top: 7px
}

.card-category {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .17em;
    color: var(--red)
}

.card-copy h3 {
    font: 600 23px/1.12 'Space Grotesk';
    margin: 8px 0
}

.card-client {
    font-size: 9px;
    color: #777;
    margin: 0
}

.loading-state,
.empty-state,
.error-state {
    grid-column: 1/-1;
    padding: 50px 20px;
    border: 1px solid var(--line);
    color: #92959a;
    text-align: center;
    font-size: 12px;
    line-height: 1.8
}

.references-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 45px;
    align-items: end;
    margin-top: 100px;
    padding-top: 35px;
    border-top: 1px solid var(--line)
}

.references-bottom small {
    font-size: 8px;
    color: #777;
    letter-spacing: .2em
}

.references-bottom h3 {
    font: 700 clamp(52px, 6vw, 78px)/.8 'Space Grotesk';
    letter-spacing: -.07em;
    margin: 15px 0
}

.references-bottom h3 em {
    font-style: normal;
    color: var(--red)
}

.references-bottom p {
    color: #888;
    font-size: 13px;
    line-height: 1.9;
    max-width: 430px;
    margin: 0 0 6px
}

footer {
    padding: 35px 8vw 22px;
    border-top: 1px solid #25272b
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 35px
}

.footlinks {
    display: flex;
    gap: 22px;
    flex-wrap: wrap
}

.footlinks a {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #888
}

.footlinks a:hover {
    color: #fff
}

.bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #25272b;
    padding-top: 18px;
    color: #666;
    font-size: 8px;
    letter-spacing: .08em
}

.reference-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px
}

.reference-modal.open {
    display: flex
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: #000d;
    backdrop-filter: blur(8px)
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #0e1013;
    border: 1px solid #383b40;
    display: grid;
    grid-template-columns: 1.1fr .9fr
}

.modal-close {
    position: absolute;
    z-index: 3;
    right: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    background: #090a0c;
    border: 1px solid #ffffff55;
    color: #fff;
    font-size: 27px;
    cursor: pointer
}

.modal-main-image {
    min-height: 520px;
    background: #17191d center/cover no-repeat
}

.modal-copy {
    padding: 55px 38px 35px
}

.modal-category {
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .2em
}

.modal-copy h2 {
    font: 700 clamp(36px, 4vw, 58px)/.95 'Space Grotesk';
    letter-spacing: -.055em;
    margin: 13px 0 22px
}

.modal-meta {
    display: grid;
    gap: 9px;
    padding: 17px 0;
    border-block: 1px solid var(--line);
    color: #aaa;
    font-size: 10px
}

.modal-client {
    color: #f5f4ef;
    font-size: 11px;
    font-weight: 700;
    margin: 20px 0 8px
}

.modal-description {
    color: #92959a;
    font-size: 12px;
    line-height: 1.85
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 25px
}

.gallery-thumbs button {
    padding: 0;
    border: 1px solid #35383d;
    background: #111;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer
}

.gallery-thumbs button.active {
    border: 2px solid var(--red)
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

@media(max-width:1100px) {
    .nav {
        padding-inline: 3vw
    }

    .links {
        gap: 13px
    }

    .links a {
        font-size: 8px
    }

    .nav-cta {
        display: none
    }

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

@media(max-width:760px) {
    .nav {
        height: 72px;
        padding: 0 20px
    }

    .nav.scrolled {
        height: 64px
    }

    .right {
        margin-left: auto;
        margin-right: 16px
    }

    .hamb {
        display: block;
        z-index: 102
    }

    .links {
        display: none;
        position: absolute;
        top: 71px;
        left: 0;
        right: 0;
        padding: 22px 24px 28px;
        background: #090a0cfa;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 13px
    }

    .links.open {
        display: flex
    }

    .links a {
        font-size: 10px
    }

    .references-hero {
        height: auto;
        min-height: 720px;
        padding: 145px 7vw 90px
    }

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

    .hero-grid {
        right: -18vw;
        top: 32%;
        width: 75vw;
        height: 42%;
        opacity: .6
    }

    .hero-index {
        right: 7vw;
        bottom: 5%
    }

    .projects-section {
        padding: 78px 7vw
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 0
    }

    .section-title {
        font-size: clamp(55px, 13vw, 88px);
        margin-bottom: 20px
    }

    .section-intro {
        margin-bottom: 28px
    }

    .filter-bar {
        gap: 7px
    }

    .filter {
        padding: 9px 10px;
        font-size: 7px
    }

    .project-count {
        width: 100%;
        margin: 7px 0 0
    }

    .reference-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .card-image {
        height: 230px
    }

    .references-bottom {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 65px
    }

    .references-bottom .solid-btn {
        justify-self: start
    }

    .foot {
        align-items: flex-start;
        gap: 25px;
        flex-direction: column
    }

    .footlinks {
        gap: 15px
    }

    .bottom {
        gap: 12px;
        flex-direction: column
    }

    .reference-modal {
        padding: 12px
    }

    .modal-panel {
        grid-template-columns: 1fr;
        max-height: 94vh
    }

    .modal-main-image {
        min-height: 270px;
        height: 38vh
    }

    .modal-copy {
        padding: 30px 22px
    }

    .modal-close {
        top: 10px;
        right: 10px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}