.architectural-header {
    --header-panel: rgba(250,248,242,.96);
    --header-ink: #10264b;
    --header-muted: #6a7482;
    --header-gold: #a47b35;
    --header-line: rgba(16,38,75,.12);
    --header-shadow: rgba(9,25,46,.10);

    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0 0;
    color: var(--header-ink);
    transition: padding .3s ease;
}

html.dark .architectural-header,
html[data-theme="dark"] .architectural-header {
    --header-panel: rgba(12,27,49,.97);
    --header-ink: #f8f5ed;
    --header-muted: #b4becd;
    --header-gold: #e2be77;
    --header-line: rgba(226,190,119,.19);
    --header-shadow: rgba(0,0,0,.26);
}

.header-container {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
    position: relative;
}

.header-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 96px;
    gap: 28px;
    padding: 10px 22px 10px 20px;
    background: var(--header-panel);
    border: 1px solid var(--header-line);
    border-radius: 13px;
    box-shadow: 0 12px 35px var(--header-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: min-height .3s ease, box-shadow .3s ease;
}

.header-frame::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -1px;
    left: 24px;
    width: 190px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(234,197,119,.9),
        transparent
    );
    pointer-events: none;
}

.header-frame::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 auto 0 0;
    width: 425px;
    max-width: 42%;
    background: linear-gradient(
        108deg,
        #0b1c34 0%,
        #173452 93.5%,
        #b88a39 94%,
        #f0d18a 94.7%,
        #b88a39 95.2%,
        transparent 95.6%
    );
    clip-path: polygon(0 0,100% 0,87% 100%,0 100%);
    pointer-events: none;
}

html.dark .header-frame::after,
html[data-theme="dark"] .header-frame::after {
    background: linear-gradient(
        108deg,
        #061326 0%,
        #102b49 93.5%,
        #b88a39 94%,
        #f0d18a 94.7%,
        #b88a39 95.2%,
        transparent 95.6%
    );
}

.header-frame > .header-brand,
.header-frame > .desktop-nav,
.header-frame > .header-controls {
    position: relative;
    z-index: 1;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
    text-decoration: none;
}

.brand-emblem {
    display: grid;
    place-items: center;
    width: 98px;
    height: 76px;
    flex-shrink: 0;
    transition: width .3s ease, height .3s ease;
}

.brand-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.12) saturate(1.08)
        drop-shadow(0 5px 12px rgba(0,0,0,.16));
    transition: transform .35s ease;
}

.header-brand:hover .brand-emblem img {
    transform: scale(1.035);
}

.brand-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.brand-identity strong {
    color: #fff9ec;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem,1.7vw,1.72rem);
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1;
}

.brand-identity small {
    color: #e9c67f;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
}

.header-brand:hover .brand-identity strong {
    color: #f0d18a;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px,1.45vw,24px);
    margin-left: auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--header-ink);
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--header-gold);
    opacity: 0;
    transform: translate(-50%,5px);
    transition: opacity .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--header-gold);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    opacity: 1;
    transform: translate(-50%,0);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--header-line);
    border-radius: 7px;
    color: var(--header-ink);
    font: inherit;
    cursor: pointer;
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.theme-toggle-label {
    font-size: .72rem;
    font-weight: 650;
}

.theme-options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 100px;
    width: 130px;
    padding: 6px;
    background: var(--header-panel);
    border: 1px solid var(--header-line);
    border-radius: 9px;
    box-shadow: 0 12px 30px var(--header-shadow);
}

.theme-options[hidden] {
    display: none !important;
}

.theme-options button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--header-ink);
    font: inherit;
    font-size: .8rem;
    text-align: left;
    cursor: pointer;
}

.theme-options button:hover,
.theme-options button[aria-pressed="true"] {
    background: rgba(199,165,106,.15);
    color: var(--header-gold);
}

.reserve-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 19px;
    min-height: 48px;
    padding: 6px 7px 6px 20px;
    background: #10264b;
    border: 1px solid #10264b;
    border-radius: 8px;
    color: #f8f5ed;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

html.dark .reserve-action,
html[data-theme="dark"] .reserve-action {
    background: #e1bd75;
    border-color: #e1bd75;
    color: #0b1b30;
}

.reserve-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    background: #d8ac53;
    color: #10264b;
}

html.dark .reserve-icon,
html[data-theme="dark"] .reserve-icon {
    background: #10264b;
    color: #f3d795;
}

.reserve-icon svg,
.mobile-link svg,
.mobile-reserve svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reserve-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16,38,75,.18);
}

.menu-button,
.mobile-panel {
    display: none;
}

.architectural-header.is-scrolled {
    padding-top: 7px;
}

.is-scrolled .header-frame {
    min-height: 78px;
    box-shadow: 0 15px 40px var(--header-shadow);
}

.is-scrolled .brand-emblem {
    width: 82px;
    height: 61px;
}

.architectural-header a:focus-visible,
.architectural-header button:focus-visible {
    outline: 3px solid var(--header-gold);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .desktop-nav {
        display: none;
    }

    .header-controls {
        margin-left: auto;
    }

    .header-frame {
        overflow: visible;
        min-height: 86px;
        padding-left: 15px;
    }

    .header-frame::after {
        display: none;
    }

    .brand-identity strong {
        color: var(--header-ink);
        font-size: 1.4rem;
    }

    .brand-identity small {
        color: var(--header-gold);
        font-size: .5rem;
    }

    .brand-emblem {
        width: 86px;
        height: 68px;
    }

    .is-scrolled .brand-emblem {
        width: 74px;
        height: 59px;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 46px;
        padding: 0 13px;
        border: 1px solid var(--header-line);
        border-radius: 7px;
        background: transparent;
        color: var(--header-ink);
        font: inherit;
        cursor: pointer;
    }

    .menu-lines {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 19px;
        height: 20px;
    }

    .menu-lines i {
        display: block;
        width: 19px;
        height: 2px;
        background: currentColor;
        transition: transform .2s ease;
    }

    .menu-open .menu-lines i:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-open .menu-lines i:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .menu-label {
        font-size: .75rem;
        font-weight: 700;
    }

    .mobile-panel {
        display: grid;
        grid-template-rows: 0fr;
        visibility: hidden;
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        right: 0;
        background: var(--header-panel);
        border: 1px solid transparent;
        border-radius: 12px;
        box-shadow: 0 18px 42px var(--header-shadow);
        backdrop-filter: blur(24px);
        transition: grid-template-rows .3s ease,
                    visibility .3s ease;
    }

    .menu-open .mobile-panel {
        grid-template-rows: 1fr;
        visibility: visible;
        border-color: var(--header-line);
    }

    .mobile-panel-inner {
        min-height: 0;
        overflow: hidden;
        padding: 0 24px;
    }

    .menu-open .mobile-panel-inner {
        padding-block: 24px;
    }

    .mobile-overline {
        display: flex;
        align-items: center;
        gap: 16px;
        color: var(--header-gold);
        font-size: .65rem;
        font-weight: 750;
        letter-spacing: .16em;
    }

    .overline-rule {
        flex: 1;
        height: 1px;
        background: var(--header-line);
    }

    .mobile-links {
        margin-top: 16px;
    }

    .mobile-link {
        display: flex;
        align-items: center;
        gap: 20px;
        min-height: 61px;
        border-bottom: 1px solid var(--header-line);
        color: var(--header-ink);
        text-decoration: none;
    }

    .mobile-number {
        color: var(--header-gold);
        font-size: .65rem;
        font-weight: 700;
    }

    .mobile-link-label {
        flex: 1;
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 1.75rem;
        font-weight: 600;
    }

    .mobile-link svg {
        color: var(--header-gold);
        opacity: .65;
    }

    .mobile-link:hover,
    .mobile-link.is-active {
        color: var(--header-gold);
    }

    .mobile-reserve {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        margin-top: 23px;
        padding: 0 18px;
        border-radius: 6px;
        background: #d8ac53;
        color: #10264b;
        font-size: .8rem;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-panel-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
        color: var(--header-muted);
        font-size: .58rem;
        font-weight: 650;
        letter-spacing: .13em;
    }

    .mobile-panel-mark {
        color: var(--header-gold);
        font-family: Georgia, serif;
        font-size: 1.25rem;
        font-style: italic;
    }
}

@media (max-width: 680px) {
    .architectural-header {
        padding-top: 8px;
    }

    .header-container {
        width: calc(100% - 24px);
    }

    .header-frame {
        min-height: 76px;
        padding: 8px 11px;
        gap: 7px;
    }

    .header-brand {
        gap: 6px;
    }

    .brand-emblem {
        width: 66px;
        height: 57px;
    }

    .brand-identity strong {
        font-size: 1.08rem;
        letter-spacing: .025em;
    }

    .brand-identity small {
        font-size: .39rem;
        letter-spacing: .065em;
    }

    .header-controls {
        gap: 6px;
    }

    .header-controls .reserve-action {
        display: none;
    }

    .theme-toggle-label,
    .menu-label {
        display: none;
    }

    .theme-options {
        right: 55px;
    }

    .menu-button {
        min-width: 44px;
        padding: 0 11px;
    }

    .mobile-panel {
        max-height: calc(100dvh - 95px);
        overflow-y: auto;
    }

    .mobile-panel-inner {
        padding-inline: 18px;
    }

    .menu-open .mobile-panel-inner {
        padding-block: 20px;
    }

    .mobile-link {
        min-height: 54px;
    }

    .mobile-link-label {
        font-size: 1.5rem;
    }

    .is-scrolled .brand-emblem {
        width: 60px;
        height: 52px;
    }
}

@media (max-width: 370px) {
    .brand-emblem {
        width: 52px;
        height: 48px;
    }

    .brand-identity strong {
        font-size: .92rem;
    }

    .brand-identity small {
        font-size: .33rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .architectural-header *,
    .architectural-header *::before,
    .architectural-header *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* GOLDEN HEADER ORIGINAL DESIGN RESTORATION */

/* The header must not inherit the old narrow page container. */
.site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Original full-width white header band. */
.architectural-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    padding: 12px 0 14px;
    background: transparent;
}

html.dark .architectural-header,
html[data-theme="dark"] .architectural-header {
    background: transparent;
}

/* Original wide, substantial architectural ribbon. */
.architectural-header .header-container {
    width: min(1380px, calc(100% - 48px));
    max-width: 1380px;
    margin-inline: auto;
}

.architectural-header .header-frame {
    min-height: 98px;
    padding: 10px 22px 10px 20px;
    gap: 24px;
    border-radius: 13px;
}

/* Original logo and company identity proportions. */
.architectural-header .brand-emblem {
    width: 98px;
    height: 76px;
}

.architectural-header .brand-identity {
    gap: 7px;
}

.architectural-header .brand-identity strong {
    font-size: clamp(1.45rem, 1.85vw, 1.85rem);
    letter-spacing: .055em;
}

.architectural-header .brand-identity small {
    font-size: .58rem;
    letter-spacing: .14em;
}

/* Restore original diagonal navy ribbon width. */
.architectural-header .header-frame::after {
    width: 490px;
    max-width: 43%;
}

/* Full-size desktop navigation. */
.architectural-header .desktop-nav {
    gap: clamp(16px, 1.5vw, 26px);
    margin-left: auto;
}

.architectural-header .nav-link {
    font-size: .84rem;
}

/* Original gold Reserve action. */
.architectural-header .reserve-action {
    min-height: 49px;
    padding: 6px 8px 6px 19px;
    background: #e0b96e;
    border-color: #e0b96e;
    color: #10264b;
    font-size: .8rem;
}

.architectural-header .reserve-icon {
    background: #10264b;
    color: #e0b96e;
}

/* Original compact icon-only theme button. */
.architectural-header .theme-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 50%;
}

.architectural-header .theme-toggle-label {
    display: none;
}

/* Hero begins directly after the header band. */
.site-shell > .hero {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
}

/* Maintain original proportions on tablets and phones. */
@media (max-width: 1180px) {
    .architectural-header .header-frame::after {
        display: none;
    }

    .architectural-header .brand-emblem {
        width: 86px;
        height: 68px;
    }

    .architectural-header .brand-identity strong {
        font-size: 1.4rem;
    }

    .architectural-header .brand-identity small {
        font-size: .5rem;
    }
}

@media (max-width: 680px) {
    .architectural-header {
        padding: 8px 0;
    }

    .architectural-header .header-container {
        width: calc(100% - 24px);
    }

    .architectural-header .header-frame {
        min-height: 76px;
        padding: 8px 11px;
    }

    .architectural-header .brand-emblem {
        width: 66px;
        height: 57px;
    }

    .architectural-header .brand-identity strong {
        font-size: 1.08rem;
    }

    .architectural-header .brand-identity small {
        font-size: .39rem;
    }
}

/* Dynamic published-project navigation */
.architectural-header .desktop-nav {
    position: relative;
}

.architectural-header .projects-dropdown {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: -12px;
}

.architectural-header .projects-dropdown-trigger {
    display: grid;
    place-items: center;
    width: 25px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--header-ink);
    cursor: pointer;
}

.architectural-header .projects-dropdown-trigger[hidden],
.architectural-header .projects-dropdown-panel[hidden],
.architectural-header .mobile-projects[hidden] {
    display: none !important;
}

.architectural-header .projects-dropdown-trigger svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform .2s ease;
}

.architectural-header .projects-dropdown.is-open
.projects-dropdown-trigger svg {
    transform: rotate(180deg);
}

.architectural-header .projects-dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: -105px;
    width: 260px;
    max-height: min(60vh, 430px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--header-line);
    border-radius: 10px;
    background: var(--header-panel);
    box-shadow: 0 18px 38px var(--header-shadow);
    backdrop-filter: blur(20px);
    z-index: 40;
}

.architectural-header .projects-dropdown-link {
    display: block;
    padding: 12px 13px;
    border-radius: 6px;
    color: var(--header-ink);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
}

.architectural-header .projects-dropdown-link:hover,
.architectural-header .projects-dropdown-link:focus-visible {
    background: rgba(199,165,106,.15);
    color: var(--header-gold);
}

.architectural-header .mobile-projects {
    margin: 12px 0 16px 30px;
    padding-left: 18px;
    border-left: 2px solid var(--header-gold);
}

.architectural-header .mobile-projects-heading {
    margin: 0 0 10px;
    color: var(--header-gold);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.architectural-header .mobile-project-link {
    display: block;
    padding: 10px 0;
    color: var(--header-ink);
    font-size: .95rem;
    text-decoration: none;
}

.architectural-header .mobile-project-link:hover {
    color: var(--header-gold);
}

@media (max-width: 1180px) {
    .architectural-header .projects-dropdown {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .architectural-header .projects-dropdown-trigger svg {
        transition: none;
    }
}

/* Shared header: Projects submenu belongs to Projects. */
.architectural-header .projects-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 0;
    flex-shrink: 0;
}

.architectural-header .projects-dropdown > .nav-link {
    flex-shrink: 0;
}

.architectural-header .projects-dropdown-trigger {
    width: 20px;
    min-width: 20px;
    height: 36px;
    margin: 0;
    padding: 0;
}

.architectural-header .projects-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    width: 260px;
    z-index: 150;
}

.architectural-header .header-frame {
    overflow: visible;
}

/* Theme control is one icon-only button, not a dropdown. */
.architectural-header .theme-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .architectural-header .projects-dropdown {
        display: none;
    }
}


/* GOLDEN PROJECTS HOVER BRIDGE */

/*
 * Keep the hover target connected to the dropdown panel
 * so it doesn't close while moving the mouse downward.
 */
.architectural-header .projects-dropdown {
    position: relative;
}

.architectural-header .projects-dropdown.is-open::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: max(100%, 260px);
    height: 16px;
    background: transparent;
    pointer-events: auto;
}

.architectural-header .projects-dropdown-panel {
    z-index: 150;
}

@media (hover: none) {
    .architectural-header .projects-dropdown.is-open::after {
        display: none;
    }
}
