/* Home v04 · SHELL. Layered on the ORIGINAL site.css; nothing in the repo is changed.
   Zone tokens (always defined, so the other layers can rely on them): */
:root{--v04-marquee-h:176px;--v04-analysis-h:404px;--v04-field-reserve:64px}
@media(max-height:999px){:root{--v04-analysis-h:340px}}
@media(max-height:819px){:root{--v04-marquee-h:150px}}

/* ---- Slanted logo 06 in the header, footer and nav (tight box measured with getBBox: 1645.37 x 1097.55 = 1.5 : 1) ---- */
.xd-mark.xd06{filter:none;overflow:visible}
body.v04 .brand .xd-mark.xd06{width:auto;height:30px;color:var(--white)}
body.v04 .footer-archive .xd-mark.xd06{width:auto;height:17px}
body.v04 .brand-index .xd-mark.xd06{width:auto;height:18px}

/* ---- Header: taller, logo alone at the gutter, name, theme switch, contact ---- */
body.v04-shell-on .brand-wordmark{display:none}
body.v04-shell-on .brand{gap:0}
@media(min-width:760px) and (min-height:561px){
 body.v04-shell-on{--header:116px}
 body.v04-shell-on .site-header{gap:28px}
 body.v04-shell-on .brand .xd-mark.xd06{height:50px}
 body.v04.v04-shell-on .site-header .header-name{display:block;font-size:15px;line-height:1.2;letter-spacing:.04em;color:var(--ink-81)}
}
.v04-theme{display:none}
@media(min-width:760px){
 body.v04-shell-on .v04-theme{display:flex;align-items:center;gap:7px;margin-left:auto;font:15px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
 body.v04-shell-on .v04-theme a{display:inline-block;padding:14px 0;color:var(--muted);text-decoration:none}
 body.v04-shell-on .v04-theme a:hover{color:var(--white)}
 body.v04-shell-on .v04-theme a[aria-current]{color:var(--white);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
 body.v04-shell-on .v04-theme a:focus-visible{outline:1.6px solid var(--focus,var(--white));outline-offset:2px}
 body.v04-shell-on .v04-theme+.header-contact{margin-left:0}
}

/* ---- Zones: the marquee band takes the place of the tracking strip, the field ends above it ----
   The scene reads the top of .site-controls as "where the footer starts" and keeps 64 px clear above that
   (the room the old strip needed). So the footer BOX is grown by the band height (the page above shrinks and
   .landing ends exactly on the top edge of the band), then its top is pushed back down by those 64 px: the field
   of the liquid then ends on the top edge of the band and the liquid sits in the middle of the free area. */
body.v04-shell-on .tracking-strip{visibility:hidden!important}
@media(min-width:760px) and (min-height:561px){
 body.v04-shell-on:not(.v04-away){grid-template-rows:var(--header) minmax(0,1fr) calc(var(--footer) + var(--v04-marquee-h))}
 body.v04-shell-on:not(.v04-away) .site-controls{margin-top:var(--v04-field-reserve);padding-top:calc(var(--v04-marquee-h) - var(--v04-field-reserve));background:linear-gradient(to top,var(--black) var(--footer),transparent var(--footer));pointer-events:none}
 body.v04-shell-on:not(.v04-away) .site-controls>*{pointer-events:auto}
 body.v04-shell-on:not(.v04-away) .site-controls>.boundary-footer{top:calc(var(--v04-marquee-h) - var(--v04-field-reserve) - 5px);pointer-events:none}
}
/* Left column: bio at the top, the analysis box pinned 24 px above the band; the old readout and bridge no longer fit. */
@media(min-width:1100px) and (min-height:561px){
 body.v04-shell-on .field-instruments{top:auto!important;bottom:24px!important;height:var(--v04-analysis-h);box-sizing:border-box}
 body.v04-shell-on .home-readout,body.v04-shell-on .console-bridge{display:none!important}
}
/* v04 layers on <body> step out on every page that is not home */
body.v04-away>[class^="v04-"]{visibility:hidden!important;pointer-events:none!important}
body.v04-away .v04-theme{display:none!important}
body.v04-away .v04-theme+.header-contact{margin-left:auto}

/* ---- Review pass 1 (shell) ---- */
/* Leftover original parts that read the hidden original trackers: the top ruler and the four rail labels go, the plain rails stay. */
body.v04-shell-on .field-coordinate-header,body.v04-shell-on .boundary-register,body.v04-shell-on .boundary-end{display:none!important}
/* Readable heading in the left column at the 15 px floor; the bio shares the analysis box's width (270 px) so both end on one edge. */
@media(min-width:1100px) and (min-height:561px){
 body.v04.v04-shell-on .home-bio .bio-heading{font-size:15px;line-height:1.2}
 body.v04-shell-on .home-bio{width:270px}
}
/* Contact: the arrow sits right after its word, at the word's size. */
body.v04-shell-on .header-contact{gap:7px}
body.v04-shell-on .header-contact span{font-size:15px;line-height:1}
body.v04-shell-on .v04-theme a:focus-visible{outline-width:2px}
/* The grown footer box starts 112 px above the footer itself: its top border must not draw across the band. */
@media(min-width:760px) and (min-height:561px){
 body.v04-shell-on:not(.v04-away) .site-controls{border-top-color:transparent;background-clip:padding-box}
}
/* Left column at short windows: the bio starts 20 px under the header; where bio + analysis box cannot both fit
   (window lower than 890 px: box top would come within 20 px of the bio), the box steps out and the bio stays. */
@media(min-width:1100px) and (min-height:561px) and (max-height:999px){body.v04-shell-on .home-bio{top:20px}}
@media(min-width:1100px) and (min-height:561px) and (max-height:889px){body.v04-shell-on .field-instruments{display:none!important}}
