/* One header treatment for the immersive home and all five public interior pages.

   Keep these metrics shared: route-specific controls occupy the same slot. */

.brand-header,.brand-controls{

 --header-ink:#e9e3d5;--header-gold:#d5b879;--header-muted:#a9b0a7;

 color:var(--header-ink);font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;

 font-size:12px;font-weight:400;line-height:20px;letter-spacing:0;

}

html body .brand-header,html:not(.enhanced) body .brand-header{

 display:block;width:100%;height:88px;min-height:88px;padding:0;box-sizing:border-box;

 background:#101915;border:0;border-bottom:1px solid #bda87918;

 backdrop-filter:none;view-transition-name:site-header;

}

body .brand-header>.brand-header__inner{

 display:flex;align-items:center;justify-content:space-between;gap:32px;

 width:89%;max-width:none;height:87px;min-height:0;margin:0 auto;padding:0 184px 0 0;

}

.brand-header .brand{

 display:flex;flex:none;align-items:center;gap:13px;min-width:0;

 color:var(--header-ink);text-decoration:none;letter-spacing:0;

}

.brand-header .brand [data-brand-mark]{

 display:block;flex:none;width:44px;height:44px;object-fit:contain;margin:0;

}

.brand-header .brand-company{

 display:block;font:400 21px/1.5 "Noto Serif SC","Songti SC",SimSun,serif;

 letter-spacing:.02em;white-space:normal;color:var(--header-ink);

}

.brand-header .brand-company>span{display:inline-block;white-space:nowrap}

.brand-header .brand small{

 display:block;margin:5px 0 0;font:9px/1 Arial,sans-serif;letter-spacing:.25em;color:var(--header-gold);

}

.brand-header :is(.primary-nav,.interior-nav){

 display:flex;align-items:center;flex:none;gap:28px;margin:0;padding:0;font-size:12px;line-height:20px;

}

.brand-header :is(.primary-nav,.interior-nav)>a{

 display:flex;align-items:center;position:relative;min-height:44px;

 padding:12px 0;border:0;font:400 12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;

 white-space:nowrap;text-decoration:none;color:var(--header-ink);

}

body .brand-controls,html:not(.enhanced) body .brand-controls{

 top:22px;right:5.5%;display:flex;align-items:center;justify-content:flex-end;

 flex-direction:row;gap:24px;width:152px;height:44px;z-index:45;

}

.brand-header .brand-controls{position:absolute}

.brand-controls #motion,.brand-controls .brand-context-action{

 display:flex;align-items:center;justify-content:center;flex:0 0 64px;

 width:64px;min-width:64px;height:44px;min-height:44px;padding:0;margin:0;

 border:0;border-radius:0;background:transparent;box-shadow:none;

 font:400 12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;

 color:var(--header-ink);text-decoration:none;white-space:nowrap;cursor:pointer;

}

.brand-controls #motion[hidden]{display:none}

.brand-controls #site-menu{position:relative;display:block;flex:0 0 64px;width:64px;margin:0;padding:0;border:0}

.brand-controls #nav-toggle{

 position:relative;display:flex;align-items:center;justify-content:flex-end;gap:11px;

 width:64px;min-width:64px;height:44px;min-height:44px;inline-size:64px;block-size:44px;

 padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;

 font:400 12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;

 color:var(--header-ink);white-space:nowrap;list-style:none;cursor:pointer;user-select:none;

 -webkit-tap-highlight-color:transparent;

}

.brand-controls #nav-toggle::-webkit-details-marker{display:none}

.brand-controls #nav-toggle::marker{content:""}

.brand-controls #nav-toggle .menu-symbol{position:relative;display:block;flex:0 0 14px;width:14px;height:14px;margin:0;color:var(--header-gold)}

.brand-controls #nav-toggle .menu-symbol::before,.brand-controls #nav-toggle .menu-symbol::after{

 content:"";position:absolute;width:12px;height:1px;left:1px;top:6.5px;background:currentColor;transform-origin:50% 50%;

}

.brand-controls #nav-toggle .menu-symbol::before{transform:rotate(0deg)}

.brand-controls #nav-toggle .menu-symbol::after{transform:rotate(90deg);opacity:1}

.brand-controls #site-menu[open] #nav-toggle .menu-symbol::after{transform:rotate(180deg);opacity:0}

.brand-controls #nav-toggle::after{

 content:"";position:absolute;left:0;right:0;bottom:3px;top:auto;width:auto;height:1px;

 border:0;background:var(--header-gold);transform:scaleX(0);transform-origin:right;opacity:.65;

}

.brand-controls #nav-toggle:hover::after,.brand-controls #nav-toggle:focus-visible::after,.brand-controls #site-menu[open] #nav-toggle::after{transform:scaleX(1)}

.brand-controls #nav-toggle:active{opacity:.7}

.brand-controls #site-menu #site-menu-panel{

 display:block;position:absolute;top:calc(100% + 12px);right:0;left:auto;

 width:min(380px,88vw);max-width:none;max-height:min(var(--menu-room,100svh),calc(100svh - 100px));

 overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:25px 28px;margin:0;

 background:#122019;border:1px solid #bda87955;box-shadow:0 24px 70px #0007;

 color:var(--header-ink);font:400 12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;

}

.brand-controls #site-menu:not([open]) #site-menu-panel{pointer-events:none}

.brand-controls #site-menu-panel>a{

 display:flex;align-items:center;justify-content:space-between;gap:12px;

 min-height:64px;margin:0;padding:16px 0;border:0;border-bottom:1px solid #bda87933;

 font:400 12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--header-ink);

 text-decoration:none;background:transparent;

}

.brand-controls #site-menu-panel strong{font:400 20px/1.5 "Noto Serif SC","Songti SC",SimSun,serif;color:inherit}

.brand-controls #site-menu-panel>a[aria-current="page"]{background:transparent}

.brand-controls #site-menu-panel .menu-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:12px 0 0;margin:0}

.brand-controls #site-menu-panel .menu-secondary a{

 position:relative;display:flex;align-items:center;min-height:44px;min-width:44px;margin:0;padding:10px 0;background:transparent;

 border:0;font:400 12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;

 color:var(--header-ink);text-decoration:none;

}

/* Secondary navigation is a quiet text cue, with no filled hover rectangle. */
.brand-controls #site-menu-panel .menu-secondary a:is(:hover,:focus-visible,[aria-current="page"]){background:transparent}
.brand-controls #site-menu-panel .menu-secondary a::after{content:"";position:absolute;left:0;right:0;bottom:6px;height:1px;background:var(--header-gold);opacity:0;transform:scaleX(.65);transform-origin:left}
.brand-controls #site-menu-panel .menu-secondary a:is(:hover,:focus-visible,[aria-current="page"])::after{opacity:.65;transform:scaleX(1)}
.brand-controls #site-menu-panel small{display:block;margin:22px 0 0;color:var(--header-muted);font:400 10px/1.9 Arial,"PingFang SC","Microsoft YaHei",sans-serif}

.brand-header :is(.primary-nav,.interior-nav)>a:hover,.brand-controls #motion:hover,

.brand-controls .brand-context-action:hover,.brand-controls #nav-toggle:hover,.brand-controls #nav-toggle:focus-visible,

.brand-header .interior-nav>a[aria-current="page"],.brand-controls .brand-context-action[aria-current="page"],

.brand-controls #site-menu[open] #nav-toggle,.brand-controls #site-menu-panel a:hover,.brand-controls #site-menu-panel a[aria-current="page"]{color:var(--header-gold)}

.brand-header a:focus-visible,.brand-controls :is(a,button,summary):focus-visible{outline:1px solid var(--header-gold);outline-offset:5px}

/* The static preview notice must not overlap the company name on small screens. */

html:not(.enhanced) body[data-page="home"] .demo-notice{position:fixed;top:auto;bottom:8px;left:5.5%;padding:3px 6px;background:#101915}

@media(max-width:1120px){

 body .brand-header>.brand-header__inner{padding-right:0}

 .brand-header :is(.primary-nav,.interior-nav){display:none}

}

@media(max-width:759px){

 body .brand-header>.brand-header__inner{width:88%}

 body .brand-controls,html:not(.enhanced) body .brand-controls{right:6%}

}

@media(max-width:600px){

 .brand-header .brand{gap:9px}

 .brand-header .brand-company{font-size:16px;line-height:1.4;letter-spacing:0}

 .brand-header .brand-company>span{display:block}

 .brand-header .brand small{margin-top:4px}

 body .brand-controls,html:not(.enhanced) body .brand-controls{top:22px;right:4%;width:136px;height:44px;flex-direction:row;gap:8px}

 .brand-controls #motion,.brand-controls .brand-context-action{flex:0 0 64px}

 .brand-controls #site-menu{flex:0 0 64px}

 .brand-controls #site-menu #site-menu-panel{padding:20px 24px;max-height:min(var(--menu-room,100svh),calc(100svh - 112px))}

}

@media(prefers-reduced-motion:no-preference){
 .brand-controls #site-menu-panel .menu-secondary a::after{transition:opacity 300ms ease,transform 300ms cubic-bezier(.22,.61,.36,1)}

 .brand-header :is(.primary-nav,.interior-nav)>a,.brand-controls #motion,.brand-controls .brand-context-action,.brand-controls #site-menu-panel a{transition:color 220ms ease}

 .brand-controls #nav-toggle{transition:color 220ms ease,opacity 140ms ease}

 .brand-controls #nav-toggle::after{transition:transform 300ms cubic-bezier(.22,.61,.36,1)}

 .brand-controls #nav-toggle .menu-symbol::after{transition:transform 360ms cubic-bezier(.22,.61,.36,1),opacity 280ms ease}

 @supports selector(details::details-content) and (transition-behavior:allow-discrete){

  .brand-controls #site-menu::details-content{opacity:0;transition:opacity 260ms ease,content-visibility 260ms allow-discrete}

  .brand-controls #site-menu[open]::details-content{opacity:1}

 }

}

@media(prefers-reduced-motion:reduce){

 .brand-header,.brand-controls *,.brand-controls *::before,.brand-controls *::after{transition:none!important;animation:none!important}

}



/* The shared phone header keeps every control readable and reachable. */
@media(max-width:700px){
 body .brand-controls #motion,body .brand-controls .brand-context-action,body .brand-controls #nav-toggle{font-size:14px;min-height:44px}
 .brand-controls #site-menu-panel .menu-secondary a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
}
