/* site-header.css: ONE header for every page (owner, 2026-11-11). The home page is the standard; every value here is the home page's,
   plus the owner's 2026-11-11 fixes: wider, equal gaps between nav items; a label that wraps is centred under its first line; no line overlap. */
header.site-hdr{position:sticky!important;top:0;z-index:20;margin:0;padding:0;background:rgba(2,5,13,.55)!important;backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important;border-bottom:1px solid transparent!important;font-family:"EB Garamond","Iowan Old Style",Palatino,Georgia,serif;font-size:19.21px;font-weight:400;line-height:1.5;color:rgb(243,240,232)}
header.site-hdr #nav-open{position:absolute;opacity:0;pointer-events:none;margin:0;width:1px;height:1px}
header.site-hdr .nav-inner{position:relative;z-index:1;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:32px;height:64px;width:min(1040px,calc(100% - 48px));max-width:none;margin:0 auto;padding:0}
header.site-hdr a.brand{position:relative;display:flex;align-items:center;gap:14px;flex:0 0 auto;margin:0;padding:0;font-family:"EB Garamond","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;font-weight:400;font-size:clamp(36.16px,3.84vw,49.72px);line-height:1.5;letter-spacing:-.02em;text-transform:uppercase;color:#E8C4C0;text-decoration:none;white-space:nowrap}
header.site-hdr a.brand:hover{text-decoration:none;color:#E8C4C0}
header.site-hdr a.brand img{display:block;width:56px;height:56px;border-radius:12px;opacity:.78;margin:0}
header.site-hdr a.brand .brand-word{opacity:.78;text-shadow:0 0 3px currentColor}
/* The CODE easter egg in front of DEIFIC: hidden until the mouse is over the logo or a double helix passes (site-header.js), exactly as on home. */
header.site-hdr a.brand .hcode{font-family:"Cinzel","Trajan Pro",Optima,Georgia,serif;font-weight:500;font-size:.5em;letter-spacing:.04em;text-transform:uppercase;color:#fff;-webkit-text-fill-color:currentcolor;-webkit-text-stroke:0;background:none;filter:none;line-height:normal;opacity:0;pointer-events:none;transform:translateY(var(--hcodeY,0));transition:opacity .25s,filter .25s;position:absolute;right:calc(100% + 12px);top:0;white-space:nowrap;animation:none!important}
header.site-hdr a.brand .hcode.helix-near{opacity:1;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text;-webkit-text-stroke:.6px rgba(255,248,236,1);animation:hcode-fire .9s ease-in-out infinite!important;filter:drop-shadow(0 0 1.2px rgba(255,248,236,.95)) drop-shadow(0 0 6px rgba(232,196,192,.45)) drop-shadow(0 0 14px rgba(255,140,40,.6))}
@keyframes hcode-fire{0%{background-color:rgba(255,120,30,.22)}17%{background-color:rgba(255,175,70,.5)}33%{background-color:rgba(255,105,25,.28)}52%{background-color:rgba(255,190,90,.55)}70%{background-color:rgba(255,130,35,.3)}86%{background-color:rgba(255,165,60,.46)}100%{background-color:rgba(255,120,30,.22)}}
@media (prefers-reduced-motion:reduce){header.site-hdr a.brand .hcode,header.site-hdr a.brand .hcode.helix-near{transition:none;animation:none!important}header.site-hdr a.brand .hcode.helix-near{background-color:rgba(255,175,70,.5)}}
@media (max-width:1000px){header.site-hdr a.brand .hcode{display:none}}
/* Room for CODE: where the header runs close to the left edge (about 1001-1200px wide), the logo moves right just enough that CODE never leaves the screen. */
@media (min-width:1001px){header.site-hdr .nav-inner{padding-left:max(0px,calc(clamp(36.16px,3.84vw,49.72px) * 1.6 + 20px - (100vw - min(1040px,100vw - 48px)) / 2))}}
/* Nav: equal 34px gaps; a long label may wrap (centred) rather than squeeze the gaps; 1.4 line height so wrapped lines never touch. */
header.site-hdr .nav-links{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:34px;flex:0 1 auto;min-width:0;margin:0;padding:0;font-size:15.82px;line-height:1.4;color:rgb(177,170,160)}
header.site-hdr .nav-links a{display:block;flex:0 1 auto;margin:0;padding:0;font-family:"EB Garamond","Iowan Old Style",Palatino,Georgia,serif;font-size:15.82px;font-weight:400;line-height:1.4;letter-spacing:normal;text-align:center;white-space:normal;text-decoration:none;color:rgb(212,206,196)}
header.site-hdr .nav-links a:hover,header.site-hdr .nav-links a:focus-visible,header.site-hdr .nav-links a[aria-current="page"]{color:rgb(255,252,246);text-shadow:0 0 6px rgba(255,248,236,.35);text-decoration:none}
header.site-hdr .nav-toggle{display:none;background:transparent;border:0;margin:0;padding:8px 0;font:inherit;font-size:15.82px;line-height:1.5;color:rgb(243,240,232);cursor:pointer}
@media (max-width:720px){
  header.site-hdr .nav-toggle{display:block}
  header.site-hdr .nav-links{display:none;position:absolute;left:0;right:0;top:64px;flex-direction:column;align-items:flex-start;gap:22px;padding:14px 24px 20px;background:rgba(6,7,11,.96);border-bottom:1px solid rgba(243,240,232,.14)}
  header.site-hdr .nav-links a{text-align:left}
  header.site-hdr #nav-open:checked ~ .nav-inner .nav-links{display:flex}
}
@media (max-width:640px){header.site-hdr .nav-inner{width:calc(100% - 36px)}}
/* Scope Labs credit (owner, 2026-11-12): a quiet homage at the far right of the bar. Not a link, never competes with DEIFIC.
   Wide screens: in the right gutter, vertically centred, where it cannot reach the nav (gutter = (100vw - 1040px) / 2 >= 140px at 1320px; logo ~106px + 20px).
   721-1319px: smaller, tucked under the nav line near the bottom of the bar (nav text sits at about 21-43px; the logo at 48-59px).
   Phone (<=720px): smaller still, right-aligned with the Menu toggle and just below its label, inside the 64px bar (the dropdown starts at 64px). */
header.site-hdr .hdr-sl{position:absolute;right:12px;bottom:5px;display:block;width:auto;height:11px;max-width:none;margin:0;padding:0;border:0;box-shadow:none;filter:none;opacity:.5;pointer-events:none;user-select:none;-webkit-user-select:none}
@media (min-width:1320px){header.site-hdr .hdr-sl{right:20px;top:50%;bottom:auto;height:15px;transform:translateY(-50%)}}
@media (max-width:720px){header.site-hdr .hdr-sl{right:24px;bottom:6px;height:9px}}
@media (max-width:640px){header.site-hdr .hdr-sl{right:18px}}
