/* Lifted site-wide chrome. Keep page-specific visual systems independent. */
body > .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: initial !important;
  gap: clamp(1rem, 2.5vw, 2rem) !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 84px !important;
  margin: 0 !important;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem) !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  background: rgba(10,10,10,.94) !important;
  color: #f1efe7;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.site-scrolled > .site-header {
  border-bottom-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
}
body > .site-header .brand {
  display: block !important;
  flex: 0 0 180px !important;
  width: 180px !important;
  height: 60px !important;
  max-width: 180px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: url('/assets/lifted-logo-transparent.svg?v=20261012-2') left center/contain no-repeat !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}
body > .site-header .brand > * { display:none !important; }
body > .site-header .site-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(.75rem, 2.5vw, 2.5rem) !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}
body > .site-header .site-nav a {
  color: #aaa89f !important;
  font: 400 .68rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap;
}
body > .site-header .site-nav a:hover,
body > .site-header .site-nav a:focus-visible {color:#f1efe7 !important;}
body > .site-header .status-pill {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  margin: 0 !important;
  color: #c9ff37 !important;
  font: 400 .68rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace !important;
  letter-spacing: .08em !important;
}
body > .site-header .status-dot {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50%;
  background: #c9ff37 !important;
  box-shadow: 0 0 14px rgba(201,255,55,.6) !important;
}
body > .site-footer {
  box-sizing: border-box;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 1rem 2rem !important;
  width: min(100%,1440px) !important;
  max-width: 1440px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 1.5rem clamp(1.25rem,4vw,4.5rem) 2rem !important;
  border: 0 !important;
  border-top: 1px solid #2b2b29 !important;
  background: transparent !important;
  color: #aaa89f !important;
  font: 400 1rem/1.4 Inter,ui-sans-serif,system-ui,sans-serif !important;
  text-align: left !important;
}
body > .site-footer .site-footer-identity,
body > .site-footer .site-footer-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: .6rem 1.1rem !important;
  width: auto !important;
  margin: 0 !important;
}
body > .site-footer .brand-word {color:#f1efe7;font:700 .78rem/1.5 'SFMono-Regular',Consolas,monospace !important;letter-spacing:.18em;}
body > .site-footer .mono {
  color: #aaa89f !important;
  font: 400 .72rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
body > .site-footer a { text-decoration: none !important; border-bottom:1px solid rgba(201,255,55,.30) !important; }
body > .site-footer a:hover,body > .site-footer a:focus-visible {color:#c9ff37 !important;border-bottom-color:#c9ff37 !important;}
body > .portfolio-rights {
  padding: .9rem 1.5rem !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(244,243,239,.38) !important;
  font: 400 .72rem/1.5 Inter,system-ui,sans-serif !important;
  text-align: center !important;
  background: #0a0a0a;
}
body > .alsaid-network {
  padding: 1rem 1.5rem 1.15rem !important;
  margin: 0 !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  background: #06111b !important;
  color: rgba(244,243,239,.46) !important;
  font: 400 .72rem/1.5 Inter,system-ui,sans-serif !important;
  letter-spacing: .03em !important;
  text-align: center !important;
}
body > .alsaid-network a {color:rgba(244,243,239,.72) !important;text-decoration:none !important;}
body > .alsaid-network a:hover {color:#f4f3ef !important;}
body > .page-local-nav {
  display:flex;align-items:center;flex-wrap:wrap;gap:.65rem 1.25rem;
  margin:0 auto;padding:1rem clamp(1.25rem,4vw,4.5rem);
  width:100%;border-bottom:1px solid #222;
  background: #101010;
  color:#aaa89f;font:400 .65rem/1.4 'SFMono-Regular',Consolas,monospace;
  letter-spacing:.06em;text-transform:uppercase;
}
body > .page-local-nav span{color:#c9ff37;margin-right:.5rem;}
body > .page-local-nav a{color:inherit;text-decoration:none;}
body > .page-local-nav a:hover,body > .page-local-nav a:focus-visible{color:#f1efe7;}
@media(max-width:1050px) {
  body > .site-header{grid-template-columns:minmax(0,1fr) auto !important;}
  body > .site-header .site-nav{display:none !important;}
}
@media(max-width:680px) {
  body > .site-header {min-height:68px !important;padding-inline:1rem !important;gap:.75rem !important;}
  body > .site-header .brand {flex-basis:150px !important;width:150px !important;height:50px !important;max-width:150px !important;}
  body > .site-footer {padding-inline:1rem !important;align-items:flex-start !important;flex-direction:column !important;}
  body > .site-footer .site-footer-identity {flex-direction:column !important;align-items:flex-start !important;}
  body > .page-local-nav {padding:1rem;gap:.6rem 1rem;}
}
@media (prefers-reduced-motion:reduce){body > .site-header{transition:none !important;}}

/* Secret Links: accessible in the shared navigation, not buried below the archive. */
body > .site-header .site-nav a.secret-nav-link {
  color: #c9ff37 !important;
  font-weight: 700 !important;
  padding-bottom: .25rem !important;
  border-bottom: 1px solid rgba(201,255,55,.65) !important;
}
body > .site-header .site-nav a.secret-nav-link:hover,
body > .site-header .site-nav a.secret-nav-link:focus-visible {
  color: #f1efe7 !important;
  border-bottom-color: #f1efe7 !important;
}
body > .site-header .secret-link-mobile {
  display: none !important;
}
body > .site-footer a.secret-footer-link {
  display: inline-flex !important;
  align-items: center !important;
  padding: .7rem .9rem !important;
  border: 1px solid rgba(201,255,55,.65) !important;
  color: #c9ff37 !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  background: rgba(201,255,55,.045) !important;
}
body > .site-footer a.secret-footer-link:hover,
body > .site-footer a.secret-footer-link:focus-visible {
  border-color: #c9ff37 !important;
  background: rgba(201,255,55,.10) !important;
}
@media (max-width: 1050px) {
  body > .site-header .secret-link-mobile {
    display: inline-block !important;
    color: #c9ff37 !important;
    font: 700 .68rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace !important;
    letter-spacing: .08em !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: .35rem 0 !important;
    margin-right: .3rem !important;
    border-bottom: 1px solid rgba(201,255,55,.65) !important;
  }
}
@media (max-width: 375px) {
  body > .site-header .status-pill .status-dot,
  body > .site-header .status-pill .live-text { display: none !important; }
}

/* Lifted unified V2 navbar: typography, palette and logo remain shared. */
body:not(.v2-home) > .site-header .site-nav button.v2-nav-search{
  display:inline-flex;align-items:center;gap:.9rem;
  padding:.55rem .75rem;border:1px solid var(--line, #2b2b29);background:transparent;
  color:var(--text,#f1efe7);font:400 .68rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;
  letter-spacing:.07em;white-space:nowrap;cursor:pointer
}
body:not(.v2-home) > .site-header .site-nav .v2-nav-search span{color:var(--signal,#c9ff37)}
body:not(.v2-home) > .site-header .site-nav .v2-nav-search:hover,
body:not(.v2-home) > .site-header .site-nav .v2-nav-search:focus-visible{color:var(--signal,#c9ff37);border-color:var(--signal,#c9ff37)}
body:not(.v2-home) > .site-header .v2-header-actions{display:flex;align-items:center;gap:1rem;justify-content:flex-end}
body:not(.v2-home) > .site-header .v2-mobile-search,
body:not(.v2-home) > .site-header .v2-menu-toggle{
  display:none;align-items:center;justify-content:center;gap:.35rem;padding:.7rem;
  border:1px solid var(--line,#2b2b29);background:transparent;color:var(--text,#f1efe7);
  font:400 .68rem/1 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;
  letter-spacing:.06em;white-space:nowrap;cursor:pointer
}
body:not(.v2-home) > .site-header :is(.v2-mobile-search,.v2-menu-toggle):hover,
body:not(.v2-home) > .site-header :is(.v2-mobile-search,.v2-menu-toggle):focus-visible{
  border-color:var(--signal,#c9ff37);color:var(--signal,#c9ff37)
}
body:not(.v2-home) > .v2-mobile-menu[hidden]{display:none!important}
body:not(.v2-home) > .v2-mobile-menu{display:none}
@media(max-width:1050px){
  body:not(.v2-home) > .site-header .v2-mobile-search,
  body:not(.v2-home) > .site-header .v2-menu-toggle{display:inline-flex}
  body:not(.v2-home) > .v2-mobile-menu:not([hidden]){
    position:sticky;top:84px;z-index:79;display:block;padding:0 clamp(1.25rem,4vw,4.5rem);
    background:#0d0d0d;border-bottom:1px solid var(--line,#2b2b29)
  }
  body:not(.v2-home) > .v2-mobile-menu a{
    display:flex;align-items:center;justify-content:space-between;gap:1rem;
    padding:1rem 0;border-top:1px solid var(--line,#2b2b29);
    color:var(--text,#f1efe7);text-decoration:none;font:400 .75rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace;letter-spacing:.06em
  }
  body:not(.v2-home) > .v2-mobile-menu a span{color:var(--signal,#c9ff37)}
}
@media(max-width:680px){
  body:not(.v2-home) > .site-header .status-pill{display:none!important}
  body:not(.v2-home) > .site-header .v2-header-actions{gap:.5rem}
  body:not(.v2-home) > .site-header .v2-mobile-search span{display:none}
  body:not(.v2-home) > .v2-mobile-menu:not([hidden]){top:68px;padding-inline:1rem}
}
@media(max-width:420px){
  body:not(.v2-home) > .site-header .brand{width:125px!important;max-width:125px!important;flex-basis:125px!important}
  body:not(.v2-home) > .site-header .v2-menu-toggle{font-size:.62rem;padding:.68rem .5rem}
}

/* Search opens immediately within a secondary page; the homepage uses the full inline search. */
body.lifted-search-open{overflow:hidden!important}
.lifted-search-overlay[hidden]{display:none!important}
.lifted-search-overlay{position:fixed;inset:0;z-index:150;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:clamp(12px,3vw,40px)}
.lifted-search-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(0,0,0,.82);backdrop-filter:blur(8px);cursor:default}
.lifted-search-dialog{
  position:relative;width:min(1100px,100%);max-height:min(90dvh,980px);overflow-y:auto;
  border:1px solid var(--line,#2b2b29);background:#0b0b0b;box-shadow:0 24px 85px rgba(0,0,0,.45)
}
.lifted-search-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.4rem;border-bottom:1px solid var(--line,#2b2b29);color:var(--signal,#c9ff37)}
.lifted-search-dialog-bar .lifted-search-close{border:1px solid var(--line,#2b2b29);padding:.6rem;background:transparent;color:var(--text,#f1efe7);font:400 .7rem var(--mono,monospace);cursor:pointer}
.lifted-search-dialog-bar .lifted-search-close:hover{color:var(--signal,#c9ff37);border-color:var(--signal,#c9ff37)}
.lifted-search-dialog .v2-search-shell{border:0;padding:clamp(1rem,3vw,2rem)}
.lifted-search-dialog .v2-results-list{max-height:min(38dvh,430px)}
@media(max-width:680px){
  .lifted-search-overlay{padding:0;align-items:stretch}
  .lifted-search-dialog{width:100%;height:100%;max-height:100dvh;border:0;display:flex;flex-direction:column}
  .lifted-search-dialog>.v2-search-shell{flex:1;min-height:0;overflow-y:auto}
  .lifted-search-dialog .v2-results-list{max-height:45dvh}
}

/* Existing homepage structure; only search placement and information anchors move. */
.clone-v2 .landing-hero:has(.v2-search-shell){grid-template-rows:auto auto auto;min-height:auto}
.clone-v2 .landing-hero > .v2-search-shell{margin-top:clamp(1rem,3vw,3rem);margin-bottom:clamp(.5rem,2vw,2rem)}
.home-evolution-routes{display:grid;grid-template-columns:minmax(150px,.28fr) minmax(0,1fr) auto;gap:clamp(1.5rem,4vw,4rem);align-items:center;padding-top:2.25rem;padding-bottom:2.25rem;border-bottom:1px solid var(--line,#2b2b29)}
.home-evolution-routes>span{color:var(--signal,#c9ff37)}
.home-evolution-routes p{max-width:540px;color:var(--muted,#aaa89f);font-size:.94rem;line-height:1.5}
.home-evolution-routes>div{display:flex;gap:.75rem 1.4rem;flex-wrap:wrap;justify-content:flex-end}
.home-evolution-routes a{color:var(--signal,#c9ff37);text-decoration:none;border-bottom:1px solid rgba(201,255,55,.35);padding-bottom:.3rem}
.home-evolution-routes a:hover{color:var(--text,#f1efe7);border-color:var(--text,#f1efe7)}
.home-nav-anchor{display:block;scroll-margin-top:100px;height:0;overflow:hidden}
#experiment,#evolution,#entries,#research{scroll-margin-top:100px}
@media(max-width:900px){.home-evolution-routes{grid-template-columns:1fr;gap:.85rem}.home-evolution-routes>div{justify-content:flex-start}}

/* The V2 inline search is also reused outside .v2-home; honor hidden controls. */
body:not(.v2-home) .v2-search-shell [hidden]{display:none!important}

/* Secret Links: label always visible; its reserved outlined box appears on hover or keyboard focus. */
body > .site-header .v2-header-actions a.secret-header-link {
  display: inline-flex !important;
  flex: 0 0 auto;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid transparent;
  background: transparent;
  color: #c9ff37 !important;
  font: 600 .65rem/1.4 'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace !important;
  letter-spacing: .085em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease;
}
body > .site-header .v2-header-actions a.secret-header-link:hover,
body > .site-header .v2-header-actions a.secret-header-link:focus-visible {
  border-color: rgba(201,255,55,.5);
  background: rgba(201,255,55,.045);
}
body > .site-header .v2-header-actions a.secret-header-link:focus-visible {
  outline: 2px solid #c9ff37;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  body > .site-header .v2-header-actions a.secret-header-link {
    padding-inline: .55rem;
    font-size: .61rem !important;
  }
}
@media (max-width: 420px) {
  body > .site-header .v2-header-actions a.secret-header-link .secret-header-word {display:none}
  body > .site-header .v2-header-actions a.secret-header-link {gap:.25rem;padding-inline:.43rem}
}
@media (max-width: 375px) {
  /* The existing menu and footer remain accessible on very narrow screens. */
  body > .site-header .v2-header-actions a.secret-header-link {display:none !important}
}
