.site-header[data-header], .site-header[data-header].is-scrolled {
    --header-top: 14px;
    position: fixed;
    z-index: 90;
    top: var(--header-top);
    inset-inline: 0;
    margin-inline: auto;
    width: calc(100% - 2 * clamp(12px, 1.35vw, 24px));
    height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
    border: 1px solid #f9f2de3d;
    border-radius: 100px;
    background: linear-gradient(110deg, #202c32fa, #152027f7);
    box-shadow: 0 13px 32px #0f151a29;
    color: var(--white);
    transition: opacity .26s ease, translate .46s var(--ease);
}
.admin-bar .site-header[data-header] { --header-top: 46px; }
.site-header[data-reveal-on-scroll]:not(.is-revealed):not(:focus-within):not(.menu-open) {
    opacity: 0;
    translate: 0 -18px;
    pointer-events: none;
}
.site-header .brand { justify-self: start; }
.site-header .brand img { width: 116px; }
.site-header .nav-logo { display: block; position: relative; }
.nav-logo .nav-logo-parts { display: none; position: absolute; inset: 0; }
.nav-logo.assembling > img { visibility: hidden; }
.nav-logo.assembling .nav-logo-parts { display: block; }
.nav-logo-parts img { position: absolute; inset: 0; height: 100%; }
.nav-logo-upper { clip-path: polygon(1.55% 41.4%,2.15% 28.8%,13.05% 0%,14.25% 0%,17.25% 8.1%,16.7% 21.5%,13.45% 13%); }
.nav-logo-middle { clip-path: polygon(.45% 60%,1.45% 45.1%,12.7% 20.35%,13.45% 20.35%,16.6% 27.8%,16.3% 43.6%,13% 35.4%); }
.nav-logo-lower { clip-path: polygon(0% 78%,0% 66.2%,.9% 62.6%,12.1% 44.7%,13% 44.7%,16.25% 50.1%,15.7% 70%); }
.nav-logo-wordmark { clip-path: inset(0 0 0 17.5%); }
.site-header .desktop-nav { display: flex; gap: 4px; justify-self: center; margin: 0; }
.site-header .desktop-nav a {
    padding: 8px 15px;
    border: 1px solid transparent;
    font-size: 15px;
}
.site-header .desktop-nav a[aria-current="page"] { border-color: #fffefe29; background: #fffefe14; }
.site-header .desktop-nav a:hover { background: #fffefe20; }
.site-header .nav-pill { position: relative; isolation: isolate; }
.site-header .nav-pill > span:last-child { position: relative; }
.nav-motif {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.nav-motif svg {
    position: absolute;
    right: -2px;
    top: 50%;
    width: 46px;
    height: 64px;
    transform: translateY(-50%) rotate(-10deg);
    color: #e5d2af;
    opacity: .45;
}
.header-contact .nav-motif svg { color: #58605a; opacity: .36; }
.nav-motif path {
    opacity: 0;
    transform: translate(10px, 5px);
    transition: transform .38s var(--ease), opacity .24s ease;
}
.nav-motif path:nth-child(2) { transform: translate(14px, -1px); }
.nav-motif path:nth-child(3) { transform: translate(17px, -7px); }
.nav-pill:is(:hover, :focus-visible) .nav-motif path { opacity: 1; transform: none; }
.nav-pill:is(:hover, :focus-visible) .nav-motif path:nth-child(2) { transition-delay: 35ms; }
.nav-pill:is(:hover, :focus-visible) .nav-motif path:nth-child(3) { transition-delay: 70ms; }
.site-header .header-actions { justify-self: end; gap: 10px; }
.site-header .language-link { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 0; border-radius: 40px; font-size: 14px; }
.site-header .language-link:hover { background: #fffefe1a; }
.site-header .header-contact {
    display: inline-grid;
    place-items: center;
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    background: var(--water);
    color: var(--ink-dark);
    font-size: 15px;
    font-weight: 600;
}
.site-header .header-contact:hover { background: var(--white); }
.site-header .menu-trigger { display: none; }
.mobile-navigation { display: none; }
body:has([data-reveal-on-scroll]) .hero { height: 100svh; }
body:not(:has([data-reveal-on-scroll])) main { padding-top: 92px; }

@media (max-width: 760px) {
    .site-header[data-header], .site-header[data-header].is-scrolled {
        --header-top: 10px;
        width: calc(100% - 22px);
        height: 60px;
        grid-template-columns: 1fr auto;
        gap: 7px;
        padding: 0 7px 0 12px;
    }
    .admin-bar .site-header[data-header] { --header-top: 56px; }
    .site-header[data-reveal-on-scroll]:not(.is-revealed):not(:focus-within):not(.menu-open) {
        opacity: 1;
        translate: none;
        pointer-events: auto;
    }
    .site-header .brand img { width: clamp(66px,24vw,100px); }
    .site-header .desktop-nav, .site-header .header-actions { display: none; }
    .site-header .menu-trigger {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-color: #fffefe36;
    }
    .mobile-navigation[open] {
        display: block;
        position: fixed;
        inset: 0 0 0 auto;
        margin: 0;
        width: min(390px, calc(100% - 34px));
        max-width: none;
        height: 100%;
        max-height: none;
        height: 100dvh;
        padding: 0;
        color: var(--white);
        background: var(--ink-dark);
        border: 0;
        border-left: 1px solid #fffefe27;
        box-shadow: -16px 0 50px #0c101345;
    }
    .mobile-navigation::backdrop { background: #111820a6; }
    .drawer-content {
        display: grid;
        grid-template-rows: auto 1fr auto;
        min-height: 100%;
        gap: 30px;
        padding: max(20px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
    }
    .drawer-top { display: flex; justify-content: space-between; align-items: center; }
    .drawer-top .icon-button { width: 44px; height: 44px; border-color: #fffefe4a; }
    .drawer-symbol { color: var(--water); width: 29px; height: 42px; overflow: visible; }
    .mobile-navigation nav { display: grid; gap: 7px; align-content: start; }
    .mobile-navigation nav a {
        padding: 10px 15px;
        border: 1px solid transparent;
        border-radius: 30px;
        font: 400 clamp(29px, 9vw, 39px)/1.12 var(--display);
    }
    .mobile-navigation nav a[aria-current="page"] { background: #fffefe12; border-color: #fffefe21; }
    .drawer-actions { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid #fffefe29; }
    .drawer-languages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .drawer-languages a, .drawer-contact { text-align: center; padding: 10px 8px; min-height: 44px; border: 1px solid #fffefe36; border-radius: 40px; font-size: 15px; }
    .drawer-languages a[aria-current="true"] { background: #fffefe18; }
    .mobile-navigation .drawer-contact { display: block; color: var(--ink-dark); background: var(--water); border: 0; font-weight: 600; }
    html { scroll-padding-top: 80px; }
    body:not(:has([data-reveal-on-scroll])) main.editorial { padding-top: 78px; }
}
@media (prefers-reduced-motion: no-preference) {
    .mobile-navigation[open] { animation: nav-drawer-in .37s var(--ease) both; }
    .mobile-navigation[open]::backdrop { animation: nav-backdrop-in .28s ease both; }
    @keyframes nav-drawer-in {
        from { transform: translateX(100%); }
        to { transform: none; }
    }
    @keyframes nav-backdrop-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-header[data-header], .site-header[data-header].is-scrolled { transition: none; }
    .nav-motif path { transition: none; }
}
