:root {
    --header-bg: #090909;
    --header-surface: #111111;
    --header-text: #f5f5f2;
    --header-muted: #a7a7a7;
    --header-border: #2b2b2b;
    --header-accent: #b89a62;
    --header-display: "Cormorant Garamond", Georgia, serif;
    --header-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--header-bg);
    color: var(--header-text);
    font-family: var(--header-body);
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

.skip-link {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 1rem;
    padding: .75rem 1rem;
    background: var(--header-text);
    color: var(--header-bg);
    transform: translateY(-120%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    background: rgba(9, 9, 9, .96);
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(9, 9, 9, .9);
    border-color: var(--header-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    backdrop-filter: blur(14px);
}

.header-container {
    width: min(100% - 2rem, 1400px);
    margin-inline: auto;
}

.header-contact-bar {
    color: var(--header-muted);
    border-bottom: 1px solid var(--header-border);
    font-size: .72rem;
    letter-spacing: .04em;
}

.header-contact-inner,
.header-contact-links,
.header-socials,
.header-main {
    display: flex;
    align-items: center;
}

.header-contact-inner {
    min-height: 34px;
    justify-content: space-between;
}

.header-contact-links { gap: 1.5rem; }

.header-contact-links a,
.mobile-contact > a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    transition: color 200ms ease;
}

.header-contact-links a:hover,
.mobile-contact > a:hover { color: var(--header-text); }

.header-contact-links svg {
    width: 14px;
    height: 14px;
    fill: var(--header-accent);
}

.header-socials { gap: .35rem; }

.header-socials a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    transition: color 200ms ease, background 200ms ease;
}

.header-socials a:hover,
.header-socials a:focus-visible {
    color: var(--header-bg);
    background: var(--header-accent);
}

.header-socials svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.header-main {
    min-height: 86px;
    justify-content: space-between;
    gap: 2.5rem;
}

.site-logo {
    position: relative;
    z-index: 2;
    display: grid;
    width: 78px;
    height: 76px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
}

.site-logo img {
    display: block;
    width: 68px;
    height: 72px;
    object-fit: contain;
    filter: invert(1);
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3.25rem);
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.2vw, 2.4rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation ul a {
    position: relative;
    padding: 2rem 0;
    color: var(--header-muted);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 200ms ease;
}

.primary-navigation ul a::after {
    position: absolute;
    right: 0;
    bottom: 1.55rem;
    left: 0;
    height: 1px;
    background: var(--header-accent);
    content: "";
    transform: scaleX(0);
    transition: transform 200ms ease;
}

.primary-navigation ul a:hover,
.primary-navigation ul a[aria-current="page"] { color: var(--header-text); }

.primary-navigation ul a:hover::after,
.primary-navigation ul a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1.15rem;
    border: 1px solid var(--header-accent);
    color: var(--header-text);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 200ms ease, background 200ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    color: var(--header-bg);
    background: var(--header-accent);
}

.menu-toggle,
.mobile-contact { display: none; }

:focus-visible {
    outline: 2px solid var(--header-accent);
    outline-offset: 4px;
}

@media (max-width: 991px) {
    body { padding-top: 78px; }

    .site-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
    }

    main [id] { scroll-margin-top: 90px; }

    .header-contact-bar { display: none; }

    .header-main { min-height: 78px; }

    .site-logo {
        width: 66px;
        height: 70px;
        z-index: 1002;
    }

    .site-logo img {
        width: 58px;
        height: 64px;
    }

    .menu-toggle {
        position: relative;
        z-index: 1002;
        display: grid;
        width: 48px;
        height: 48px;
        padding: 12px;
        border: 0;
        place-content: center;
        gap: 6px;
        color: var(--header-text);
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 1px;
        background: currentColor;
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .primary-navigation {
        position: fixed;
        z-index: 1001;
        inset: 0;
        display: flex;
        visibility: hidden;
        min-height: 100dvh;
        align-items: flex-start;
        flex-direction: column;
        gap: 2rem;
        padding: clamp(7rem, 18vh, 10rem) max(1.5rem, calc((100vw - 700px) / 2)) 2rem;
        overflow-y: auto;
        background: var(--header-surface);
        opacity: 0;
        transform: translateX(100%);
        transition: visibility 250ms, opacity 250ms ease, transform 250ms ease;
    }

    .primary-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .primary-navigation ul {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .primary-navigation ul a {
        display: block;
        padding: .45rem 0;
        color: var(--header-text);
        font-family: var(--header-display);
        font-size: clamp(2.35rem, 10vw, 4.5rem);
        font-weight: 500;
        letter-spacing: -.02em;
        line-height: 1;
        text-transform: none;
    }

    .primary-navigation ul a::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: -.9rem;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        transform: scale(0);
    }

    .primary-navigation ul a[aria-current="page"] { color: var(--header-accent); }
    .primary-navigation ul a[aria-current="page"]::after { transform: scale(1); }

    .header-cta { min-height: 48px; }

    .mobile-contact {
        display: flex;
        margin-top: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
        color: var(--header-muted);
        font-size: .78rem;
    }

    .mobile-contact .header-socials { margin-top: .35rem; }
}

@media (max-width: 420px) {
    .header-container { width: min(100% - 1.25rem, 1400px); }
    .primary-navigation { padding-inline: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
