/* /assets/css/header.css */

.site-header {
    --font-ui: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    position: relative;
    width: 100%;
    min-width: 0;
    min-height: var(--header-height);
    max-height: var(--header-height);
    overflow: hidden;
    background-color: var(--color-surface);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid rgba(212, 166, 58, 0.34);
    font-family: var(--font-ui);
    z-index: 20;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(10, 8, 7, 0.18) 0%,
            rgba(10, 8, 7, 0.28) 42%,
            rgba(10, 8, 7, 0.46) 100%
        ),
        linear-gradient(
            90deg,
            rgba(166, 30, 42, 0.10) 0%,
            transparent 28%,
            transparent 72%,
            rgba(212, 166, 58, 0.08) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            rgba(212, 166, 58, 0) 0%,
            rgba(212, 166, 58, 0.26) 12%,
            rgba(212, 166, 58, 0.50) 50%,
            rgba(212, 166, 58, 0.26) 88%,
            rgba(212, 166, 58, 0) 100%
        );
    pointer-events: none;
    z-index: 2;
}

.site-header--has-video {
    background-color: #111;
    background-image:
        linear-gradient(rgba(8, 24, 14, 0.44), rgba(8, 24, 14, 0.72)),
        url("/assets/images/headerv2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.site-header__media {
    position: absolute;
    inset: -72px 0;
    width: 100%;
    height: calc(100% + 144px);
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    z-index: 0;
}

.site-header__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--header-poster-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 800ms ease, visibility 800ms ease;
    visibility: hidden;
    z-index: 5;
}

.site-header__media.is-warming-up::after {
    opacity: 1;
    visibility: visible;
}


.site-header__video-frame,
.site-header__video-file {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: calc(120vw * 0.5625);
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    border: 0;
    opacity: 1;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.22);
    pointer-events: none;
    transition: opacity 420ms ease;
}

.site-header__video-file {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.08);
}

.header {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: var(--header-height);
    max-height: var(--header-height);
    padding: 0;
}

.header__left-tools {
    position: absolute;
    top: 18px;
    left: clamp(18px, 4vw, 42px);
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.header__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(12, 14, 15, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.24);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.header__social-link:hover,
.header__social-link:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(24, 27, 29, 0.88);
    transform: translateY(-1px);
}

.header__social-link--facebook {
    color: #4f8df7;
}

.header__social-link--instagram {
    color: #ff5c93;
}

.header__social-link--youtube {
    color: #ff3030;
}

.header__social-link--x {
    color: #ffffff;
}

.header__social-icon {
    display: block;
    width: 19px;
    height: 19px;
}

.header__cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 44px;
    padding: 0.72rem 1.08rem;
    color: #f5ead7;
    font-family: var(--font-ui);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(12, 14, 15, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 22px rgba(0, 0, 0, 0.28);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header__cta:hover,
.header__cta:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(20, 23, 24, 0.9);
    transform: translateY(-1px);
}

.header__cta--contribute {
    background: rgba(18, 24, 17, 0.82);
}

.header__cta--contribute:hover,
.header__cta--contribute:focus-visible {
    background: rgba(27, 36, 24, 0.94);
}

.header__branding,
.header__branding:link,
.header__branding:visited,
.header__branding:hover,
.header__branding:active {
    position: absolute;
    top: 18px;
    right: clamp(18px, 4vw, 42px);
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 83px;
    min-width: 0;
    margin: 0;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transform: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.header__branding:hover {
    color: inherit;
    opacity: 0.98;
}

.header__branding:focus-visible {
    border-radius: 12px;
    outline: 2px solid var(--color-accent);
    outline-offset: 6px;
}

.header__logo {
    display: block;
    width: 100%;
    max-width: 83px;
    height: auto;
    max-height: calc(var(--header-height) - 36px);
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.38));
}

.header__title {
    display: none;
}

.header__menu-toggle {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 8;
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(50, 33, 21, 0.76), rgba(24, 18, 13, 0.90));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 18px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transform: translateY(-50%);
}

.header__menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--color-text);
}

.header-feature {
    position: absolute;
    top: 49%;
    left: 50%;
    z-index: 7;
    width: min(56vw, 700px);
    min-width: 540px;
    transform: translate(-50%, -50%);
    color: #f4ead8;
    text-align: left;
}

.header-feature__slides {
    position: relative;
    min-height: 176px;
}

.header-feature__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.header-feature__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.header-feature__layout {
    display: grid;
    grid-template-columns: 176px minmax(260px, 430px);
    align-items: center;
    justify-content: center;
    gap: clamp(1.65rem, 3.5vw, 2.5rem);
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

.header-feature__image-link {
    display: block;
    width: 176px;
    height: 176px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.44);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.46),
        inset 0 0 0 2px rgba(0, 0, 0, 0.36);
}

.header-feature__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, opacity 220ms ease;
}

.header-feature__image-link:hover .header-feature__image,
.header-feature__image-link:focus-visible .header-feature__image {
    transform: scale(1.04);
}

.header-feature__content {
    min-width: 0;
}

.header-feature__title {
    margin: 0;
    color: #f4ead8;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.65rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.62);
}

.header-feature__subtitle {
    margin: 0.28rem 0 0;
    max-width: 430px;
    color: #f6eddc;
    font-family: var(--font-ui);
    font-size: clamp(0.84rem, 1.35vw, 1.05rem);
    font-weight: 700;
    line-height: 1.22;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.66);
}

.header-feature__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 1.05rem;
    padding: 0.64rem 0.92rem;
    color: #f4ead8;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(21, 27, 34, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 22px rgba(0, 0, 0, 0.3);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-feature__button:hover,
.header-feature__button:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(31, 40, 49, 0.96);
    transform: translateY(-1px);
}

.header-feature__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 1.4rem;
}

.header-feature__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.header-feature__dot.is-active,
.header-feature__dot:hover,
.header-feature__dot:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.06);
}

/* Inner page header */

.site-header--inner {
    min-height: var(--inner-header-height);
    max-height: none;
    overflow: visible;
    background: #0f2417;
    background-image: linear-gradient(135deg, #0f2417 0%, #183b24 100%);
    box-shadow: 0 10px 30px rgba(8, 24, 14, 0.18);
}

.site-header--inner::before {
    background:
        linear-gradient(90deg, rgba(185, 146, 31, 0.08), transparent 34%, rgba(255, 255, 255, 0.04)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.site-header--inner::after {
    height: 2px;
}

.inner-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 1280px);
    min-height: var(--inner-header-height);
    margin: 0 auto;
    padding: 1rem clamp(1rem, 3vw, 2rem);
}

.inner-header__branding {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.875rem;
    color: #ffffff;
    text-decoration: none;
}

.inner-header__branding:hover {
    color: #ffffff;
}

.inner-header__branding:focus-visible {
    border-radius: 12px;
    outline: 2px solid var(--color-accent);
    outline-offset: 5px;
}

.inner-header__logo {
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0.35rem;
    object-fit: contain;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.inner-header__title {
    display: block;
    min-width: 0;
    max-width: 680px;
    overflow: hidden;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
}

.inner-header__menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.inner-header__menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: currentColor;
}

.inner-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 46px;
}

.inner-header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 160ms ease, background 160ms ease;
}

.inner-header__social-link:hover,
.inner-header__social-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.inner-header__social-icon {
    width: 24px;
    height: 24px;
}

@media (min-aspect-ratio: 16 / 9) {
    .site-header__video-frame {
        width: 120vw;
        height: 67.5vw;
    }
}

@media (max-width: 1080px) {
    .header-feature {
        top: 47%;
        width: min(55vw, 620px);
        min-width: 480px;
    }

    .header-feature__slides {
        min-height: 150px;
    }

    .header-feature__layout {
        grid-template-columns: 150px minmax(230px, 360px);
        gap: 1.75rem;
        justify-content: center;
        width: auto;
        max-width: 100%;
        margin-inline: auto;
    }

    .header-feature__image-link {
        width: 150px;
        height: 150px;
    }

    .header-feature__title {
        font-size: clamp(1.55rem, 3.15vw, 2.25rem);
    }

    .header-feature__subtitle {
        font-size: clamp(0.78rem, 1.28vw, 0.95rem);
        max-width: 390px;
    }

    .header-feature__button {
        min-height: 36px;
        margin-top: 0.9rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {
    .site-header {
        min-height: var(--header-height);
        max-height: var(--header-height);
    }

    .site-header--inner {
        min-height: var(--inner-header-height);
        max-height: none;
    }

    .site-header__media {
        inset: -90px 0;
        height: calc(100% + 180px);
    }

    .site-header__video-frame,
    .site-header__video-file {
        width: 150vw;
        height: calc(150vw * 0.5625);
        transform: translate(-50%, -50%) scale(1.28);
    }

    .header {
        min-height: var(--header-height);
        max-height: var(--header-height);
    }

    .header__left-tools {
        top: 16px;
        left: 18px;
        gap: 0;
    }

    .header__socials {
        display: none;
    }

    .header__cta-group {
        gap: 7px;
    }

    .header__cta {
        min-width: 116px;
        min-height: 36px;
        padding: 0.56rem 0.82rem;
        font-size: 0.76rem;
        border-radius: 7px;
    }

    .header__branding,
    .header__branding:link,
    .header__branding:visited,
    .header__branding:hover,
    .header__branding:active {
        top: 18px;
        right: 18px;
        width: 74px;
        transform: none;
    }

    .header__logo {
        max-width: 74px;
        max-height: calc(var(--header-height) - 32px);
    }

    .header__menu-toggle {
        top: 100px;
        left: 18px;
        display: block;
        transform: none;
    }

    .header-feature {
        top: 56%;
        width: min(72vw, 360px);
        min-width: 0;
        text-align: center;
    }

    .header-feature__slides {
        min-height: 190px;
    }

    .header-feature__layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.45rem;
        width: auto;
        max-width: 100%;
        margin-inline: auto;
    }

    .header-feature__image-link {
        width: 112px;
        height: 112px;
        border-width: 2px;
    }

    .header-feature__title {
        max-width: 300px;
        font-size: clamp(1.28rem, 5.6vw, 1.72rem);
        line-height: 1.02;
    }

    .header-feature__subtitle {
        display: block;
        max-width: 300px;
        margin-top: 0.18rem;
        font-size: clamp(0.72rem, 3.1vw, 0.84rem);
        line-height: 1.18;
    }

    .header-feature__button {
        min-height: 34px;
        margin-top: 0.55rem;
        padding: 0.55rem 0.82rem;
        font-size: 0.74rem;
    }

    .header-feature__dots {
        gap: 8px;
        margin-top: 1rem;
    }

    .header-feature__dot {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }

    .inner-header {
        min-height: var(--inner-header-height);
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .inner-header__logo {
        width: 52px;
        height: 52px;
    }

    .inner-header__title {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .inner-header__actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header__media {
        inset: -104px 0;
        height: calc(100% + 208px);
    }

    .site-header__video-frame,
    .site-header__video-file {
        width: 190vw;
        height: calc(190vw * 0.5625);
        transform: translate(-50%, -50%) scale(1.35);
    }

    .header__left-tools {
        top: 18px;
        left: 18px;
    }

    .header__cta-group {
        gap: 7px;
    }

    .header__cta {
        min-width: 108px;
        min-height: 34px;
        padding: 0.52rem 0.72rem;
        font-size: 0.7rem;
        letter-spacing: 0.015em;
    }

    .header__branding,
    .header__branding:link,
    .header__branding:visited,
    .header__branding:hover,
    .header__branding:active {
        top: 18px;
        right: 18px;
        width: 67px;
    }

    .header__logo {
        max-width: 67px;
        max-height: calc(var(--header-height) - 36px);
    }

    .header__menu-toggle {
        top: 96px;
        left: 18px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .header-feature {
        top: 57%;
        width: min(74vw, 300px);
    }

    .header-feature__slides {
        min-height: 186px;
    }

    .header-feature__image-link {
        width: 104px;
        height: 104px;
    }

    .header-feature__title {
        max-width: 270px;
        font-size: clamp(1.2rem, 6vw, 1.56rem);
    }

    .header-feature__subtitle {
        display: block;
        max-width: 270px;
        font-size: clamp(0.68rem, 3.25vw, 0.78rem);
        line-height: 1.16;
    }

    .header-feature__button {
        min-height: 32px;
        margin-top: 0.48rem;
        padding: 0.5rem 0.72rem;
        font-size: 0.68rem;
    }

    .header-feature__dots {
        margin-top: 0.9rem;
    }

    .inner-header {
        padding: 0.625rem 0.75rem;
    }

    .inner-header__menu-toggle {
        width: 42px;
        height: 42px;
    }

    .inner-header__logo {
        width: 46px;
        height: 46px;
    }

    .inner-header__title {
        font-size: 1.08rem;
    }
}

/* Header mobile image + button skin refresh */
.header__cta,
.header-feature__button,
.header__menu-toggle,
.inner-header__menu-toggle {
    background-image:
        linear-gradient(180deg, rgba(16, 19, 18, 0.22), rgba(16, 19, 18, 0.34)),
        url("/assets/images/button.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.header__cta:hover,
.header__cta:focus-visible,
.header-feature__button:hover,
.header-feature__button:focus-visible,
.header__menu-toggle:hover,
.header__menu-toggle:focus-visible,
.inner-header__menu-toggle:hover,
.inner-header__menu-toggle:focus-visible {
    background-image:
        linear-gradient(180deg, rgba(10, 13, 12, 0.16), rgba(10, 13, 12, 0.26)),
        url("/assets/images/button.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 900px) {
    .header-mobile-compact {
        background:
            linear-gradient(180deg, rgba(12, 16, 15, 0.16), rgba(12, 16, 15, 0.30)),
            url("/assets/images/headermobile.png") center center / cover no-repeat;
        border-bottom: 1px solid rgba(230, 219, 194, 0.36);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    }

    .header-mobile-compact::before {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
    }

    .header-mobile-compact__menu-toggle,
    .header-mobile-compact__cta {
        background-image:
            linear-gradient(180deg, rgba(16, 19, 18, 0.18), rgba(16, 19, 18, 0.28)),
            url("/assets/images/button.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border: 1px solid rgba(233, 225, 203, 0.30);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 8px 18px rgba(0, 0, 0, 0.18);
    }

    .header-mobile-compact__menu-toggle {
        color: #fffef9;
    }

    .header-mobile-compact__cta,
    .header-mobile-compact__cta:hover,
    .header-mobile-compact__cta:visited,
    .header-mobile-compact__cta:active {
        color: #fffef9;
    }

    .header-mobile-compact__eyebrow {
        color: rgba(247, 238, 219, 0.92);
    }
}

/* Header CTA transparency refinement */
.header__cta,
.header-feature__button {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(15, 20, 18, 0.10), rgba(15, 20, 18, 0.16)),
        url("/assets/images/button.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(244, 236, 215, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
}

.header__cta:hover,
.header__cta:focus-visible,
.header-feature__button:hover,
.header-feature__button:focus-visible {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, rgba(15, 20, 18, 0.08), rgba(15, 20, 18, 0.14)),
        url("/assets/images/button.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-color: rgba(244, 236, 215, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 18px rgba(0, 0, 0, 0.12);
}

/* Header CTA button cleanup */
.header__cta,
.header-feature__button {
    background: rgba(12, 14, 15, 0.30);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.header__cta:hover,
.header__cta:focus-visible,
.header-feature__button:hover,
.header-feature__button:focus-visible {
    background: rgba(20, 23, 24, 0.42);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 20px rgba(0, 0, 0, 0.22);
}
/* Robust mobile compact header */
.header-mobile-compact {
    display: none;
}

@media (max-width: 900px) {
    .header-mobile-compact {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1500;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.875rem;
        min-height: 72px;
        padding: 0.75rem 0.95rem;
        background:
            linear-gradient(180deg, rgba(12, 16, 15, 0.16), rgba(12, 16, 15, 0.30)),
            url("/assets/images/headermobile.png") center center / cover no-repeat;
        border-bottom: 1px solid rgba(230, 219, 194, 0.36);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
        transform: translateY(calc(-100% - 14px));
        opacity: 0;
        pointer-events: none;
        transition:
            transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            box-shadow 220ms ease;
    }

    .header-mobile-compact::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
        pointer-events: none;
    }

    body.is-mobile-header-compact .header-mobile-compact {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header-mobile-compact__branding {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "logo eyebrow"
            "logo title";
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0.1rem;
        min-width: 0;
        color: #ffffff;
        text-decoration: none;
    }

    .header-mobile-compact__branding:hover,
    .header-mobile-compact__branding:visited,
    .header-mobile-compact__branding:active {
        color: #ffffff;
    }

    .header-mobile-compact__logo {
        grid-area: logo;
        display: block;
        width: 44px;
        height: 44px;
        padding: 0.24rem;
        object-fit: contain;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    }

    .header-mobile-compact__eyebrow {
        grid-area: eyebrow;
        display: block;
        overflow: hidden;
        color: rgba(247, 238, 219, 0.92);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .header-mobile-compact__title {
        grid-area: title;
        display: block;
        overflow: hidden;
        color: #ffffff;
        font-family: var(--font-display);
        font-size: 1.12rem;
        font-weight: 700;
        line-height: 1.02;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .header-mobile-compact__menu-toggle,
    .header-mobile-compact__cta {
        position: relative;
        z-index: 1;
        background-image:
            linear-gradient(180deg, rgba(16, 19, 18, 0.18), rgba(16, 19, 18, 0.28)),
            url("/assets/images/button.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border: 1px solid rgba(233, 225, 203, 0.30);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 8px 18px rgba(0, 0, 0, 0.18);
    }

    .header-mobile-compact__menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        gap: 0.28rem;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #fffef9;
        border-radius: 14px;
    }

    .header-mobile-compact__menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 0 auto;
        border-radius: 999px;
        background: currentColor;
    }

    .header-mobile-compact__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0.55rem 0.85rem;
        color: #fffef9;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-decoration: none;
        text-transform: uppercase;
        border-radius: 10px;
    }

    .header-mobile-compact__cta:hover,
    .header-mobile-compact__cta:visited,
    .header-mobile-compact__cta:active {
        color: #fffef9;
    }
}

@media (max-width: 480px) {
    .header-mobile-compact {
        min-height: 66px;
        padding: 0.625rem 0.75rem;
        gap: 0.625rem;
    }

    .header-mobile-compact__logo {
        width: 40px;
        height: 40px;
    }

    .header-mobile-compact__eyebrow {
        font-size: 0.62rem;
    }

    .header-mobile-compact__title {
        font-size: 1rem;
    }

    .header-mobile-compact__cta {
        min-height: 38px;
        padding: 0.5rem 0.72rem;
        font-size: 0.72rem;
    }
}

/* Header hamburger clean revert */
.header__menu-toggle,
.inner-header__menu-toggle,
.header-mobile-compact__menu-toggle {
    background: rgba(12, 14, 15, 0.24);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 18px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(4px);
}

.header__menu-toggle:hover,
.header__menu-toggle:focus-visible,
.inner-header__menu-toggle:hover,
.inner-header__menu-toggle:focus-visible,
.header-mobile-compact__menu-toggle:hover,
.header-mobile-compact__menu-toggle:focus-visible {
    background: rgba(18, 21, 22, 0.34);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 20px rgba(0, 0, 0, 0.20);
}


/* Mobile compact header socials */
@media (max-width: 900px) {
    .header-mobile-compact__socials {
        position: relative;
        z-index: 1;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.42rem;
        min-width: 0;
    }

    .header-mobile-compact__socials .footer__social-link {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
    }
}

@media (max-width: 480px) {
    .header-mobile-compact {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .header-mobile-compact__socials {
        gap: 0.34rem;
    }

    .header-mobile-compact__socials .footer__social-link {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .header-mobile-compact__socials .footer__social-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    .header-mobile-compact__socials .footer__social-link {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .site-header__media {
        display: none;
    }

    .site-header__media::after,
    .site-header__video-frame,
    .site-header__video-file,
    .header-feature__slide,
    .header-mobile-compact {
        transition: none !important;
        animation: none !important;
    }
}

/* Secondary pages use the same compact header as Home. */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
    body:not(.page--home).is-mobile-header-compact .header-mobile-compact {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body:not(.page--home) .site-header video,
    body:not(.page--home) .site-header iframe.site-header__video-frame,
    body:not(.page--home) .site-header .site-header__media,
    body:not(.page--home) .site-header [data-header-video],
    body:not(.page--home) .site-header [data-video-background] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Body-only page transitions: keep header/sidebar/footer mounted. */
.site-main {
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        filter 180ms ease;
}

html.is-body-transitioning .site-main {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(1px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-main {
        transition: none;
    }

    html.is-body-transitioning .site-main {
        transform: none;
        filter: none;
    }
}

/* Labeled menu button clarity */
.header__menu-toggle,
.header-mobile-compact__menu-toggle {
    align-items: center;
    justify-content: center;
    gap: 0.46rem;
    min-width: 92px;
    width: auto;
    padding: 0 0.78rem;
    color: #fffef9;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background:
        linear-gradient(180deg, rgba(15, 18, 17, 0.76), rgba(8, 10, 10, 0.88)),
        url("/assets/images/button.png") center center / cover no-repeat;
    border: 1px solid rgba(244, 236, 215, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 22px rgba(0, 0, 0, 0.26);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.header__menu-toggle span,
.header-mobile-compact__menu-toggle span {
    display: none;
}

.header__menu-toggle::before,
.header-mobile-compact__menu-toggle::before {
    content: "☰";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: 0;
    transform: translateY(-1px);
}

.header__menu-toggle::after,
.header-mobile-compact__menu-toggle::after {
    content: "MENU";
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

body.is-sidebar-open .header__menu-toggle::before,
body.is-sidebar-open .header-mobile-compact__menu-toggle::before {
    content: "×";
    font-size: 1.25rem;
}

body.is-sidebar-open .header__menu-toggle::after,
body.is-sidebar-open .header-mobile-compact__menu-toggle::after {
    content: "CLOSE";
}

.header__menu-toggle:hover,
.header__menu-toggle:focus-visible,
.header-mobile-compact__menu-toggle:hover,
.header-mobile-compact__menu-toggle:focus-visible {
    background:
        linear-gradient(180deg, rgba(22, 25, 24, 0.82), rgba(10, 12, 12, 0.94)),
        url("/assets/images/button.png") center center / cover no-repeat;
    border-color: rgba(244, 236, 215, 0.48);
}

@media (max-width: 900px) {
    .header__menu-toggle {
        display: inline-flex;
    }

    .header-mobile-compact__menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .header__menu-toggle {
        min-width: 88px;
        height: 42px;
        padding: 0 0.68rem;
        font-size: 0.68rem;
    }

    .header-mobile-compact__menu-toggle {
        min-width: 86px;
        height: 38px;
        padding: 0 0.62rem;
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }
}

