.skip {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 100;
    background: var(--blue);
    color: white;
    padding: 14px;
}

.skip:focus {
    top: 10px;
}

header {
    height: 100px;
    margin: 0 4.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
}

.brand {
    font-size: 24px;
    letter-spacing: -1.5px;
    line-height: .83;
    font-weight: 900;
    display: flex;
    flex-direction: column;
}

.brand b {
    font-size: 38px;
    letter-spacing: -3px;
}

.brand-star {
    display: inline-block;
    color: var(--blue);
    font-size: 31px;
    margin-left: 4px;
    vertical-align: top;
}

nav {
    display: flex;
    align-items: center;
    gap: 44px;
    font-size: 14px;
    font-weight: 600;
}

nav a {
    padding: 12px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
}

.nav-label { display: inline-flex; }
.nav-letter { display: inline-block; }

nav :is(a, button):hover .nav-letter,
nav :is(a, button):focus-visible .nav-letter {
    animation: nav-flicker .48s steps(1, end) both;
    animation-delay: calc(var(--letter-index, 0) * 24ms);
}

@keyframes nav-flicker {
    0%, 100% { opacity: 1; transform: translateY(0); }
    20% { opacity: .25; transform: translateY(-1px); }
    43% { opacity: .75; }
    62% { opacity: .35; transform: translateY(1px); }
    82% { opacity: 1; }
}

.loading-flicker { display: inline-flex; color: var(--blue); font-weight: 600; white-space: nowrap; }
.loading-flicker .nav-letter {
    animation: nav-flicker .9s steps(1, end) infinite;
    animation-delay: calc(var(--letter-index) * 75ms);
}
.loading-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

nav a[aria-current] {
    color: var(--blue);
}

.nav-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    vertical-align: top;
}

nav button {
    background: var(--blue);
    color: white;
    border-radius: 30px;
    padding: 15px 23px;
    min-height: 44px;
}

.works-section {
    padding: 110px 4.2%;
}

.clients-section {
    padding: 110px 4.2%;
    padding-top: 35px;
    border-top: 1px solid var(--line);
    margin: 0 4.2%;
    padding-left: 0;
    padding-right: 0;
}

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

.work-view-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s;
}

.work-view-toggle:hover,
.work-view-toggle:focus-visible { color: var(--blue); }
.work-view-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.works-intro-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.works-intro-bottom p { margin: 0; }
.works-feed-heading { display: flex; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
    nav :is(a, button):hover .nav-letter,
    nav :is(a, button):focus-visible .nav-letter { animation: none; }
}

.section-heading h2 {
    font-size: clamp(38px, 4.5vw, 70px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin: 24px 0 0;
    position: relative;
}

.section-heading h2>span:not(.blue) {
    color: #62635b;
}

.section-heading h2 i {
    color: var(--blue);
    font-style: normal;
    position: absolute;
    right: -100px;
    top: 18px;
    font-size: 85px;
}

.clients-section .section-heading h2 {
    font-size: 46px;
    letter-spacing: -2px;
}

.section-heading>p {
    font-size: 13px;
    color: #62635b;
}

.logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 60px;
}

.logos>div {
    height: 112px;
    display: grid;
    place-items: center;
    padding: 20px 28px;
}

.logos img {
    width: 100%;
    height: 65px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

footer {
    padding: 40px 4.2%;
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 10px;
}

footer .footer-logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-right: auto;
}

footer .footer-logo span {
    font-size: 12px;
    vertical-align: top;
    margin-left: 4px;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.footer-instagram img {
    display: block;
}

footer>a:last-child {
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 20px;
}

footer > .footer-top-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
}

footer > .footer-top-arrow img {
    display: block;
    width: 20px;
    height: 20px;
}

#site-header {
    position: sticky;
    top: 0;
    margin: 0;
    padding: 0 4.2%;
    background: rgba(248, 248, 242, .3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 20;
}

.brand-star img,
.section-heading h2 i .star-icon {
    display: block;
    width: 1em;
    height: 1em;
    object-fit: contain;
}

#main {
    scroll-margin-top: 110px;
}

@media(max-width:800px) {
    header {
        height: 85px;
    }

    nav {
        gap: 24px;
    }

    .works-section,
    .clients-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-heading h2 i {
        right: -68px;
        font-size: 60px;
    }

    .logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .logos>div {
        padding: 18px;
    }

    .section-heading h2 {
        letter-spacing: -2px;
    }

    .clients-section .section-heading h2 {
        font-size: 35px;
    }
}

@media(max-width:540px) {
    header {
        margin: 0 20px;
        height: 80px;
    }

    .brand {
        font-size: 18px;
    }

    .brand b {
        font-size: 30px;
    }

    .brand-star {
        font-size: 24px;
    }

    nav {
        gap: clamp(10px, 3.5vw, 16px);
        font-size: 12px;
    }

    nav button {
        padding: 0 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .works-section {
        padding: 65px 20px;
    }

    .section-heading {
        gap: 20px;
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 36px;
        margin-top: 18px;
        letter-spacing: -1.8px;
    }

    .section-heading h2 i {
        right: -42px;
        top: 13px;
        font-size: 40px;
    }

    .clients-section {
        margin: 0 20px;
        padding: 35px 0 55px;
    }

    .clients-section .section-heading {
        display: block;
    }

    .clients-section .section-heading h2 {
        font-size: 35px;
    }

    .section-heading>p {
        font-size: 11px;
        margin-top: 20px;
    }

    .logos {
        margin-top: 25px;
        grid-template-columns: repeat(3, 1fr);
    }

    .logos>div {
        height: 80px;
        padding: 12px;
    }

    .logos img {
        height: 45px;
    }

    footer {
        padding: 25px 20px;
        flex-wrap: wrap;
        gap: 17px;
    }

    footer .footer-logo {
        font-size: 25px;
    }

    footer>div {
        font-size: 8px;
    }

    footer>a:last-child {
        font-size: 15px;
    }
}

@media(max-width:359px) {
    header {
        margin-right: 14px;
        margin-left: 14px;
    }

    .brand {
        font-size: 16px;
    }

    .brand b {
        font-size: 27px;
    }

    .brand-star {
        font-size: 21px;
    }

    nav {
        gap: 9px;
        font-size: 11px;
    }

    nav button {
        padding: 0 10px;
        font-size: 11px;
    }
}
