/* chrome.css (W2): the nav pill with its seal, chapter rail, phone menu, tilt shell, footer, the in-page jump dissolve and the cross-document wipe.
   Spec 2.1 and 3.5. Layers: rail 40, pill 50, menu 55 (the pill rides above it while open).
   Three states, same markup:
     no JavaScript / fx-fail   a sticky pill in the flow, the five links inline and wrapping, no toggle
     reduced motion (static)   the fixed pill, the menu on phones, no transition, no animation, no rail
     full motion (js)          everything below, springs carried by CSS transitions (--ease-spring, a linear() list set at boot)
   The pill and the phone menu are opaque (a solid backdrop per world, no blur). Nothing animates box-shadow or filter. */

:root {
  --ease-spring: cubic-bezier(.2, 1.15, .3, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1);
  --ease-glide: cubic-bezier(.77, 0, .175, 1);
  --pill-h: 56px;
}

/* ---- the pill --------------------------------------------------------------------------------------------- */
.nav-pill {
  position: sticky; top: 16px; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem;
  width: min(920px, calc(100% - 32px)); margin: 16px auto 0; padding: 8px 8px 8px 18px;
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--bg); color: var(--fg);
}
html.js:not(.static) .nav-pill { transition: color .35s linear, background-color .35s linear, border-color .35s linear; }
/* A solid backdrop per world, so the pill never blends with a heading behind it: bone on bone, ink-2 (a step up from the ink page) on ink. */
html[data-theme=ink] .nav-pill { background: var(--ink-2); }
.nav-pill > * { position: relative; z-index: 1; }

:where(html.js:not(.fx-fail), html.static) .nav-pill {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; margin: 0; height: var(--pill-h);
  flex-wrap: nowrap; border-radius: 999px; padding: 6px 6px 6px 18px; gap: .75rem;
}
html.js:not(.fx-fail):not(.static) .nav-pill { animation: pill-in .9s var(--ease-spring) .15s backwards; }
@keyframes pill-in { from { translate: -50% -170%; opacity: 0; } }

/* spring-carried width, fold and hide: only once the scene has primed (data-fx), so landing mid-page snaps */
html.js:not(.fx-fail):not(.static) .nav-pill[data-fx="ready"] {
  transition: width .7s var(--ease-spring), translate .7s var(--ease-spring), color .35s linear, background-color .35s linear, border-color .35s linear;
}
.nav-pill[data-hidden] { translate: -50% calc(-100% - 28px); }
.nav-pill[data-condensed] { width: min(560px, calc(100% - 32px)); }
@media (hover: hover) {
  .nav-pill[data-condensed]:hover, .nav-pill[data-condensed]:focus-within { width: min(920px, calc(100% - 32px)); }
}
/* the seal's disc turns ink where the pill sits on the ultramarine slab; the open menu is always ink, so the disc is on-ink there */
html[data-theme=signal] .nav-pill { --seal: var(--ink); }
html[data-theme=signal] .nav-pill .seal__lane { fill: var(--bone); }
html.menu-open .nav-pill { z-index: 56; --seal: var(--on-ink); --bg: var(--ink); --fg: var(--on-ink); --mut: var(--on-ink-dim); --line: var(--line-ink); translate: -50% 0; }

/* brand: the IMPULSE seal (disc with two incisions). Load: the cuts draw in. Hover and focus: the signal lanes fill the cuts. */
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: none; white-space: nowrap; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; line-height: 1; color: var(--fg); }
.brand__mark { width: 30px; height: 30px; overflow: visible; flex: none; }
.brand .seal__disc { fill: var(--seal, currentColor); }
.brand .seal__lane { width: 0; }
html.js:not(.static) .brand .seal__lane { transition: width .38s var(--ease-spring, var(--ease-snap)); }
html.js:not(.static) .brand:is(:hover, :focus-visible) .seal__lane[data-cut=short] { transition-delay: .06s; }
/* full reach: the lanes fill their cuts edge to edge (deep 39, short 22 units), the deep one first */
.brand:focus-visible .seal__lane[data-cut=deep] { width: 39px; }
.brand:focus-visible .seal__lane[data-cut=short] { width: 22px; }
@media (hover: hover) {
  .brand:hover .seal__lane[data-cut=deep] { width: 39px; }
  .brand:hover .seal__lane[data-cut=short] { width: 22px; }
}
/* the impulse nudge: the mark shifts 1.5 px right as the lanes land, then springs back; none under reduced motion */
html.js:not(.static) .brand:focus-visible .brand__mark { animation: seal-nudge .5s var(--ease-snap); }
@media (hover: hover) {
  html.js:not(.static) .brand:hover .brand__mark { animation: seal-nudge .5s var(--ease-snap); }
}
@keyframes seal-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(1.5px); } }
html.js:not(.static) .seal__cut[data-cut=deep] { animation: seal-cut .52s var(--ease-snap) .15s backwards; }
html.js:not(.static) .seal__cut[data-cut=short] { animation: seal-cut .42s var(--ease-snap) .28s backwards; }
@keyframes seal-cut { from { width: 0; } }

/* readout: the chapter under the middle of the viewport; characters roll in a slot-machine reel (scene) */
.nav-pill__readout {
  display: none; flex: 0 0 17ch; width: 17ch; height: 1.5em; margin: 0; overflow: hidden; place-items: center;
  font-family: var(--font-mono); font-size: var(--t-data, .72rem); font-weight: 500; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; color: var(--mut); white-space: pre;
}
.readout__word { grid-area: 1 / 1; display: inline-flex; justify-content: center; }
.readout__c { display: inline-block; height: 1.5em; overflow: hidden; }
.readout__c > span { display: block; }
@media (min-width: 901px) {
  html.js:not(.fx-fail) .nav-pill__readout { display: grid; }
  /* condensed: the links fold away and the readout takes their room, its text centred in it */
  .nav-pill[data-condensed] .nav-pill__readout { flex-grow: 1; }
  .nav-pill[data-condensed]:hover .nav-pill__readout, .nav-pill[data-condensed]:focus-within .nav-pill__readout { flex-grow: 0; }
  html.js:not(.fx-fail):not(.static) .nav-pill__readout { transition: flex-grow .7s var(--ease-spring); }
}

/* links: one highlight slides under the current (or hovered) link */
.nav { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .1rem .25rem; }
@media (min-width: 901px) {
  html.js:not(.fx-fail) .nav-pill > .nav, html.static .nav-pill > .nav { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
}
.nav a { position: relative; z-index: 1; padding: .55em .9em; border-radius: 999px; font-size: .88rem; font-weight: 560; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--fg); opacity: .74; }
.nav a[aria-current="location"] { opacity: 1; }
/* Standard states: colour and underline only, never transform. The list clips its overflow, so the ring sits inside the link. */
.nav a:focus-visible { opacity: 1; outline: 2px solid var(--signal); outline-offset: -2px; text-decoration: underline 2px var(--signal); text-underline-offset: .4em; }
@media (hover: hover) { .nav a:hover { opacity: 1; text-decoration: underline 2px var(--signal); text-underline-offset: .4em; } }
.nav a[aria-current="location"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acc); }
.nav__ink { position: absolute; z-index: 0; left: 0; top: 50%; height: 34px; margin-top: -17px; width: var(--ink-w, 0); transform: translateX(var(--ink-x, 0)); border-radius: 999px; background: var(--line); opacity: var(--ink-o, 0); pointer-events: none; }
html.js:not(.static) .nav__ink { transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), opacity .25s linear; }
html.js:not(.fx-fail):not(.static) .nav a { transition: opacity .2s linear; }
html.js:not(.fx-fail):not(.static) .nav-pill > .nav { transition: flex-grow .7s var(--ease-spring), opacity .3s linear; }
@media (min-width: 901px) {
  .nav-pill[data-condensed] > .nav { flex-grow: 0; opacity: 0; pointer-events: none; }
  .nav-pill[data-condensed]:hover > .nav, .nav-pill[data-condensed]:focus-within > .nav { flex-grow: 1; opacity: 1; pointer-events: auto; }
}

.nav-cta {
  position: relative; flex: none; padding: .75em 1.2em; border-radius: 999px; white-space: nowrap;
  background: var(--signal); color: var(--on-signal); font-size: .88rem; font-weight: 600; line-height: 1; text-decoration: none;
}
@media (hover: hover) { .nav-cta:hover { background: var(--signal-d); color: var(--on-signal); } }
.nav-cta:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--signal-d); }
html.js:not(.static) .nav-cta { transition: scale .35s var(--ease-spring), opacity .25s linear, visibility 0s; }
.nav-pill[data-at="start"] .nav-cta { opacity: 0; visibility: hidden; scale: .8; pointer-events: none; }
html.js:not(.static) .nav-pill[data-at="start"] .nav-cta { transition: scale .35s var(--ease-spring), opacity .25s linear, visibility 0s linear .25s; }

/* the round Menu button (phones; navigation, not a motion control). The word stays for screen readers; two bars draw the icon. */
.nav-toggle { display: none; position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); font-size: 0; line-height: 0; overflow: hidden; }
.nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 1px; background: currentColor; }
.nav-toggle::before { translate: 0 -4px; }
.nav-toggle::after { translate: 0 4px; }
html.js:not(.static) .nav-toggle::before, html.js:not(.static) .nav-toggle::after { transition: translate .45s var(--ease-spring), rotate .45s var(--ease-spring); }
.nav-toggle[aria-expanded="true"]::before { translate: 0 0; rotate: 45deg; }
.nav-toggle[aria-expanded="true"]::after { translate: 0 0; rotate: -45deg; }

/* phones: pill = wordmark + Start here + Menu; the links live in the overlay */
@media (max-width: 900px) {
  :where(html.js:not(.fx-fail), html.static) .nav-pill { width: calc(100% - 32px); padding-left: 14px; }
  :is(html.js, html.static):not(.fx-fail) .nav-pill[data-nav] .nav-toggle { display: inline-block; }
  :is(html.js, html.static):not(.fx-fail) .nav-pill[data-nav] > .nav { display: none; }
  html.js:not(.fx-fail) .nav-pill .nav-cta, html.static .nav-pill .nav-cta { margin-left: auto; }
  .brand { gap: .45rem; min-height: 44px; font-size: .98rem; }
  .nav-cta { display: inline-flex; align-items: center; min-height: 44px; }
}
/* "Start your proof" plus the seal is wider than the old CTA: at 320 the runtime row tightens so Menu stays inside the pill. */
@media (max-width: 359px) {
  .nav-cta { padding: .7em .75em; font-size: .78rem; }
  .brand__mark { width: 26px; height: 26px; }
  :where(html.js:not(.fx-fail), html.static) .nav-pill { gap: .5rem; padding-left: 10px; }
  .brand { gap: .35rem; font-size: .9rem; }
}

/* phones without the runtime (no JavaScript, or html.fx-fail): ONE compact row, wordmark, Menu and Start here. The links are
   still in the page: Menu is a plain anchor to the list (#site-nav), which :target opens as a card under the pill. Without this
   the five links wrapped to three rows and the pill covered a third of the first screen. Menu is navigation, not a motion control. */
.nav-jump { display: none; }
@media (max-width: 900px) {
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) { flex-wrap: nowrap; gap: .5rem; padding: 6px 6px 6px 14px; }
  /* the head's <noscript> style forces .nav to display:flex !important, so the list leaves the row by position and visibility instead */
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) > .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 2; visibility: hidden; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: .5rem;
    border: 1px solid var(--line); border-radius: 24px; background: var(--bg);
  }
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) > .nav:target { visibility: visible; }
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) > .nav:target a { padding: .95em 1em; font-size: 1rem; opacity: 1; }
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) .nav-jump {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; border: 1px solid var(--line); border-radius: 999px;
    color: var(--fg); font-size: .88rem; font-weight: 600; line-height: 1; text-decoration: none;
  }
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) .nav-cta { margin-left: auto; }
}
/* "Start your proof" is wider than the old CTA: at 320 the no-runtime row (wordmark, Menu, CTA) tightens to stay inside the pill. */
@media (max-width: 359px) {
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) { gap: .3rem; padding-left: 10px; }
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) .nav-jump { padding: 0 .7em; font-size: .8rem; }
  :is(html:not(.js) .nav-pill:not([data-nav]), html.fx-fail .nav-pill) .nav-cta { padding: .7em .75em; font-size: .78rem; }
  :is(html:not(.js), html.fx-fail) .brand { gap: .35rem; font-size: .9rem; }
}

/* ---- the phone menu overlay ------------------------------------------------------------------------------- */
.menu {
  --bg: var(--ink); --fg: var(--on-ink); --mut: var(--on-ink-dim); --line: var(--line-ink); --acc: var(--signal);
  position: fixed; inset: 0; z-index: 55; display: none; flex-direction: column; justify-content: flex-end; overflow: hidden;
  height: 100dvh; padding: 96px 20px 32px; background: var(--ink); color: var(--on-ink);
  clip-path: inset(0 0 100% 0 round 24px); visibility: hidden;
}
@media (max-width: 900px) { .menu:not([hidden]) { display: flex; } }
.menu.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; }
html.js:not(.static) .menu { transition: clip-path .6s var(--ease-glide), visibility 0s linear .6s; }
html.js:not(.static) .menu.is-open { transition: clip-path .6s var(--ease-glide), visibility 0s; }
.menu .nav { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: .1rem; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; counter-reset: ch; }
.menu .nav a {
  display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .4rem; flex: none; align-items: center;
  min-height: 44px; padding: .18em 1rem .18em 0; border-radius: 0; opacity: 1; counter-increment: ch; white-space: normal;
  font-family: var(--font-display); font-size: clamp(1.65rem, 8.8vw, 3.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; color: var(--on-ink);
}
.menu .nav a::before { content: "0" counter(ch); align-self: start; margin-top: .65em; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--on-ink-dim); }
.menu .nav a[aria-current="location"]::after { left: auto; right: 0; bottom: 50%; width: 10px; height: 10px; margin: 0; background: var(--signal); }
.menu .nav__ink { display: none; }
.menu .nav a { translate: 0 40px; opacity: 0; }
.menu.is-open .nav a { translate: 0 0; opacity: 1; }
html.js:not(.static) .menu .nav a { transition: translate .6s var(--ease-glide), opacity .35s linear; }
html.js:not(.static) .menu.is-open .nav a { transition-delay: calc(.18s + var(--i, 0) * .05s); }
.menu .nav a:nth-child(1) { --i: 0; } .menu .nav a:nth-child(2) { --i: 1; } .menu .nav a:nth-child(3) { --i: 2; } .menu .nav a:nth-child(4) { --i: 3; } .menu .nav a:nth-child(5) { --i: 4; }
/* the mass and its streak: thrown into the overlay from the left as it opens */
.menu::before, .menu::after { content: ""; position: absolute; pointer-events: none; }
.menu::before { right: -9vw; top: 92px; width: 30vw; aspect-ratio: 1; border-radius: 50%; background: var(--signal); translate: -130vw 0; }
.menu::after { right: 18vw; top: calc(92px + 15vw - 1px); width: 90vw; height: 2px; background: linear-gradient(90deg, transparent, var(--signal)); transform-origin: 100% 50%; scale: 0 1; }
.menu.is-open::before { translate: 0 0; }
.menu.is-open::after { scale: 1 1; }
html.js:not(.static) .menu::before { transition: translate .9s var(--ease-spring) .1s; }
html.js:not(.static) .menu::after { transition: scale .9s var(--ease-glide) .1s; }

/* ---- chapter rail: a pure indicator (no click, no focus, no listeners; the scene moves it) ------------------- */
.rail { display: none; position: fixed; right: 14px; top: 50%; z-index: 40; width: 20px; height: calc(var(--ticks, 0) * 14px); translate: 0 -50%; pointer-events: none; color: var(--fg); }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) { html.js:not(.fx-fail):not(.static) .rail { display: block; } }
.rail__tick { position: absolute; right: 0; top: calc((var(--i, 0) + .5) * 14px); width: 10px; height: 1px; background: currentColor; opacity: .62; transform-origin: 100% 50%; }
.rail__bead { position: absolute; right: 28px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.rail[data-on="off"] .rail__bead { opacity: 0; }
html.js:not(.static) .rail__bead { transition: opacity .3s linear; }

/* ---- tilt ------------------------------------------------------------------------------------------------- */
.is-tilt { transform-style: preserve-3d; will-change: transform; }
.tilt__glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s linear; background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .3), transparent 62%); }

/* ---- footer (every page: home, intake and assistant all include 22-footer) --------------------------------------- */
/* The fixed swarm canvas (z-index 3) paints over page content, and on the home page the dust wordmark of #start is held at the
   bottom of the viewport. The words live on an opaque plate stacked above the canvas, so the legal line is always readable, and the
   dust gets its own empty bay under the plate. The solid wordmark shows only where there is no dust (no JS, reduced motion, no GL).
   Subpages get the compact variant: no dust bay, a smaller wordmark. */
.site-footer { overflow-x: clip; }
/* The ground line: a ruled bone line with a row of dots resting on it. On home the scene writes --settle (0 to 1, from how close the
   visitor is to the end of the page) and the dots drop onto the line one after another; everywhere else the dots are already at rest. */
.site-footer__lane { position: relative; display: block; height: 22px; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.site-footer__lane::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--on-ink-dim); }
.site-footer__lane b {
  --d: calc(var(--i) * .05);
  --t: clamp(0, calc(var(--settle, 1) * 1.7 - var(--d)), 1);
  position: absolute; bottom: 2px; left: calc(var(--i) / 11 * (100% - 8px)); width: 8px; height: 8px; border-radius: 50%; background: var(--on-ink);
  translate: 0 calc((1 - var(--t)) * -72px); opacity: clamp(0, calc(var(--t) * 4), 1);
}
.site-footer__lane b:last-child { background: var(--signal); }
.site-footer__plate {
  position: relative; z-index: 4; display: grid; gap: .9rem 2rem; grid-template-columns: minmax(0, 1fr); align-items: end;
  margin-inline: calc(var(--gutter) * -1); padding: 1.4rem var(--gutter); background: var(--ink); color: var(--on-ink);
}
.site-footer__brand { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -.045em; line-height: .9; }
.site-footer__line { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); letter-spacing: -.02em; max-width: 22ch; }
.site-footer__date { font-family: var(--font-mono); font-size: max(var(--t-data), 13px); letter-spacing: .12em; text-transform: uppercase; color: rgb(241 236 224 / .76); }
.site-footer__top {
  display: inline-flex; align-items: center; gap: .8rem; width: fit-content; justify-self: start;
  font-family: var(--font-mono); font-size: max(var(--t-data), 13px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.site-footer__ring {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid currentColor; border-radius: 50%;
  transition: background-color .2s, border-color .2s, color .2s;
}
.site-footer__ring::before, .site-footer__ring::after { content: ""; position: absolute; background: currentColor; }
.site-footer__ring::before { width: 1px; height: 20px; }
.site-footer__ring::after { width: 11px; height: 11px; background: none; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: translateY(-7px) rotate(45deg); }
.site-footer__top:hover .site-footer__ring, .site-footer__top:focus-visible .site-footer__ring { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.site-footer__bay { display: none; }
/* The brand seal, bone on the plate, its two incisions lit signal (the impulses). A static node: the dust wordmark below the plate is the only thing the swarm samples. */
.site-footer__seal { display: block; width: 88px; height: 88px; margin-bottom: .4rem; color: var(--bone); }
.site-footer__seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.site-footer__seal .seal__disc { fill: var(--bone); }
.site-footer__seal .seal__lane[data-cut=deep] { width: 39px; }
.site-footer__seal .seal__lane[data-cut=short] { width: 22px; }
@media (max-width: 900px) { .site-footer__seal { width: 56px; height: 56px; } }

@media (min-width: 901px) {
  .site-footer__plate { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; grid-template-areas: "seal seal seal" "brand line line" "date date top"; }
  .site-footer__seal { grid-area: seal; }
  .site-footer__brand { grid-area: brand; }
  .site-footer__line { grid-area: line; padding-bottom: .5rem; }
  .site-footer__date { grid-area: date; }
  .site-footer__top { grid-area: top; align-self: end; }
}

/* Intake and assistant: compact. */
#site-header:not([data-page="home"]) ~ .site-footer { padding-bottom: clamp(24px, 4vw, 48px); }
#site-header:not([data-page="home"]) ~ .site-footer .site-footer__brand { font-size: clamp(2.2rem, 5vw, 3.6rem); }
#site-header:not([data-page="home"]) ~ .site-footer .site-footer__lane { margin-bottom: clamp(1rem, 2.4vw, 1.8rem); }

/* Home: #start's slab ends in a straight cut and the footer begins there, under a bone rule, so the wordmark's crop at the slab's
   lower edge reads as a ground line instead of a slice (no tilted overlap on the page's last seam). */
#site-header[data-page="home"] ~ .site-footer.sec--tilt { margin-top: 0; padding-top: clamp(48px, 6vw, 96px); }
#site-header[data-page="home"] ~ .site-footer.sec--tilt::before { clip-path: none; }
#site-header[data-page="home"] ~ .site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 3px; background: var(--bone); pointer-events: none; }

/* The home page's live swarm: the dust wordmark IS the footer's mark. #start tags the footer `.has-dust` while it is registered, which is only
   when the page is animated; no GL means no dust, so the solid wordmark stays. The dust's slots sit in the bottom 28% of the viewport
   (stages/wordmark.mjs), so the bay reserves that height (the width-fitted wordmark, capped at 34% of the viewport height) under the plate
   and the solid wordmark steps aside (still read by assistive tech). */
/* `has-dust` lands when #start registers, after first paint; the bay is also reserved from the head's `html.js` on the home page (the nav carries
   data-page) so that registration moves nothing. */
html.js:not(.fx-fail):not(.gl-fail) #site-header[data-page="home"] ~ .site-footer .site-footer__bay,
html:not(.gl-fail) .site-footer.has-dust .site-footer__bay { display: block; height: calc(min((100vw - 2 * clamp(16px, 4vw, 64px)) * .167, 27.9vh) + 28px); }
html.js:not(.fx-fail):not(.gl-fail) #site-header[data-page="home"] ~ .site-footer .site-footer__brand,
html:not(.gl-fail) .site-footer.has-dust .site-footer__brand {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 901px) {
  html.js:not(.fx-fail):not(.gl-fail) #site-header[data-page="home"] ~ .site-footer .site-footer__plate,
  html:not(.gl-fail) .site-footer.has-dust .site-footer__plate { grid-template-areas: "seal seal seal" "line line line" "nav nav top" "date date top"; }
}

/* ---- cross-document wipe, with a vermilion scan edge leading it (spec 3.5) ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (view-transition-name: x) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: none; }
    ::view-transition-new(root) { animation: vt-wipe .55s var(--ease-snap) both; }
    .vt-scan { position: fixed; top: 0; bottom: 0; z-index: 70; width: 3px; background: var(--signal); pointer-events: none; view-transition-name: scan; }
    .vt-scan--left { left: 0; }
    .vt-scan--right { left: calc(100% - 3px); }
    ::view-transition-group(scan) { animation-duration: .55s; animation-timing-function: var(--ease-snap); }
    ::view-transition-old(scan), ::view-transition-new(scan) { animation: none; mix-blend-mode: normal; }
    @supports selector(:active-view-transition-type(back)) {
      :root:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-wipe-back; }
    }
  }
}
:root[data-jump]::after { content: ""; position: fixed; inset: 0; z-index: 45; background: var(--bg); pointer-events: none; animation: jump-in .18s linear both; }
@keyframes jump-in { from { opacity: .25; } to { opacity: 0; } }
@keyframes vt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes vt-wipe-back { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media print { .nav-pill, .rail, .menu, .vt-scan { display: none !important; } }

/* Subpages have no chapters, so the readout would only repeat the wordmark beside it ("inertia INERTIA"). */
html.js .nav-pill:not([data-page="home"]) .nav-pill__readout { display: none; }
