.phone {
        opacity: 0.85;
    font-weight: 500;
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 15px clamp(20px, 4.5vw, 65px) 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

html[data-header="solid"] .header,
.header.is-scrolled {
    background: rgba(250, 247, 241, 0.94);
    backdrop-filter: saturate(140%) blur(10px);
    color: var(--ink);
    border-bottom-color: var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.brand-mark {
    width: 22px;
    height: 32px;
    flex: none;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.7096 33.2723' fill='none' stroke='%23000' stroke-width='1.58437' stroke-linecap='round'%3E%3Cpath d='M21.9172 0.792377V32.4799M21.9172 0.792377L0.792217 18.3039M21.9172 0.792377L0.792217 27.1986M21.9172 0.792377L7.18534 32.4799'/%3E%3C/svg%3E")
        center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.7096 33.2723' fill='none' stroke='%23000' stroke-width='1.58437' stroke-linecap='round'%3E%3Cpath d='M21.9172 0.792377V32.4799M21.9172 0.792377L0.792217 18.3039M21.9172 0.792377L0.792217 27.1986M21.9172 0.792377L7.18534 32.4799'/%3E%3C/svg%3E")
        center/contain no-repeat;
}

.nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.nav a {
    position: relative;
    padding: 6px 0;
    opacity: 0.85;
}

.nav a:hover,
.brand:hover {
    opacity: 1;
    color: inherit;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.header-cta .btn {
    font-size: 14px;
    line-height: 1.44;
    letter-spacing: 0.07em;
    padding: 11px 15px;
}

html:not([data-header="solid"]) .header:not(.is-scrolled) .header-cta .btn:not(:hover) {
    color: rgba(255, 255, 255, 0.85);
    border-color: #fff;
}

.header-cta .btn:hover {
    background: #faf7f1;
    border-color: #faf7f1;
    color: #000;
}

html[data-header="solid"] .header-cta .btn:hover,
.header.is-scrolled .header-cta .btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid currentColor;
    place-items: center;
    opacity: 0.9;
    flex: none;
}

.burger span {
    display: block;
    position: relative;
    width: 16px;
    height: 1.5px;
    background: currentColor;
}

.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: currentColor;
}

.burger span::before {
    top: -5px;
}

.burger span::after {
    top: 5px;
    width: 11px;
}

.nav .is-current {
    opacity: 1;
}

.nav .is-current::after {
    transform: scaleX(1);
}

@media (max-width: 960px) {
    .nav {
        display: none;
    }
    .header-cta .phone {
        display: none;
    }
    .burger {
        display: grid;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 14px var(--gutter);
    }
    .brand {
        font-size: 24px;
            gap: 14px;
    }
    .brand-mark {
        width: 18px;
            height: 26px;
    }
    .header-cta {
        gap: 12px;
    }
    .header-cta .btn {
        display: none;
    }
}

.admin-bar .header {
    top: 32px;
}

@media (min-width: 601px) and (max-width: 960px) {
    .header {
        padding-top: 18.5px;
            padding-bottom: 18.3px;
    }
}

@media (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .header {
        top: calc(46px - var(--admin-scroll, 0px));
    }
}
