/* Inner pages (body.page-inner): the homepage's system, carried to content pages.
   - Header: on the content column (.wrap), the navigation at the same left edge and width as everywhere else (so it
     never moves when the bar takes over), the main call to action on the column's right edge (where the bar's sits),
     and the logotype beneath the navigation as the page's masthead, at its width.
   - Once the masthead scrolls away, the logomark bar takes over (style.css .site-bar) and the margin rail appears: the
     page's name on the left, progress through its sections on the right (inner.js).
   - Sections sit in the content column (.wrap); the closing call to action is the homepage's (.contact) in a shorter
     form: the top of a sphere with a lit horizon (.contact-horizon) in place of the beam, without the countdown. */

/* Jumps land clear of the bar (desktop) or the menu button (phones). */
html{scroll-padding-top:72px}
@media(min-width:801px) and (min-height:501px){html{scroll-padding-top:96px}}

.page-header{display:block;padding:clamp(24px,4vh,46px) max(9.375%,calc(50% - 700px)) 0}
.page-header-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-items:center}
.page-header nav{grid-column:1/-1;grid-row:1;width:min(459px,calc(50vw - 24px))}
/* The button is taller than the navigation; negative margins keep the row (and the navigation) at the text's height. */
.page-header-cta{grid-column:9/-1;grid-row:1;justify-self:end;margin-block:-6px}
.page-wordmark{display:block;width:min(459px,calc(50vw - 24px));margin-top:20px;line-height:0}
.page-wordmark img{display:block;width:100%;height:auto}

/* The current page, in the navigation everywhere, is set in brackets (the brand's codename style), placed outside the
   word so the links keep their positions. */
.page-header nav a[aria-current],.site-bar-nav a[aria-current],#site-menu nav a[aria-current]{position:relative}
/* The menu's links fill its width; the current one is fitted to its word so the closing bracket follows it. */
#site-menu nav a[aria-current]{align-self:flex-start}
.page-header nav a[aria-current]::before,.site-bar-nav a[aria-current]::before,#site-menu nav a[aria-current]::before{content:"[";position:absolute;right:100%;padding-right:.2em;color:var(--muted)}
.page-header nav a[aria-current]::after,.site-bar-nav a[aria-current]::after,#site-menu nav a[aria-current]::after{content:"]";position:absolute;left:100%;padding-left:.2em;color:var(--muted)}

/* Margin rail: the mission timer's position and type. A label that would crowd the content column is hidden. */
.margin-rail{position:fixed;left:16px;right:16px;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;z-index:20;color:#fff;mix-blend-mode:exclusion;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.margin-rail.is-visible{opacity:1;visibility:visible}
.margin-rail .is-crowded{visibility:hidden}
body[data-menu-status="open"] .margin-rail{visibility:hidden}

.page-intro{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-content:start;padding-block:clamp(120px,18vh,200px) clamp(96px,14vh,160px)}
.page-intro>*{grid-column:1/9}
/* The readout sits beside the title, from the column's ninth of twelve columns. */
.page-intro .page-readout{grid-column:9/-1;grid-row:2;align-self:start;margin:0;padding-top:12px}
.page-title{margin-top:16px;max-width:1000px;font:400 clamp(44px,5vw,72px)/1.05 var(--sans);letter-spacing:-.035em;text-wrap:balance}
.page-lead{margin-top:clamp(24px,3vh,32px);max-width:720px;font-size:clamp(18px,1.67vw,24px);line-height:1.4;color:var(--body)}
.page-jump{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:40px}
.page-jump a{font:500 14px/1.5 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--body)}
@media(hover:hover){.page-jump a:hover{color:#fff}}


@media(max-width:800px),(max-height:500px){
 .page-header{padding:80px 16px 0}
 .page-header-row{display:none}
 .page-intro>*,.page-intro .page-readout{grid-column:1/-1;grid-row:auto}
 .page-intro .page-readout{margin-top:32px;padding-top:0}
 .page-wordmark{width:min(52vw,220px);margin-top:0}
 .page-intro{padding-block:96px 80px}
}
@media(prefers-reduced-motion:reduce){.margin-rail{transition:none}}

/* Over a colored ground (data-over; inner.js) the bar stays black, made nearly opaque so a light or Electric ground
   behind it doesn't wash it to gray or navy. The rail and menu button keep their blend, which already turns them
   Black over White or Gray (and splits cleanly across an edge), except over Blue, where it would turn them yellow. */
@media(min-width:801px) and (min-height:501px){.page-inner .site-bar{transition:opacity .25s,transform .25s,visibility .25s,background-color .3s}}
.site-bar[data-over]{background:#161613f2}
.margin-rail[data-over="blue"],.menu-toggle[data-over="blue"]{mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){.page-inner .site-bar{transition:none}}

/* Mobile pass (2026-11-11): on touch screens the page's wordmark (a link home) gets a 44px-tall tap area. */
@media(pointer:coarse){.page-wordmark{position:relative}.page-wordmark::after{content:"";position:absolute;inset:-9px 0}}
