/* V14 cover. Source: xandershambaugh.com site.css/header-v1.css.
   QE additions: monochrome chrome, black entrance, three-second slideshow,
   and the China folder below Endeavors. No filter on body or modal artwork. */
html[data-qe-palette-scope=home]:not(:has(.qe-interior-open)){
  --paper:#000;--ground:#000;--ink:#e9e9e9;--muted:#c5c5c5;--soft:#c5c5c5;
  --accent:#e9e9e9;--blue:#e9e9e9;--on-accent:#000;--error:#fff;--red:#e9e9e9;
  --hair:rgba(255,255,255,.3);--surface:#1c1c1c;--folder-fill:rgba(255,255,255,.14);
  --folder-hover:rgba(255,255,255,.28);background:#000;color-scheme:dark;
}
html[data-qe-palette-scope=home][data-theme=light]:not(:has(.qe-interior-open)){
  --paper:#fff;--ground:#fff;--ink:#111;--muted:#424242;--soft:#424242;
  --accent:#111;--blue:#111;--on-accent:#fff;--error:#111;--red:#111;
  --hair:rgba(0,0,0,.25);--surface:#eee;--folder-fill:rgba(0,0,0,.1);
  --folder-hover:rgba(0,0,0,.18);background:#fff;color-scheme:light;
}
html[data-theme] body.qe-home{min-height:100svh;isolation:isolate;background:var(--paper)}
html[data-theme] body.qe-home:not(.qe-interior-open)::before{display:none}
html[data-theme] body.qe-home>.qe-cover-drawing{
  position:fixed!important;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:#000;opacity:1;filter:none;
}
.qe-cover-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  opacity:0;filter:grayscale(1) contrast(1.06) brightness(1.02);transition:opacity 1000ms ease-in-out}
.qe-cover-slide.is-visible{opacity:1}
.qe-cover-drawing::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.55) 42%,rgba(0,0,0,.82) 100%)}
html[data-theme]:has(body.qe-home:not(.qe-interior-open))::before{
  display:block;content:'';position:fixed;inset:0;z-index:399;pointer-events:none;
  background:radial-gradient(122% 94% at 46% 38%,transparent 40%,rgba(0,0,0,.6) 100%);
}
html[data-theme]:has(body.qe-home:not(.qe-interior-open))::after{opacity:.5;mix-blend-mode:screen}
html[data-theme=light] body.qe-home>.qe-cover-drawing{background:#fff}
html[data-theme=light] .qe-cover-drawing::after{background:rgba(255,255,255,.88)}
html[data-theme=light]:has(body.qe-home:not(.qe-interior-open))::before{display:none}
html[data-theme=light]:has(body.qe-home:not(.qe-interior-open))::after{opacity:.12;mix-blend-mode:multiply}

/* A single, fixed right-hand folder column. */
html[data-theme] body.qe-home .xs-site-header{flex-wrap:nowrap;gap:12px}
html[data-theme] body.qe-home .xs-site-folders{flex-basis:auto;flex-direction:column;align-items:center;gap:26px;margin-left:auto}
html[data-theme] body.qe-home .xs-site-header .xs-site-folder img{
  width:clamp(34px,3.4vw,44px);height:clamp(34px,3.4vw,44px);filter:grayscale(1) brightness(1.04);
}
html[data-theme] body.qe-home .xs-site-folder span{color:var(--ink);background:var(--folder-fill)}
.qe-landing{min-height:0}
html[data-theme] body.qe-home>p.qe-home-blurb{
  position:fixed!important;left:7vw;top:auto;bottom:clamp(18px,2.6vh,30px);max-width:34ch;
  color:var(--ink);font:400 clamp(15px,1.55vw,20px)/1.62 var(--qe-cover-serif);letter-spacing:.005em;
}

/* Portfolio messenger shape and type, kept at legible/touchable size. */
html[data-theme] body.qe-home>.qe-gate-panel#password-dialog{
  position:fixed;left:auto;top:auto;right:18px;bottom:18px;transform:none;
  width:min(304px,calc(100vw - 40px));z-index:411;gap:6px;padding:0;
}
body.qe-home #password-dialog.qe-gate-panel .qe-gate-title{
  padding:9px 14px 10px;border-radius:18px 18px 18px 5px;background:#e9e9e9;color:#111;
  font:400 16px/1.32 -apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;letter-spacing:-.011em;
}
body.qe-home #password-dialog.qe-gate-panel .gate-form{grid-template-columns:minmax(0,1fr) 44px;gap:2px;padding:4px 4px 4px 13px;border-radius:24px;background:#1c1c1c;border-color:#747474}
body.qe-home #password-dialog.qe-gate-panel .gate-input{font:400 16px/1.32 -apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;color:#f0f0f0;min-height:44px;padding:8px 0;letter-spacing:-.011em}
body.qe-home #password-dialog.qe-gate-panel .gate-input::placeholder{color:#c5c5c5}
body.qe-home #password-dialog.qe-gate-panel .gate-input:focus{outline-color:#ddd}
body.qe-home #password-dialog.qe-gate-panel .gate-go{width:44px;height:44px;min-height:44px;background:#e9e9e9;color:#111}
html[data-theme] body.qe-home #password-dialog.qe-gate-panel .gate-msg{color:#fff;letter-spacing:0;text-transform:none}
body.qe-home .qe-xhair :is(.vx,.hz){background:rgba(255,255,255,.35)}
body.qe-home .qe-xhair :is(.vy,.hy){background:rgba(255,255,255,.12)}
body.qe-home .qe-xhair .reg{border-color:rgba(255,255,255,.55)}
html[data-theme=light] body.qe-home .qe-xhair :is(.vx,.hz){background:rgba(0,0,0,.3)}
html[data-theme=light] body.qe-home .qe-xhair :is(.vy,.hy){background:rgba(0,0,0,.1)}
html[data-theme=light] body.qe-home .qe-xhair .reg{border-color:rgba(0,0,0,.4)}
body.qe-home .qe-palettes{background:var(--paper)}
@media(max-width:760px){
  html[data-theme] body.qe-home .xs-site-header{padding:14px 12px 0 20px}
  html[data-theme] body.qe-home .xs-site-folders{gap:12px}
  html[data-theme] body.qe-home>p.qe-home-blurb{left:20px;right:20px;max-width:34ch;bottom:clamp(182px,25vh,220px);top:auto}
  html[data-theme] body.qe-home>.qe-gate-panel#password-dialog{right:10px;bottom:10px}
}
@media(max-height:450px){
  html[data-theme] body.qe-home>p.qe-home-blurb{right:auto;max-width:min(34ch,calc(100vw - 370px));bottom:clamp(18px,2.6vh,30px)}
  html[data-theme] body.qe-home>.qe-gate-panel#password-dialog{bottom:18px}
}
@media(max-width:360px) and (max-height:540px){
  html[data-theme] body.qe-home{min-height:calc(100svh + 180px)}
  html[data-theme] body.qe-home>p.qe-home-blurb{position:absolute!important;top:calc(100svh + 20px);bottom:auto}
}
@media(prefers-reduced-motion:reduce){.qe-cover-slide{transition:none}}
