/* A clean navigation header; affiliation artwork sits below the introduction. */
header{height:82px;gap:24px;background:#f7fafbed}
header.scrolled{background:#f7fafbf5}
header .header-brand{margin:0;gap:0;flex-shrink:0;align-items:center}
header .header-brand .header-name{display:block;font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.2;font-weight:400;letter-spacing:.5px;text-align:right}
header .header-name span{display:none}
header .header-inline{justify-content:flex-start}
header .header-inline>a,header .header-inline>.resources-menu>summary{padding:0 12px;font-size:12px;letter-spacing:1px}
.ribbon{display:block;padding:12px 6%;background:#f6f5f1;border-bottom:1px solid #e5e1d8}
.ribbon-inner{max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:36px}
.ribbon-copy{display:flex;flex-wrap:wrap;gap:12px 24px;font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.5;color:#536874}
.ribbon-affiliations{display:flex;align-items:center;gap:28px;flex-shrink:0}
.ribbon-affiliations a{display:flex;align-items:center;justify-content:center;min-height:44px}
.ribbon-affiliations img{display:block;object-fit:contain;mix-blend-mode:multiply}
.ribbon-pearl{width:82px;height:82px}
.ribbon-compass{width:130px;height:auto}
@media(max-width:1250px){header .header-brand{margin-left:auto;margin-right:0}header .header-brand .header-name{text-align:right}}
@media(max-width:760px){
 header,header.scrolled{height:auto;min-height:68px;gap:12px;padding:8px max(16px,env(safe-area-inset-left)) 8px max(16px,env(safe-area-inset-right))}
 header .header-brand{flex:0 1 auto;margin-left:auto}
 header .header-brand .header-name{font-size:19px;letter-spacing:.3px}
 .ribbon{padding:14px 6%}
 .ribbon-inner{flex-direction:column;gap:8px}
 .ribbon-copy{justify-content:center;gap:4px 14px;font-size:13px;text-align:center}
 .ribbon-affiliations{gap:26px}
 .ribbon-pearl{width:68px;height:68px}
 .ribbon-compass{width:116px}
}

/* Navigation headings share Essen's type size. */
header{--header-label-size:20px}
header .header-brand .header-name,
header .header-inline>a,
header .header-inline>.resources-menu>summary,
#site-navigation>a:not(.nav-compass),
#site-navigation>.resources-menu>summary{font-size:var(--header-label-size);line-height:1.25}
header .header-inline>a,header .header-inline>.resources-menu>summary{padding:0 10px;letter-spacing:.4px}
header .header-inline{gap:0;align-items:stretch}
@media(max-width:1550px){
 header .header-inline{display:none}
 header .menu-toggle{display:block}
 header .header-brand{margin-left:auto;margin-right:0}
 #site-navigation{max-height:calc(100svh - 82px)}
}
@media(max-width:760px){header{--header-label-size:19px}#site-navigation{max-height:calc(100svh - 68px)}}

/* Original Compass artwork replaces the header name. */
header .header-compass{display:flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0}
header .header-compass img{display:block;width:150px;height:auto;object-fit:contain;mix-blend-mode:multiply}
@media(max-width:760px){header .header-compass img{width:140px}}

/* Soft smoked glass appears as the page scrolls beneath the header. */
header.scrolled{
 background:rgba(207,219,224,.78);
 backdrop-filter:blur(20px) saturate(125%);
 -webkit-backdrop-filter:blur(20px) saturate(125%);
 border-bottom-color:rgba(58,82,96,.16);
 box-shadow:0 5px 22px rgba(25,47,60,.08),inset 0 1px 0 rgba(255,255,255,.4);
}

/* Pearl leads the introduction ribbon with its original artwork. */
.ribbon-affiliations{order:-1}
.ribbon-copy{flex:1}
.ribbon-pearl{width:102.5px;height:102.5px}
@media(max-width:760px){
 .ribbon-inner{flex-direction:row;gap:20px;justify-content:flex-start}
 .ribbon-copy{flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:4px;font-size:13px}
 .ribbon-pearl{width:85px;height:85px}
}

/* Geometric lettering echoes the Compass wordmark. */
@font-face{font-family:'Pearl Geometric';src:url('fonts/URWGothic-Book.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
header .header-inline>a,
header .header-inline>.resources-menu>summary,
#site-navigation>a:not(.nav-compass),
#site-navigation>.resources-menu>summary{
 font-family:'Pearl Geometric','Century Gothic',sans-serif;
 font-weight:400;font-size:var(--header-label-size);letter-spacing:.8px;line-height:1.25;
}
header .menu-toggle{font-family:'Pearl Geometric','Century Gothic',sans-serif;font-weight:400;letter-spacing:1px}

/* Team attribution sits directly below the header brokerage mark. */
header .header-compass{flex-direction:column;gap:6px;text-decoration:none;padding:6px 0}
header .header-affiliation{display:block;font-family:'Pearl Geometric','Century Gothic',sans-serif;font-size:9px;line-height:1.35;font-weight:400;letter-spacing:1.2px;text-transform:uppercase;text-align:center;color:#536874}
@media(max-width:760px){header .header-compass{gap:5px}header .header-affiliation{font-size:9px;letter-spacing:1px}}
