@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(assets/fonts/dm-sans-latin-ext.woff2?v=5d18d31d) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(assets/fonts/dm-sans-latin.woff2?v=ca72d2bc) 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 {
    --paper: #0a0b0c;
    --ink: #fafbfc;
    --line: #2e2e2e;
    --muted: #6a6b6c;
    --text-body: #aaabac;
    --accent: #0377dc;
    --focus: #295078;
    --surface-accent: #1a1b1c;
    color-scheme: dark;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    background: var(--paper)
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45
}

button {
    font-family: inherit
}

a {
    color: inherit;
    text-decoration: none
}

h1,
h2,
h3 {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: -.025em
}

h1,
h2 {
    line-height: 1.2;
    margin: 0
}

h1 {
    font-size: clamp(1.55rem, 1.75rem + 2vw, 3rem)
}

h2 {
    font-size: clamp(1.375rem, 1.25rem + .75vw, 2.5rem)
}

h3,
.case-lead {
    font-size: clamp(1.25rem, 1rem + .5vw, 2rem)
}

h1 em {
    color: var(--accent);
    font-style: normal
}

h2 em {
    font-family: inherit;
    font-style: normal;
    font-weight: inherit
}

p>em,
li>em {
    font-family: inherit;
    font-style: normal;
    font-weight: inherit;
    color: var(--ink);
    font-weight: 500
}

ul {
    padding-left: 1.2rem;
    margin: 0;
    font-family: inherit;
    font-style: normal;
    font-weight: inherit;
    color: var(--text-body)
}

ul li {
    padding: 4px 0
}

.hero p,
.case-intro p,
.case-copy p,
.detail>p {
    color: var(--text-body)
}

.case-lead {
    margin: .5rem 0 0;
    letter-spacing: -.025em
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase
}

.site-header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 870px;
    margin: 0 auto;
    padding: 1.25rem 0;
    background: var(--paper);
    background: linear-gradient(to bottom, var(--paper), color-mix(in srgb, var(--paper), transparent 100%));
    font-size: .85rem
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    translate: 0 0;
    transition: translate .2s ease
}

.site-header.wide {
    max-width: 1180px
}

.site-header.is-scroll-hidden:not(:focus-within) {
    translate: 0 -100%
}

@media (prefers-reduced-motion:reduce) {
    .site-header {
        transition: none
    }
}

.header-left,
.header-right {
    display: flex;
    align-items: center
}

.header-right {
    gap: .5rem
}

.brand {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.025em
}

.brand span {
    color: inherit;
    transition: color .2s ease
}

.brand-photo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0
}

.brand:hover>span:last-child {
    color: var(--accent)
}

.site-header nav {
    display: flex;
    gap: 8px
}

.site-header nav a {
    padding: .35rem .75rem;
    font-weight: 500;
    background-color: var(--paper);
    color: var(--text-body);
    border-radius: .45rem;
    transition: color .2s ease, background-color .2s ease
}

.site-header nav a:hover {
    color: var(--ink);
    background-color: var(--surface-accent)
}

.site-header nav a.close-link {
    display: flex;
    align-items: center;
    gap: 4px
}

.close-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.site-header nav a.active,
.site-header nav a.active:hover {
    color: var(--paper);
    background: var(--ink)
}

.footer-identity,
.footer-links {
    font-size: 14px
}

.footer-links {
    display: flex;
    gap: 24px
}

.footer-links a:hover {
    color: var(--accent)
}

.hero,
.section,
.case-intro,
.case-section,
.case-images-s {
    max-width: 870px;
    margin: 0 auto
}

.home-page,
.about-page {
    position: relative;
    isolation: isolate
}

.hero {
    padding-top: 56px;
    padding-bottom: 120px
}

.home-page > .home-mesh,
.about-page > .home-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 80px, #000 200px, #000 calc(100% - 96px), transparent);
    opacity: .85
}

.case-intro {
    padding-top: 64px;
    padding-bottom: 56px
}

.selected,
.aditional {
    padding-bottom: 96px;
    display: grid;
    gap: 32px
}

.section-heading {
    display: block;
    margin-bottom: 0
}

.detail {
    padding-top: 56px;
    padding-bottom: 56px
}

.detail-lead {
    margin: 48px 0 0
}

.detail-lead span {
    color: var(--muted);
    margin-right: 8px
}

.detail>h1,
.hero>h1 {
    margin: 32px 0 40px
}

.project {
    position: relative;
    border: solid 1px var(--line);
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: all .2s ease-in-out
}

.project:not(.project-locked):hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 24px -16px #02040fa1, 0 8px 8px -8px #2456f621;
}

@media (hover:hover) {
    .home-page:has(.project:not(.project-locked):hover) .project:not(.project-locked):not(:hover) {
        opacity: .56
    }
}

.project-copy {
    order: 1;
    padding: 24px
}

.project-copy.project-copy-with-arrow {
    position: relative;
    padding-right: 88px
}

.project-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff14;
    color: var(--ink);
    pointer-events: none
}

.project-arrow-clip {
    display: block;
    width: 24px;
    height: 24px;
    overflow: hidden
}

.project-arrow svg {
    display: block
}

.project:is(:hover, :focus-visible) .project-arrow svg {
    animation: project-arrow-flight .8s cubic-bezier(.22, 1, .36, 1) both
}

@keyframes project-arrow-flight {
    0% { transform: translate(0, 0); opacity: 1 }
    45% { transform: translate(28px, -28px); opacity: 0 }
    46% { transform: translate(-28px, 28px); opacity: 0 }
    100% { transform: translate(0, 0); opacity: 1 }
}

.project-copy h3 {
    margin: 0;
    display: inline-block
}

.project-copy>p {
    color: var(--text-body);
    line-height: 1.15;
    margin: 4px 0 0
}

.project-visual {
    order: 2;
    width: 100%;
    overflow: hidden;
    border-radius: 8px
}

.project-visual picture {
    display: block
}

.project-locked .project-visual {
    position: relative
}

.project-locked {
    filter: brightness(.75)
}

.project-lock-label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    translate: -50% 0;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap
}

.project-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 4px 20px #0003;
    pointer-events: none
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.project-card-link .project-visual {
    filter: brightness(.9)
}

.project-card-link .project-visual,
.project-card-link .project-image,
.project-card-link h3 {
    transition: all .3s ease-in-out
}

.project-card-link:not(.project-locked):hover .project-visual {
    filter: brightness(1)
}

.project-card-link:not(.project-locked):hover h3 {
    color: var(--accent)
}

.project-card-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 6px;
    border-radius: 8px
}

.case-study {
    padding: 0 4%
}

.case-section {
    margin-top: 60px;
    margin-bottom: 60px
}

.case-section h2 {
    margin: 0 0 24px
}

.case-hero,
.case-images {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px;
    background: var(--surface-accent);
    border-radius: 8px
}

.case-visual {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px
}

.grid-images {
    display: grid;
    gap: 32px
}

.grid-images.mob {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.grid-images.desk {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid-images figure {
    min-width: 0;
    margin: 0
}

.grid-images .case-visual {
    width: 100%
}

.pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem
}

.pill {
    color: var(--text-body);
    padding: .35rem .75rem;
    font-size: .95rem;
    border: solid 1px var(--surface-accent);
    background: var(--surface-accent);
    border-radius: .5rem
}

.case-note {
    margin-top: 64px;
    color: var(--ink) !important;
    font-size: 16px;
    padding: 4%;
    border: solid 1px var(--focus);
    border-radius: 8px
}

@media (max-width:800px) {

    .site-header,
    footer {
        padding: 24px 4%
    }

    .site-header nav {
        font-size: 12px
    }

    .hero,
    .detail {
        padding-top: 0;
        padding-bottom: 32px
    }

    .hero,
    .section {
        padding-left: 4%;
        padding-right: 4%
    }

    .project-card-link .project-visual {
        filter: brightness(1)
    }

    .detail>h1 {
        margin-bottom: 40px
    }

    .case-intro {
        padding-top: 8px;
        padding-bottom: 64px
    }

    .case-section {
        margin-top: 40px;
        margin-bottom: 40px
    }

    .case-hero,
    .case-images {
        padding: 0;
        background: transparent
    }

    .grid-images {
        display: flex;
        gap: 16px;
        margin-left: -4%;
        margin-right: -4%;
        padding-left: 4%;
        padding-right: 4%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 4%;
        scroll-padding-right: 4%;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .grid-images+.grid-images {
        margin-top: 16px
    }

    .grid-images::-webkit-scrollbar {
        display: none
    }

    .grid-images figure {
        flex: 0 0 72vw;
        scroll-snap-align: start;
        scroll-snap-stop: always
    }

    .project-copy {
        padding: 24px 4%
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .project:is(:hover, :focus-visible) .project-arrow svg {
        animation: none
    }
}

figure {
    margin: 0;
    min-width: 0
}

.brand-figure {
    display: flex;
    align-items: center;
    flex-shrink: 0
}
