/* The connected experience: host chrome. Tokens: ../_shell/tokens.css (the frames' own).
   The chrome sits exactly where every frame's own top bar and floor sit (--top, --floor), in the gold-line
   language of _shell/shell.css (.topbar, .floor, .hud, .rail), so each frame's composition holds.
   Sections: base · stage · top bar · floor (hud, steps, rail, preview, home handoff) · readiness indicator · readiness
   mark · frost · phone gate · intro + veil · mobile (vertical timeline, chapters, pill) · dialogs (sheet, index) ·
   "in build" · reduced motion · forced colors. */

:root {
  --xp-ink-line: rgba(238, 235, 227, .14);
  --xp-plate: rgba(10, 11, 10, .94);
  --xp-glow: 0 0 10px rgba(216, 173, 85, .45);
  --xp-t: 240ms;
  --g: 0; --exit: 0; --start: 0; --push: 0; --handoff: 1; --ivis: 0;
  --xp-scrim: 6, 7, 6;   /* the active scene's ground (chrome.js): the top bar's glass tint and halo, the phone bar */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--void); color: var(--ivory); font-family: var(--f-sans); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { margin: 0; overflow: hidden; line-height: 1.5; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.xp-skip { position: fixed; left: var(--margin); top: .5rem; z-index: 80; padding: .5rem .8rem; background: var(--black-1); border: 1px solid var(--edge); font-size: var(--ui); text-decoration: none; transform: translateY(-200%); }
.xp-skip:focus { transform: none; }
.inst, .xp-floor .meta, .xp-steps, .xp-intro-kicker, .xp-intro-hint, .b-kicker, .b-status, .pv-year {
  font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; }

/* ---------- stage: one slot per mounted scene ---------- */
.xp-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--void); outline: none; }
.xp-slot { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; z-index: 0; }
.xp-slot.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.xp-slot.is-incoming { visibility: visible; z-index: 2; pointer-events: none; will-change: opacity, transform; }
.xp-slot.is-incoming:not(.is-active) { opacity: 0; }
.xp-slot.fade-quick { transition: opacity 120ms linear; }
.xp-slot.fade-boot { transition: opacity 260ms var(--ease-out); }
.xp-slot.is-incoming.is-in { opacity: 1; }
.xp-slot iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--void); color-scheme: dark; }

/* ---------- top bar (same height and margins as every frame's .topbar) ---------- */
.xp-top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--margin); pointer-events: none; }
.xp-top > * { pointer-events: auto; }
/* the band (Felix, 19 Nov 2026: "Should be see through or glass"; replaces the solid scrim of critique must-fix 3).
   At the top of a view there is none: the bar's items stand on their own (a halo of the view's ground under the name
   and the icons; the journeys' capsule wears its own glass). Once the active view has scrolled (html.xp-scrolled,
   chrome.js), a band of the in-house glass (.xp-glass) fades in behind them: the view's own ground as its tint, a blur
   over a dimmed backdrop, an ivory hairline and a soft specular lip at its foot. It ends at --top: what passes under
   it reads blurred, never cut by a slab. Only opacity moves; without backdrop-filter or with reduced transparency it
   is the recipe's near-solid tint. (.xp-top > raises it over .xp-glass, declared later.) The `scrim` check. */
.xp-top > .xp-top-glass { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 360ms var(--ease-out);
  --glass-radius: 0; --glass-tint: var(--xp-scrim); --glass-alpha: .62; --glass-solid: .95; --glass-blur: 18px; --glass-sat: 1.35; --glass-bright: .68;
  --glass-spec: .5; --glass-hair: 238, 235, 227; --glass-hair-a: .1;
  --glass-sheen: linear-gradient(to bottom, rgba(246, 242, 232, calc(.06 * var(--glass-spec))), rgba(246, 242, 232, 0) 70%);
  box-shadow: inset 0 -1px 0 rgba(var(--glass-hair), var(--glass-hair-a)), inset 0 -2px 1px -1px rgba(255, 250, 238, calc(.36 * var(--glass-spec))), 0 10px 22px -20px rgba(0, 0, 0, .6); }
html.xp-scrolled .xp-top > .xp-top-glass { opacity: 1; }
/* the phone gate is a full-screen frost of its own: no second band over it */
html.xp-gated .xp-top > .xp-top-glass { opacity: 0; }
.xp-top .id { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-size: var(--body); color: var(--ivory); min-height: 44px; text-shadow: 0 0 2px rgba(var(--xp-scrim), .55), 0 1px 14px rgba(var(--xp-scrim), .9); }
.xp-top .id-cat { width: 1.6rem; height: 1.8rem; color: var(--gold); fill: currentColor; }
/* Felix's socials beside his name, icons only, and an email button (Felix, 19 Nov). Quiet at rest (ink, not gold);
   ivory on hover / focus. Phones: the same row inside the menu (below). */
.xp-left { display: flex; align-items: center; gap: clamp(.9rem, .3rem + 1vw, 1.6rem); }
.xp-elsewhere { display: flex; align-items: center; gap: .05rem; padding-left: clamp(.6rem, .2rem + .6vw, 1.1rem); box-shadow: inset 1px 0 0 rgba(238, 235, 227, .14); }
.xp-soc { display: inline-grid; place-items: center; width: 34px; height: 44px; border-radius: 10px; color: rgba(238, 235, 227, .58); transition: color var(--t-ui) var(--ease-out); }
.xp-soc svg { width: 15px; height: 15px; fill: currentColor; }
.xp-soc:hover, .xp-soc:focus-visible { color: var(--ivory); }
.xp-mail { display: inline-flex; align-items: center; gap: .45rem; height: 32px; margin-left: .45rem; padding: 0 .85rem 0 .75rem; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(238, 235, 227, .18);
  font-size: var(--ui); font-weight: 500; letter-spacing: .015em; text-decoration: none; color: rgba(238, 235, 227, .82); cursor: pointer; transition: color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out); }
.xp-mail svg { width: 14px; height: 14px; fill: currentColor; }
.xp-mail:hover, .xp-mail:focus-visible { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .6); }
.xp-mail[aria-disabled="true"] { cursor: default; }
.xp-nav-elsewhere { display: none; }
@media (max-width: 1100px) and (min-width: 641px) { .xp-mail span { display: none; } .xp-mail { width: 34px; padding: 0; justify-content: center; margin-left: .2rem; } }
@media (forced-colors: active) { .xp-soc, .xp-mail { color: LinkText; } }

/* ---------- the journeys: one capsule in the in-house glass (M-01; Felix, 18 Nov: "use our in-house glass") ----------
   Two layers wear the readiness plate's recipe (.xp-glass) at its defaults (tint .52, blur 16, the gold hairline): that is
   the capsule Felix approved ("Tracks on the right looks good", 19 Nov). .xp-nav-glass is always on; .xp-nav-frost, a second
   identical layer, fades in on hover / focus / an open menu and deepens it. To give a layer its own look, override the
   --glass-* properties with a selector that beats .xp-glass (declared later): e.g. `.xp-navwrap > .xp-nav-glass`; a bare
   class loses (it did until 19 Nov: the old "nearly clear" values never rendered). Only opacity moves: backdrop-filter is
   never animated. Neither layer is an ancestor of the other (a backdrop-filter ancestor would hide the page from it).
   No WebGL context, no page sampling; without backdrop-filter or with reduced transparency, the recipe's near-solid
   tint. */
.xp-navwrap { position: relative; display: flex; align-items: center; min-height: 44px; border-radius: 22px; padding: 0 .3rem; }
.xp-nav-glass, .xp-nav-frost { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.xp-nav-frost { opacity: 0; transition: opacity 320ms var(--ease-out); }
.xp-navwrap:hover .xp-nav-frost, .xp-navwrap:focus-within .xp-nav-frost, .xp-navwrap[data-open] .xp-nav-frost { opacity: 1; }
.xp-top .nav { position: relative; z-index: 1; display: flex; gap: .1rem; font-size: clamp(.8125rem, .7rem + .2vw, .9375rem); }
.xp-top .nav > a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 19px; text-decoration: none;
  font-weight: 500; letter-spacing: .015em; color: rgba(238, 235, 227, .8); transition: color var(--t-ui) var(--ease-out); }
.xp-navwrap:is(:hover, :focus-within) .nav > a { color: rgba(238, 235, 227, .9); }
.xp-top .nav > a:hover, .xp-top .nav > a:focus-visible { color: var(--ivory); }
.xp-top .nav > a:focus-visible { outline-offset: -4px; border-radius: 19px; }
/* the active journey: its name in ivory on the gold line (aria-current) */
.xp-top .nav > a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 10px; height: 1px; background: var(--gold); box-shadow: var(--xp-glow); transform: scaleX(0); transform-origin: left; transition: transform var(--t-draw) var(--ease-out); }
.xp-top .nav > [aria-current="true"] { color: var(--ivory); }
.xp-top .nav > [aria-current="true"]::after { transform: scaleX(1); }
.xp-nav-sub, .xp-menu, .xp-top .nav > .xp-nav-home { display: none; }
/* the nav wears the recipe only as the phones' open menu; wider, the capsule's two layers are its glass */
@media (min-width: 641px) { .xp-top .nav.xp-glass { border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- desktop floor: where you are · timeline · prev/next (shell .floor, .hud, .rail) ---------- */
.xp-floor { position: fixed; inset: auto 0 0 0; z-index: 40; height: var(--floor); padding: 0 var(--margin); pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(6, 7, 6, .85) 45%, var(--void)); }
.xp-floor > * { pointer-events: auto; }
.xp-floor .hud { position: absolute; left: var(--margin); bottom: 3.9rem; display: grid; grid-template-areas: "meta" "year"; gap: .15rem; max-width: min(46vw, var(--co-hud, 46vw)); }   /* --co-hud: company.js, where the company links take the meta row */
.xp-floor .meta { grid-area: meta; color: var(--ink-3); display: flex; gap: 1.2rem; min-width: 0; white-space: nowrap; overflow: hidden; transition: opacity var(--t-ui) var(--ease-out); }
.xp-floor .meta span:empty { display: none; }
.xp-floor .year { grid-area: year; }
/* the one line that says what is next where no intro is drawn by scroll (reduced motion, an arrival in the exit
   region); it takes the meta line's place, so nothing moves */
.xp-nextline { grid-area: meta; align-self: end; margin: 0; min-width: 0; font-size: var(--ui); line-height: 1.3; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity var(--t-ui) var(--ease-out); }
.xp-nextline .k { font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--gold); margin-right: .55rem; }
.xp-nextline .k::after { content: " ↓"; }
html.xp-says-next .xp-floor .meta { opacity: 0; }
html.xp-says-next .xp-nextline { opacity: 1; }
.xp-floor .year { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-floor .year b { font-weight: 400; color: var(--gold); margin-right: .6rem; }
.xp-floor .year b:empty { display: none; }

.xp-steps { position: absolute; right: var(--margin); bottom: 3.75rem; display: flex; gap: 1.6rem; align-items: center; color: var(--ink-3); }
.xp-steps button { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: 0 .1rem; letter-spacing: inherit; text-transform: inherit; transition: color var(--t-ui) var(--ease-out); }
.xp-steps button:not(:disabled):hover { color: var(--ivory); }
.xp-steps .t { color: var(--ink-2); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-steps .sl { color: var(--ink-4); }
.xp-prev .t { max-width: 0; opacity: 0; transition: max-width var(--t-draw) var(--ease-out), opacity var(--t-ui); }
.xp-entry .xp-prev { color: var(--ivory); }
.xp-entry .xp-prev .t { max-width: 14rem; opacity: 1; }
.xp-next-meter, .xp-prev-meter { position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); box-shadow: var(--xp-glow); transform-origin: left; transform: scaleX(0); }
.xp-prev-meter { transform-origin: right; }
.xp-exit .xp-next { color: var(--ivory); }
.xp-exit .xp-next .t { color: var(--ivory); }
.xp-exit .xp-next-meter { transform: scaleX(calc(.18 + .82 * var(--push))); }
.xp-entry.xp-pull .xp-prev-meter { transform: scaleX(var(--push)); }

/* ---------- the company links (company.js, CONTRACT §19.7): a Career frame's way out to its company, at its end ----------
   Felix, 19 Nov: "design those links well, lux and minimal. No weird emojis please". The company: WSJ's "Open the unit"
   pill (03-wsj .sheet-link), a fully rounded ivory hairline warming to gold on hover and focus, sans 500, no underline,
   the thin-line chevron. The work's own pages (Terminal's video and game): the same family, quieter, smaller, ivory
   muted, a gold hairline under the words on hover and focus. The desktop stage: on the floor's title row after the title,
   28 px (each target 44 px: ::after); phones and tablets: centred just above the true end's Continue button, 44 px each. */
.xp-co { position: fixed; z-index: 41; left: 0; top: 0; margin: 0; display: flex; align-items: center; gap: 0 1.5rem;
  width: max-content; max-width: calc(100vw - 2 * var(--margin)); pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out), visibility 0s linear 420ms; }
.xp-co[data-on="1"] { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out), top 560ms var(--ease-out), visibility 0s; }
.xp-co .co-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 1.5rem; }
.co-a { position: relative; display: inline-flex; align-items: center; gap: .5em; min-height: 28px; font: 500 var(--ui)/1 var(--f-sans); letter-spacing: .01em;
  color: var(--ivory); text-decoration: none; white-space: nowrap; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.co-a::after { content: ""; position: absolute; inset: -8px -4px; }   /* the target: 44 px */
.co-chev { flex: none; width: .5em; height: .75em; overflow: visible; transition: transform var(--t-ui) var(--ease-out); }
.co-lead { padding: 0 .85rem 0 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(238, 235, 227, .3);
  transition: background var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), transform 160ms var(--ease-out); }
.co-lead:is(:hover, :focus-visible) { background: rgba(216, 173, 85, .08); box-shadow: inset 0 0 0 1px rgba(216, 173, 85, .85); }
.co-lead:focus-visible { border-radius: 999px; }
.co-more { padding: 0 .1rem; font-weight: 400; font-size: .75rem; color: var(--ink-2); transition: color var(--t-ui) var(--ease-out), transform 160ms var(--ease-out); }
.co-more .co-t { text-decoration: underline 1px transparent; text-underline-offset: .4em; transition: text-decoration-color var(--t-ui) var(--ease-out); }
.co-more:is(:hover, :focus-visible) { color: var(--ivory); }
.co-more:is(:hover, :focus-visible) .co-t { text-decoration-color: rgba(216, 173, 85, .85); }
.co-a:is(:hover, :focus-visible) .co-chev { transform: translateX(2px); }
.co-a:active { transform: translateY(1px) scale(.99); }
/* the desktop stage: one line after the title (company.js sets left / top); too short for one line, the quieter links
   take the meta row above, after its words. It fades with the end hold's darkening (--co-k), and gives way to the
   timeline's hover preview */
.xp-co[data-place="floor"] { flex-direction: row; }
.xp-co[data-place="floor"][data-on="1"] { opacity: var(--co-k, 1); transition: opacity 200ms linear, visibility 0s; }
.xp-co[data-place="floor"][data-wrap] { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
.xp-co[data-place="floor"][data-wrap] .co-row { justify-content: flex-start; }
html:has(.xp-preview.on) .xp-co[data-place="floor"] { opacity: 0; }
/* phones and tablets: one end group with the Continue button, centred, its foot 16 px above the button's top (--co-c: the
   button's centre, set where a lane or the frame moved it; --co-up: half its height + 16) */
.xp-co[data-place="end"] { left: 50%; top: calc(var(--co-c, 60svh) - var(--co-up, 50px)); flex-direction: column; gap: 0; transform: translate(-50%, -100%) translateY(10px); }
.xp-co[data-place="end"][data-on="1"] { transform: translate(-50%, -100%); }
.xp-co[data-place="end"] .co-a { min-height: 44px; }
.xp-co[data-place="end"] .co-a::after { content: none; }
.xp-co[data-place="end"] .co-lead { padding: 0 1rem 0 1.2rem; font-size: .9375rem; background: rgba(6, 7, 6, .3); }
.xp-co[data-place="end"] .co-lead:is(:hover, :focus-visible) { background: rgba(216, 173, 85, .1); }
.xp-co[data-place="end"] .co-more { font-size: .875rem; padding: 0 .2rem; }
/* the measuring twin (Co.room): laid out as the phones' group, never seen */
.xp-co.xp-co-m { left: 0; top: 0; transform: none; visibility: hidden; opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .xp-co, .xp-co[data-on="1"], .xp-co[data-place="floor"][data-on="1"] { transition: none; }
  .xp-co[data-place="end"], .xp-co[data-place="end"][data-on="1"] { transform: translate(-50%, -100%); }
  .co-a:is(:hover, :focus-visible) .co-chev, .co-a:active { transform: none; }
}
@media (forced-colors: active) { .co-lead { border: 1px solid LinkText; } .co-more .co-t { text-decoration-color: LinkText; } }

.xp-rail { position: absolute; left: var(--margin); right: var(--margin); bottom: 2.1rem; height: 1.4rem; }
.xp-hit { position: absolute; left: 32px; right: 32px; top: 50%; height: 32px; transform: translateY(-50%); cursor: pointer; touch-action: none; }
/* the journey's two caps: its beginning (the intro) and what comes next (the outro), 24 px targets at the rail's ends */
.xp-cap { position: absolute; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 4px; }
.xp-cap-in { left: 0; } .xp-cap-out { right: 0; }
.xp-cap i { width: 1px; height: 13px; background: var(--ink-3); transition: background var(--t-ui), height var(--t-ui) var(--ease-out), box-shadow var(--t-ui); }
.xp-cap::before { content: ""; position: absolute; top: 50%; height: 1px; width: 12px; background: var(--edge-soft); }
.xp-cap-in::before { right: -4px; } .xp-cap-out::before { left: -4px; }
.xp-cap.past i { background: var(--gold); }
.xp-cap.here i { height: 17px; background: var(--gold); box-shadow: var(--xp-glow); }
.xp-cap:hover i { background: var(--ivory); }
.xp-hit .ticks { position: absolute; inset: 0; pointer-events: none; }
.xp-hit .tick { position: absolute; top: 50%; width: 1px; height: 7px; transform: translate(-50%, -50%); background: var(--ink-4); }
.xp-hit .track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--edge-soft); }
.xp-hit .hover { position: absolute; top: 50%; height: 1px; background: rgba(238, 235, 227, .32); opacity: 0; transition: opacity var(--t-micro); }
.xp-floor.hovering .hover { opacity: 1; }
.xp-hit .done { position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: var(--gold); box-shadow: var(--xp-glow); transform-origin: left; transform: scaleX(var(--g)); }
.xp-hit .nodes { position: absolute; inset: 0; pointer-events: none; }
.xp-hit .node { position: absolute; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); border: 1px solid var(--ink-3); background: var(--void); border-radius: 50%; transition: background var(--t-ui), border-color var(--t-ui); }
.xp-hit .node.past, .xp-hit .node.here { background: var(--gold); border-color: var(--gold); }
.xp-hit .node.here { box-shadow: 0 0 0 3px rgba(216, 173, 85, .18); }
.xp-hit .node.sq { border-radius: 1px; }
.xp-hit .node.di { border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.xp-hit .node.end { width: 5px; height: 5px; border-color: var(--ink-5); }
.xp-head { position: absolute; top: 50%; left: calc(var(--g) * 100%); width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; cursor: grab; }
.xp-head::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(216, 173, 85, .7); transition: width var(--t-micro) var(--ease-out), height var(--t-micro) var(--ease-out); }
.xp-hit:hover .xp-head::before, .xp-scrubbing .xp-head::before { width: 13px; height: 13px; }
.xp-scrubbing, .xp-scrubbing * { cursor: grabbing !important; user-select: none; }
.xp-head:focus-visible { outline-offset: 0; }

/* preview on hover / focus: years, title, the intro line (no pictogram); never while scrubbing, when the HUD names
   the scene under the head and nothing may cover it */
.xp-preview { position: absolute; bottom: calc(100% + 1.1rem); left: var(--px, 50%); width: 18.5rem; padding: .95rem 1.05rem 1rem; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--xp-plate); border: 1px solid var(--edge); border-radius: 8px; box-shadow: var(--shadow-deep), inset 0 1px 0 color-mix(in srgb, var(--acc, #d8ad55) 55%, transparent);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.xp-preview.on { opacity: 1; transform: translate(-50%, 0); }
.xp-scrubbing .xp-preview { opacity: 0 !important; visibility: hidden; }
.xp-preview p { margin: 0; }
.pv-year { color: var(--gold); }
.pv-year:empty { display: none; }
.pv-title { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.015em; margin-top: .2rem !important; }
.pv-line { color: var(--ink-2); font-size: var(--ui); line-height: 1.45; margin-top: .35rem !important; }
.pv-line:empty, .pv-ch:empty { display: none; }
.pv-ch { color: var(--ink-1); font-size: var(--ui); margin-top: .3rem !important; }
.pv-ch::before { content: "Chapter · "; font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-3); }

/* home has no floor (§18.6: journey views only); on an intro it rises with the page (--floor-in, chrome.js) */
.xp-on-home .xp-floor { display: none; }
html[data-view="intro"] .xp-floor { opacity: var(--floor-in, 1); }
html[data-view="intro"] .xp-floor:focus-within { opacity: 1; }
/* the card handoff lands on the intro's p 0, which has no floor yet: the floor (an outro's) steps aside as it grows */
html[data-xt-variant="card"] .xp-floor { opacity: 0; transition: opacity 240ms var(--ease-out); }

/* ---------- liquid glass: one recipe, .xp-glass + its custom properties ----------
   The readiness plate, the phone gate's plate and the error panel wear it; the top navigation can adopt it as-is (add
   the class, override the properties). CSS only: no WebGL context, no page sampling. The body is a faint tint over a
   backdrop blur with raised saturation (the refraction-like read of whatever is under it); the rim is specular (a
   bright line just inside the top and the leading edge, dim far edges), a gold hairline sits on the edge, a warm
   caustic glows in the far corner. Rules: never animate backdrop-filter; never wear it on an element that moves every
   frame (a fade or a one-off settle is fine); without backdrop-filter (or with reduced transparency) the tint goes
   near solid. Properties:
     --glass-radius  corner radius            --glass-tint   rgb of the body       --glass-alpha  its strength over the blur
     --glass-solid   its strength without blur --glass-blur  blur radius           --glass-sat / --glass-bright  the backdrop
     --glass-spec    specular rim, 0..1        --glass-hair   rgb of the hairline   --glass-hair-a its strength
     --glass-shadow  the outer shadow (and any glow) */
.xp-glass {
  --glass-radius: 24px;
  --glass-tint: 12, 13, 12;
  --glass-alpha: .52;
  --glass-solid: .94;
  --glass-blur: 16px;
  --glass-sat: 1.55;
  --glass-bright: .9;
  --glass-spec: 1;
  --glass-hair: 216, 173, 85;
  --glass-hair-a: .5;
  --glass-shadow: 0 28px 56px -26px rgba(0, 0, 0, .85), 0 8px 18px -8px rgba(0, 0, 0, .5);
  --glass-sheen: linear-gradient(158deg, rgba(246, 242, 232, calc(.15 * var(--glass-spec))), rgba(246, 242, 232, calc(.04 * var(--glass-spec))) 30%, rgba(246, 242, 232, 0) 58%, rgba(246, 242, 232, calc(.07 * var(--glass-spec)))),
    radial-gradient(60% 80% at 90% 115%, rgba(var(--glass-hair), .17), transparent 70%);
  border-radius: var(--glass-radius);
  background: var(--glass-sheen), rgba(var(--glass-tint), var(--glass-alpha));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(var(--glass-bright));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(var(--glass-bright));
  box-shadow:
    inset 0 0 0 1px rgba(var(--glass-hair), var(--glass-hair-a)),
    inset 0 2px 1px -1px rgba(255, 250, 238, calc(.55 * var(--glass-spec))),
    inset 2px 0 1px -1px rgba(255, 250, 238, calc(.22 * var(--glass-spec))),
    inset 0 -2px 1px -1px rgba(255, 250, 238, calc(.08 * var(--glass-spec))),
    inset 0 -18px 30px -22px rgba(0, 0, 0, .6),
    var(--glass-shadow);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .xp-glass { background: var(--glass-sheen), rgba(var(--glass-tint), var(--glass-solid)); }
}
@media (prefers-reduced-transparency: reduce) {
  .xp-glass { background: var(--glass-sheen), rgba(var(--glass-tint), var(--glass-solid)); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- ExperienceReadinessIndicator (transition.js), the primary: a plate centred at 62 vh ----------
   Felix, 18 Nov (Phase L): prominent, central, more luxurious, liquid glass, "Loading" (never "Entering"). Its centre
   is 62 vh (60 % on phones and short windows), adjusted only by a lane: a view's keep-clear (host.js keepClear) or the
   host's measured clear band (compact states); never bottom-aligned, never lower than 20 % above the bottom.
   compact: icon · message / sub (explore, continue, a handoff that does not rest). full: icon · message · sub · the
   three real steps · actions (resting on an introduction; a frost wait). Off fades out and then is not rendered. */
.xp-ready { --xr-c: 62svh; --xr-tx: -50%; position: fixed; z-index: 41; left: 50%; top: var(--xr-y, var(--xr-c)); margin: 0;
  /* M-01: its own width (left: 50% left a shrink-to-fit box only half the viewport, so phones wrapped "Swipe up to
     continue" into two short lines); never wider than the margins allow */
  width: max-content; max-width: calc(100vw - 2 * var(--margin)); color: var(--ivory); white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate(var(--xr-tx), -50%) translateY(10px) scale(.975);
  transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out), top 560ms var(--ease-out), visibility 0s linear 420ms; }
.xp-ready:not([data-state="off"]):not([data-state="hair"]) { opacity: 1; visibility: visible; transform: translate(var(--xr-tx), -50%);
  transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out), top 560ms var(--ease-out), left 560ms var(--ease-out), visibility 0s; }
/* a card handoff's "Loading · X" shown from hidden (transition.js place): it fades and rises in at its seat (where the
   introduction will seat it), never gliding there from where it last was; set for one style flush */
@media (prefers-reduced-motion: no-preference) {
  .xp-ready[data-cut]:not([data-state="off"]):not([data-state="hair"]) { transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out), left 560ms var(--ease-out), visibility 0s; }
}
/* the settle after a handoff: dimmed, and it says "Loading · X" (transition.js); never a dimmed "Scroll to …" */
.xp-ready[data-moving]:not([data-state="off"]) { opacity: .55; }
/* the handover from it (transition.js handOver): the words stand still while the glass eases to their size around
   them; until it has, they are clipped to it */
.xp-ready.xr-swap { overflow: clip; }
/* a message set as rows that never break further (a phone's arrival: "Swipe up" / "to continue") */
.xr-row { display: block; white-space: nowrap; }
/* a view's lane (an outro's left column): start-aligned at --xr-left, its right edge kept ≥ --margin inside */
@media (min-width: 1024px) and (min-height: 600px) {
  .xp-ready[data-left] { left: var(--xr-left); --xr-tx: min(0px, calc(100vw - var(--margin) - var(--xr-left) - 100%)); }
}
.xp-ready[data-size="compact"] { padding: .95rem 1.75rem .95rem 1.3rem; min-height: 4.75rem; display: grid; align-items: center; }
.xp-ready[data-size="full"] { padding: 1.6rem 2.5rem 1.5rem; min-width: min(26rem, calc(100vw - 2 * var(--margin))); display: grid; justify-items: center; }
.xr-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.05rem; pointer-events: none; }
:is(.xp-ready[data-size="full"], .xg-go) .xr-body { flex-direction: column; gap: .9rem; text-align: center; }
.xr-words { display: grid; gap: .2rem; text-align: left; }
:is(.xp-ready[data-size="full"], .xg-go) .xr-words { justify-items: center; text-align: center; gap: .4rem; }
.xr-k { font-family: var(--f-display); font-weight: 300; font-size: 1.625rem; line-height: 1.05; letter-spacing: -.02em; color: var(--ivory); }
:is(.xp-ready[data-size="full"], .xg-go) .xr-k { font-size: 1.875rem; }
.xr-t { font-family: var(--f-sans); font-size: .9375rem; line-height: 1.35; letter-spacing: .005em; color: var(--ink-2); }
.xr-t:has(.xr-v:empty):has(.xr-d:empty), .xr-t:empty { display: none; }
.xr-d { color: var(--gold); }
/* the icon: a scroll mouse (desktop), a click (desktop, ready: the plate is a button), a swipe up (phones), a drawn
   gold ring (loading, preparing) */
.xr-icon { position: relative; flex: none; width: 1.75rem; height: 2.625rem; }
:is(.xp-ready[data-size="full"], .xg-go) .xr-icon { width: 3rem; height: 3rem; }
.xr-i { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 280ms var(--ease-out); }
[data-icon="mouse"] .xr-mouse, [data-icon="click"] .xr-click, [data-icon="swipe"] .xr-swipe, [data-icon="ring"] .xr-ring { opacity: 1; }
/* the click: an ivory pointer that presses, its gold rays answering (Felix, 19 Nov: "the icon doesnt insinuate a click") */
.xr-ptr { stroke: rgba(238, 235, 227, .78); transform-box: view-box; transform-origin: 12px 15px; animation: xr-press 2.2s var(--ease-out) infinite; }
.xr-rays { stroke: var(--gold); filter: drop-shadow(0 0 3px rgba(216, 173, 85, .55)); transform-box: view-box; transform-origin: 12px 15px; animation: xr-rays 2.2s var(--ease-out) infinite; }
@keyframes xr-press { 0%, 24% { transform: none; } 32% { transform: translate(.8px, 1.4px) scale(.93); } 44%, 100% { transform: none; } }
@keyframes xr-rays { 0%, 28% { opacity: 0; transform: scale(.7); } 36% { opacity: 1; } 66% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.12); } }
.xr-mouse rect { stroke: rgba(238, 235, 227, .78); }
.xr-wheel { stroke-width: 2.4; transform-box: fill-box; animation: xr-wheel 1.9s var(--ease-out) infinite; }
.xr-chev { stroke: rgba(216, 173, 85, .7); animation: xr-chev 1.9s var(--ease-out) infinite; }
@keyframes xr-wheel { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 68% { transform: translateY(7px); opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes xr-chev { 0%, 30% { opacity: .2; transform: translateY(-2px); } 70% { opacity: 1; transform: translateY(0); } 100% { opacity: .2; } }
.xr-rail { stroke: rgba(216, 173, 85, .32); }
.xr-dot { fill: var(--gold); stroke: none; filter: drop-shadow(0 0 4px rgba(216, 173, 85, .8)); animation: xr-rise 1.8s var(--ease-out) infinite; }
@keyframes xr-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 72% { transform: translateY(-24px); opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }
.xr-ring-bg { stroke: rgba(238, 235, 227, .16); }
.xr-ring-fg { stroke-dasharray: 100; stroke-dashoffset: 100; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); filter: drop-shadow(0 0 4px rgba(216, 173, 85, .55)); }
/* loading: the ring draws, again and again, as long as the handoff runs and on through the arrival's settle (the same
   animation, so it carries on unbroken from one to the other); preparing: an arc travels round it */
[data-state="loading"] .xr-ring-fg, .xp-ready[data-moving][data-icon="ring"] .xr-ring-fg, .xp-gate[data-ready="2"] .xr-ring-fg { animation: xr-draw 1.4s cubic-bezier(.45, 0, .2, 1) infinite; }
:is([data-state="preparing"], [data-state="slow"], .xp-gate[data-ready="0"]) .xr-ring-fg { stroke-dasharray: 26 74; stroke-dashoffset: 0; animation: xr-spin 1.6s linear infinite; }
@keyframes xr-draw { 0% { stroke-dashoffset: 100; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes xr-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
/* the track: three real steps (the page requested · its document parsed · its scene set), filled as they happen; the
   pending one carries an indeterminate fill (never a number). Ready: complete, then it resolves into a gold hairline */
.xr-track { position: relative; z-index: 1; display: none; width: min(20rem, calc(100vw - 2 * var(--margin) - 3rem)); height: 6px; margin-top: 1.1rem; gap: 5px; pointer-events: none;
  transition: height 520ms var(--ease-out) 260ms, gap 520ms var(--ease-out) 260ms; }
:is(.xp-ready[data-size="full"], .xg-go) .xr-track { display: flex; }
.xr-track b { position: relative; flex: 1; height: 100%; border-radius: 3px; background: rgba(238, 235, 227, .13); overflow: hidden; }
.xr-track b::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #e7c27a, var(--gold)); box-shadow: 0 0 10px rgba(216, 173, 85, .5);
  transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out); }
:is(.xp-ready[data-step="1"] .xr-track, .xr-track[data-step="1"]) b:nth-child(1)::after,
:is(.xp-ready[data-step="2"] .xr-track, .xr-track[data-step="2"]) b:nth-child(-n + 2)::after,
:is(.xp-ready[data-step="3"] .xr-track, .xr-track[data-step="3"]) b::after { transform: scaleX(1); }
:is(.xp-ready[data-step="0"] .xr-track, .xr-track[data-step="0"]) b:nth-child(1)::before,
:is(.xp-ready[data-step="1"] .xr-track, .xr-track[data-step="1"]) b:nth-child(2)::before,
:is(.xp-ready[data-step="2"] .xr-track, .xr-track[data-step="2"]) b:nth-child(3)::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(216, 173, 85, .9), transparent);
  transform: translateX(-100%); animation: xr-indet 1.3s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes xr-indet { to { transform: translateX(240%); } }
:is(.xp-ready[data-state="ready"], .xp-gate[data-ready="1"]) .xr-track { height: 2px; gap: 0; }
:is(.xp-ready[data-state="ready"], .xp-gate[data-ready="1"]) .xr-track b { border-radius: 0; }
.xr-push { display: none; }
/* the boundary (compact) and the true end's button: the push, a gold hairline along the plate's foot */
.xp-ready:is([data-state="continue"], [data-state="end"]) .xr-track { display: block; position: absolute; left: 1.4rem; right: 1.4rem; bottom: .6rem; width: auto; height: 1px; margin: 0; background: rgba(238, 235, 227, .14); }
.xp-ready:is([data-state="continue"], [data-state="end"]) .xr-track b { display: none; }
.xp-ready:is([data-state="continue"], [data-state="end"]) .xr-push { display: block; position: absolute; inset: 0; background: var(--gold); box-shadow: var(--xp-glow); transform-origin: left; transform: scaleX(calc(.1 + .9 * var(--xr-push, 0))); }
/* a frame's true end on phones and tablets (transition.js 'end'; Felix, 19 Nov: "need to show user a tappable element to
   continue"): the plate is the Continue button. Ready: "Continue" over the next title in gold, a trailing chevron (the
   site's thin chevron, currentColor, 1.4 px; never a ↗ / ↓ glyph: iOS draws those as emoji), the rim warm. Not yet:
   "Preparing" with the ring, disabled. The whole plate is the hit target (≥ 68 px tall on phones) */
.xr-next { display: none; flex: none; width: .5em; height: .75em; overflow: visible; font-size: 1.5rem; color: var(--ivory); transition: transform var(--t-ui) var(--ease-out); }
.xp-ready[data-state="end"][data-icon="chev"] .xr-next { display: block; }
.xp-ready[data-state="end"][data-icon="chev"] .xr-icon { display: none; }
.xp-ready[data-state="end"][data-icon="chev"] .xr-body { gap: .95rem; }
.xp-ready[data-state="end"][data-icon="ring"] .xr-ring-fg { stroke-dasharray: 26 74; stroke-dashoffset: 0; animation: xr-spin 1.6s linear infinite; }
.xp-ready[data-state="end"][data-icon="chev"] { --glass-hair-a: .9; --glass-shadow: 0 0 34px rgba(216, 173, 85, .2), 0 28px 56px -26px rgba(0, 0, 0, .85), 0 8px 18px -8px rgba(0, 0, 0, .5); }
.xp-ready[data-live][data-state="end"][data-icon="chev"] .xr-go { cursor: pointer; }
.xp-ready[data-live][data-state="end"]:has(.xr-go:focus-visible) { --glass-hair-a: 1; }
.xp-ready[data-live][data-state="end"][data-icon="chev"]:has(.xr-go:active) .xr-body { transform: scale(.985); }
.xp-ready[data-live][data-state="end"][data-icon="chev"]:has(.xr-go:is(:active, :focus-visible)) .xr-next { transform: translateX(2px); }
/* ready: the rim warms, the plate is the Continue control */
.xp-ready[data-state="ready"], .xp-gate[data-ready="1"] .xg-go { --glass-hair-a: .9; --glass-shadow: 0 0 34px rgba(216, 173, 85, .2), 0 28px 56px -26px rgba(0, 0, 0, .85), 0 8px 18px -8px rgba(0, 0, 0, .5); }
.xr-go { position: absolute; inset: 0; z-index: 0; display: none; border-radius: inherit; }
.xp-ready[data-live] { pointer-events: auto; }
.xp-ready[data-live] .xr-go { display: block; cursor: default; }
.xp-ready[data-live][data-state="ready"] .xr-go { cursor: pointer; }
.xr-go:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: calc(var(--glass-radius) + 4px); }
/* the whole plate is the button: hover (a pointer that hovers) and keyboard focus warm the rim and quicken the click */
.xp-ready[data-live][data-state="ready"]:has(.xr-go:focus-visible) { --glass-hair-a: 1; --glass-shadow: 0 0 46px rgba(216, 173, 85, .32), 0 28px 56px -26px rgba(0, 0, 0, .85), 0 8px 18px -8px rgba(0, 0, 0, .5); }
@media (hover: hover) {
  .xp-ready[data-live][data-state="ready"]:hover { --glass-hair-a: 1; --glass-shadow: 0 0 46px rgba(216, 173, 85, .32), 0 28px 56px -26px rgba(0, 0, 0, .85), 0 8px 18px -8px rgba(0, 0, 0, .5); }
  .xp-ready[data-live][data-state="ready"]:hover .xr-k { color: #fff; }
  .xp-ready[data-live][data-state="ready"]:hover :is(.xr-ptr, .xr-rays) { animation-duration: 1.2s; }
  .xp-ready[data-live][data-state="end"][data-icon="chev"]:hover { --glass-hair-a: 1; --glass-shadow: 0 0 46px rgba(216, 173, 85, .32), 0 28px 56px -26px rgba(0, 0, 0, .85), 0 8px 18px -8px rgba(0, 0, 0, .5); }
  .xp-ready[data-live][data-state="end"][data-icon="chev"]:hover .xr-next { transform: translateX(2px); }
}
.xp-ready[data-live][data-state="ready"]:has(.xr-go:active) .xr-body { transform: scale(.985); }
.xp-ready.nudge .xr-body { animation: xr-nudge 560ms var(--ease-out); }
@keyframes xr-nudge { 20% { transform: translateX(-4px); } 45% { transform: translateX(3px); } 70% { transform: translateX(-1.5px); } }
.xr-act { position: relative; z-index: 2; display: flex; justify-content: center; gap: .6rem; margin-top: 1.15rem; pointer-events: auto; }
.xr-act[hidden] { display: none; }
.xr-act button { min-height: 44px; padding: 0 1.15rem; border-radius: 22px; font-size: var(--ui); color: var(--ivory); background: rgba(6, 7, 6, .35); box-shadow: inset 0 0 0 1px var(--edge); }
.xr-act button:first-child { box-shadow: inset 0 0 0 1px rgba(216, 173, 85, .75); }
.xr-act button:hover { box-shadow: inset 0 0 0 1px var(--ivory); }
/* the one cue at a forward boundary is the plate; the intro's own hint stays for going back */
.xp-intro[data-dir="next"] .xp-intro-hint { display: none; }
/* phones and short windows: the same plate at 60 %, clear of the bar; never under the full-screen gate */
@media (max-width: 1023px), (max-height: 599px) {
  .xp-ready { --xr-c: 60svh; white-space: normal; }
  .xp-ready[data-size="compact"] { padding: .85rem 1.4rem .85rem 1.1rem; min-height: 4.25rem; }
  /* M-01, two rows by design: the arrival hint stays narrow, "Swipe up" / "to continue" as two set rows (.xr-row; a
     mouse on a narrow window: "Scroll to / continue" balanced), so a dense frame's labels stay clear (L-lane,
     Hindsait's chart); the longer states take their words' width, one phrase a row ("Swipe up to continue" /
     "Next: …"), never three short lines */
  .xp-ready[data-size="compact"][data-state="explore"] { width: auto; }
  /* the set rows (19 Nov): the icon a little closer and the sides a little tighter, so "Swipe up" / "to continue"
     keeps the old arrival plate's width (195 px at 390: Hindsait's chart labels stay clear, L-lane) */
  .xp-ready[data-size="compact"][data-state="explore"]:has(.xr-row) { padding-left: 1rem; padding-right: 1.1rem; }
  .xp-ready[data-state="explore"]:has(.xr-row) .xr-body { gap: .7rem; }
  /* the true end's button: no icon before the words when ready, so its sides match */
  .xp-ready[data-size="compact"][data-state="end"][data-icon="chev"] { padding-left: 1.5rem; padding-right: 1.35rem; }
  .xp-ready[data-size="full"] { padding: 1.35rem 1.6rem 1.3rem; }
  .xr-k { font-size: 1.5rem; text-wrap: balance; }
  .xr-t { text-wrap: balance; }
  :is(.xp-ready[data-size="full"], .xg-go) .xr-k { font-size: 1.625rem; }
  .xr-icon { width: 1.7rem; height: 2.5rem; }
  :is(.xp-ready[data-size="full"], .xg-go) .xr-icon { width: 2.6rem; height: 2.6rem; }
  html.xp-gated .xp-ready { display: none; }
}

/* ---------- the secondary: a gold hairline at the bottom, the frame's progress while the visitor scrolls in it ---------- */
.xp-hair { position: fixed; z-index: 41; left: 50%; bottom: calc(var(--floor) + .4rem); width: 5.5rem; height: 2px; margin-left: -2.75rem; border-radius: 1px; overflow: hidden;
  background: rgba(238, 235, 227, .16); opacity: 0; pointer-events: none; transition: opacity 420ms var(--ease-out); }
.xp-hair[data-on="1"] { opacity: 1; }
.xp-hair b { position: absolute; inset: 0; background: var(--gold); box-shadow: var(--xp-glow); transform-origin: left; transform: scaleX(0); }
@media (max-width: 1023px), (max-height: 599px) {
  .xp-hair { bottom: calc(.6rem + 44px + .8rem + env(safe-area-inset-bottom)); }
  html.xp-gated .xp-hair { opacity: 0; }
}

/* ---------- the frost (transition.js), desktop: a genuine wait inside a handoff that does not rest ----------
   The previous scene stays visible, softened (a dark translucent layer, a mild blur, less saturation); the chapter's
   kicker and title above; the plate below (#xp-ready, at 62 vh) says Please wait with the real steps. */
.xp-frost { position: fixed; inset: 0; z-index: 36; opacity: 0; pointer-events: none; --acc: var(--gold);
  -webkit-backdrop-filter: blur(6px) saturate(.55) brightness(.8); backdrop-filter: blur(6px) saturate(.55) brightness(.8);
  background: radial-gradient(70% 60% at 50% 52%, rgba(6, 7, 6, .62), rgba(6, 7, 6, .4) 80%); transition: opacity 320ms var(--ease-out); }
.xp-frost[hidden] { display: none; }
.xp-frost.on { opacity: 1; pointer-events: auto; transition-duration: 240ms; }
.xf-box { position: absolute; left: 50%; top: 35svh; width: min(48rem, calc(100vw - 2 * var(--margin))); display: grid; justify-items: center; gap: .7rem; text-align: center;
  transform: translate(-50%, -50%) translateY(8px); transition: transform 320ms var(--ease-out); }
.xp-frost.on .xf-box { transform: translate(-50%, -50%); }
.xf-box p { margin: 0; }
.xf-k { font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-2); }
.xf-t { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 1.2rem + 2.9vw, 4rem); line-height: 1.02; letter-spacing: -.035em; color: var(--ivory); text-wrap: balance; }
.xf-t::after { content: ""; display: block; width: 3.5rem; height: 1px; margin: 1.1rem auto 0; background: var(--acc); box-shadow: var(--xp-glow); }
/* under the frost the intro's own words step aside: the frost's title is the one that reads */
html.xp-frosting .xp-intro-text { opacity: 0 !important; transition: opacity 200ms var(--ease-out); }

/* ---------- the phone gate (transition.js): the same resting state, full screen ----------
   The frame stays, faint, behind frost; above, the chapter's figure, kicker and count, title and line; at 60 % the
   plate (.xp-glass), which is also the tap target; Back below it. It peeks with the pull (--gk), then holds. */
.xp-gate { --gc: 60svh; position: fixed; inset: 0; z-index: 42; opacity: 0; pointer-events: none; touch-action: none; --acc: var(--gold); --gk: 0; }
.xp-gate[hidden] { display: none; }
.xp-gate.peeking { opacity: var(--gk); }
.xp-gate.on { opacity: 1; pointer-events: auto; transition: opacity 220ms var(--ease-out); }
.xp-gate.closing, .xp-gate.leaving { opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease-out); }
/* the frost at .6 (RESP, MOBILE-CINEMATIC host notes): the finished beat stays recognisable behind it; the words get
   their own scrim */
/* M-01: at .6 the sharp frame showed through at 40 % and its data read clearly behind the title; whole now, a little
   stronger: the finished beat stays recognisable by shape and colour, none of its words compete */
.xg-frost { position: absolute; inset: 0; -webkit-backdrop-filter: blur(14px) saturate(.5) brightness(.55); backdrop-filter: blur(14px) saturate(.5) brightness(.55); background: rgba(var(--xp-scrim), .3); }
.xp-gate::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to top, rgba(var(--xp-scrim), .95) 0%, rgba(var(--xp-scrim), .9) 50%, rgba(var(--xp-scrim), .62) 82%, rgba(var(--xp-scrim), .35) 100%); }
.xg-box { position: absolute; z-index: 1; left: var(--margin); right: var(--margin); bottom: calc(100% - var(--gc) + 6.6rem); display: grid; justify-items: start; gap: .45rem; transform: translateY(calc((1 - var(--gk)) * 28px)); }
.xp-gate.on .xg-box { transform: none; transition: transform 260ms var(--ease-out); }
.xg-box p, .xg-box h2 { margin: 0; }
.xg-fig { width: min(60vw, 15rem); height: clamp(2.75rem, 9svh, 5rem); overflow: visible; margin: 0 0 .7rem; }
.xg-k { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.xg-n { color: var(--gold); margin-left: .55rem; font-variant-numeric: tabular-nums; }
.xg-t { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 1.3rem + 6vw, 3.75rem); line-height: .98; letter-spacing: -.035em; color: var(--ivory); text-wrap: balance; }
.xg-l { font-family: var(--f-display); font-weight: 300; font-size: 1.125rem; line-height: 1.25; letter-spacing: -.01em; color: var(--ink-1); max-width: 28ch; margin-top: .35rem !important; text-wrap: balance; }
.xg-l:empty { display: none; }
.xg-go { position: absolute; z-index: 1; left: 50%; top: var(--gc); width: min(22rem, calc(100vw - 2 * var(--margin))); padding: 1.3rem 1.5rem 1.25rem; display: grid; justify-items: center;
  transform: translate(-50%, -50%) translateY(calc((1 - var(--gk)) * 20px)); color: var(--ivory); --glass-radius: 26px; }
.xp-gate.on .xg-go { transform: translate(-50%, -50%); transition: transform 260ms var(--ease-out); }
.xg-go[aria-disabled="true"] { cursor: default; }
.xg-go:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 30px; }
.xg-go .xr-track { width: min(17rem, 100%); }
.xg-back { position: absolute; z-index: 1; left: 50%; top: calc(var(--gc) + 6.4rem); transform: translateX(-50%); min-height: 44px; padding: 0 .6rem; font-size: var(--ui); color: var(--ink-3);
  text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; white-space: nowrap; }
@media (max-height: 700px) { .xg-fig { display: none; } }
@media (max-height: 520px) { .xp-gate { --gc: 58svh; } .xg-l { display: none; } }
@media (min-width: 1024px) and (min-height: 600px) { .xp-gate { display: none !important; } }

/* ---------- the card handoff (transition.js): the expanded card, revealed through a window from the source rect ---------- */
.xp-cardlayer { position: fixed; inset: 0; z-index: 28; pointer-events: none; }
.xp-cardlayer[hidden] { display: none; }
.xp-cardlayer > * { pointer-events: none; }
.xp-card-fallback { position: fixed; left: var(--jc-x, 0px); top: var(--jc-y, 0px); width: var(--jc-w, 100vw); height: var(--jc-h, 100svh); border-radius: var(--jc-radius, 0px); overflow: hidden; display: block; background: radial-gradient(70% 60% at 68% 40%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%), var(--void); }
.xp-card-fallback span { position: absolute; left: var(--margin); }
.xp-card-fallback .k { top: calc(var(--top) + 2rem); font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-3); }
.xp-card-fallback .t { bottom: 34svh; font-family: var(--f-display); font-weight: 300; font-size: var(--display-lg); letter-spacing: -.04em; line-height: 1; }
.xp-card-fallback .l { bottom: calc(34svh - 2.6rem); font-size: var(--ui); color: var(--ink-2); }
.xp-slot.is-incoming.is-in.no-fade { transition: none; }

/* ---------- error: a destination that could not be prepared; never a dead end ---------- */
.xp-error { position: fixed; inset: 0; z-index: 70; display: grid; justify-items: center; align-items: start; padding: max(var(--top), calc(62svh - 9.5rem)) var(--margin) var(--margin); background: rgba(4, 5, 4, .62); --acc: var(--gold); }
.xp-error[hidden] { display: none; }
/* the plate's own glass, where the plate was (≈ 62 vh), turned into the recovery */
.xe-box { width: min(34rem, 100%); padding: 1.7rem 1.8rem 1.5rem; --glass-radius: 22px; --glass-alpha: .66; }
@media (max-width: 1023px), (max-height: 599px) { .xp-error { align-items: center; padding: var(--top) var(--margin) calc(var(--margin) + 44px); } }
.xe-box p, .xe-box h2 { margin: 0; }
.xe-k { font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-3); }
.xe-t { font-family: var(--f-display); font-weight: 300; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; margin-top: .4rem !important; outline: none; }
.xe-m { color: var(--ink-2); font-size: var(--ui); margin-top: .6rem !important; }
.xe-a { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.3rem; }
.xe-a > * { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1.05rem; border-radius: 22px; font-size: var(--ui); text-decoration: none; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--edge); }
.xe-a > *:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.xe-a .xe-retry { box-shadow: inset 0 0 0 1px var(--gold); }

/* ---------- scene introduction + veil (exit region, held across the transition) ----------
   Composed per incoming scene (intros.js): the figure is drawn in viewport coordinates on top of where the frame's
   own figure will be; the words sit where the frame's words land. No card: the veil is the incoming scene's ground,
   it reaches full strength before the words arrive, and it enters from the edge the layout anchors to. */
.xp-veil { position: fixed; inset: -8%; z-index: 29; pointer-events: none; opacity: var(--ivis); --vg: 6, 7, 6; --ax: 50%; --ay: 60%;
  --vdx: 0; --vdy: 0; --vs: 0;
  background: radial-gradient(34vmax 24vmax at var(--ax) var(--ay), rgba(var(--vg), .99) 45%, rgba(var(--vg), 0) 100%), var(--vbase, rgba(var(--vg), .95));
  transform: translate3d(calc((1 - var(--ivis)) * var(--vdx) * 1%), calc((1 - var(--ivis)) * var(--vdy) * 1%), 0) scale(calc(1 + (1 - var(--ivis)) * var(--vs))); }
.xp-veil[data-layout="edge"] { --vdx: -6; --vbase: linear-gradient(to right, rgba(var(--vg), .98) 10%, rgba(var(--vg), .96) 55%, rgba(var(--vg), .94)); }
.xp-veil[data-layout="right"] { --vdx: 6; --vbase: linear-gradient(to left, rgba(var(--vg), .98) 10%, rgba(var(--vg), .96) 55%, rgba(var(--vg), .94)); }
.xp-veil[data-layout="centre"] { --vs: .05; --vbase: radial-gradient(70% 70% at 50% 50%, rgba(var(--vg), .97), rgba(var(--vg), .94)); }
.xp-veil[data-layout="bleed"] { --vdy: 6; --vbase: linear-gradient(to top, rgba(var(--vg), .97), rgba(var(--vg), .94) 60%); }
/* the outgoing scene ends on white UI (Optimal's table, Wonder's panel): nothing of it may show through the words */
.xp-veil[data-light="1"] { --vbase: rgba(var(--vg), .985); }
.xp-veil.leaving { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }

.xp-intro { position: fixed; inset: 0; z-index: 30; pointer-events: none; visibility: hidden; --acc: var(--gold); }
.xp-intro.on { visibility: visible; }
.xp-fig { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; opacity: var(--fvis, 0); }
.xp-intro-text { position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); width: var(--tw, 30rem); max-width: calc(100vw - 2 * var(--margin));
  opacity: var(--vis, 0); transform: translate(var(--tax, 0), var(--tay, 0)) translate3d(0, calc((1 - var(--vis, 0)) * 10px), 0); }
.xp-intro.leaving .xp-fig, .xp-intro.leaving .xp-intro-text, .xp-intro.leaving .xp-riser { transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.xp-intro-text p { margin: 0; }
.xp-intro-text[data-align="center"] { text-align: center; }
.xp-intro-text[data-align="right"] { text-align: right; }
.xp-intro-text { display: grid; }
.xp-intro-head { display: grid; gap: .6rem; justify-items: start; }
.xp-intro-text[data-align="center"] .xp-intro-head { justify-items: center; }
.xp-intro-text[data-align="right"] .xp-intro-head { justify-items: end; }
.xp-intro-kicker { color: var(--ink-2); }
.xp-intro-kicker:empty { display: none; }
/* L-01: the chapter's title, large (the introduction is a resting state, read before the frame) */
.xp-intro-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 1rem + 3.3vw, 4.75rem); line-height: .98; letter-spacing: -.04em; color: var(--ivory); text-wrap: balance; }
.xp-intro-title:empty { display: none; }
/* where the frame's own title is the next words (Potato, 09, SOMA), the line takes its place and size; the kicker
   and the title sit above it (or, without room above, below it) */
.xp-intro-text[data-kicker="above"] .xp-intro-head { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 1rem; }
.xp-intro-text[data-head="below"] .xp-intro-head { position: static; order: 2; margin-top: 1.1rem; }
.xp-intro-text[data-head="below"] .xp-intro-hint { order: 3; }
.xp-intro-text[data-kicker="above"] .xp-intro-title { font-size: clamp(1.9rem, 1rem + 2vw, 3rem); }
.xp-intro-line { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.35rem, .95rem + .95vw, 2.1rem); line-height: 1.12; letter-spacing: -.022em; color: var(--ink-1); margin-top: 1.05rem !important; text-wrap: balance; }
.xp-intro[data-layout="right"] .xp-intro-line { font-size: clamp(1.3rem, .9rem + .8vw, 1.9rem); }
.xp-intro-text[data-kicker="above"] .xp-intro-line { margin-top: 0 !important; color: var(--ivory); }
.xp-intro-hint { display: flex; align-items: center; gap: .7rem; color: var(--ink-4); margin-top: .9rem !important; }
.xp-intro-text[data-align="center"] .xp-intro-hint { justify-content: center; }
.xp-intro-text[data-align="right"] .xp-intro-hint { justify-content: flex-end; }
.xp-intro.playing .xp-intro-hint { visibility: hidden; }
.xp-meter { position: relative; width: 3.5rem; height: 1px; background: var(--edge); overflow: hidden; }
.xp-meter b { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--push, 0)); }
/* the riser (right-anchored layouts only): the rail's line climbs from Next toward the words */
.xp-riser { display: none; }
.xp-intro[data-layout="right"][data-dir="next"] .xp-riser { display: block; position: absolute; right: var(--margin); bottom: calc(3.75rem + 34px); width: 1px; height: calc(var(--floor) - 3.75rem - 34px + 1.2rem);
  background: linear-gradient(to top, var(--gold), rgba(216, 173, 85, .15)); transform-origin: bottom; transform: scaleY(var(--fvis, 0)); }

/* ---------- mobile / tablet: story mode (shell's own breakpoint) ----------
   Nothing over content (critique must-fix 5): the timeline sits at the very edge (its marks ≥ 12 px from the frame's
   text), one centred 44 px bar carries chapters and Next, and every framed document ends --xp-safe-bottom below its
   last content (adapter.js), so the last words and links clear the bar. */
.xp-vline, .xp-bar { display: none; }
@media (max-width: 1023px), (max-height: 599px) {
  .xp-floor { display: none; }
  .xp-top .nav { white-space: nowrap; }
  .xp-top .nav > a { padding: 0 .75rem; }

  /* the vertical timeline: its line at x 4, marks 1.5–6.5 px; only its 44 px handle takes pointers */
  .xp-vline { display: block; position: fixed; z-index: 35; left: -3px; width: 14px; top: calc(var(--top) + .4rem); bottom: calc(.6rem + 44px + .9rem + env(safe-area-inset-bottom)); pointer-events: none; }
  .xp-vline .v-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); background: var(--xp-ink-line); }
  .xp-vline .v-done { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%) scaleY(var(--g)); transform-origin: top; background: var(--gold); box-shadow: var(--xp-glow); }
  .xp-vline .v-marks, .xp-vline .v-ticks { position: absolute; inset: 0; }
  .xp-vline .v-ticks .tick { position: absolute; left: 50%; width: 4px; height: 1px; transform: translate(-50%, -50%); background: var(--ink-4); }
  .xp-vline .mark { position: absolute; left: 50%; width: 5px; height: 5px; transform: translate(-50%, -50%); border: 1px solid var(--ink-3); background: var(--void); border-radius: 50%; }
  .xp-vline .mark.sq { border-radius: 1px; }
  .xp-vline .mark.di { border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
  .xp-vline .mark.past, .xp-vline .mark.here { background: var(--gold); border-color: var(--gold); }
  .xp-vline .v-head { position: absolute; left: 3px; top: calc(var(--g) * 100%); width: 44px; height: 44px; transform: translate(0, -50%); border-radius: 50%; pointer-events: auto; touch-action: none; }
  .xp-vline .v-head i { position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(216, 173, 85, .75); }
  .xp-vline .v-head:focus-visible { outline-offset: -2px; }
  .xp-on-home .xp-vline { visibility: hidden; }

  /* one bar, centred: "3/7" (chapters) · "Next ↓ Wonder"; in the exit region Next lights up */
  .xp-bar { display: flex; align-items: stretch; position: fixed; z-index: 45; left: 50%; bottom: calc(.6rem + env(safe-area-inset-bottom)); transform: translateX(-50%); height: 44px; max-width: calc(100vw - 2 * max(.75rem, var(--margin)));
    border-radius: 22px; background: rgba(var(--xp-scrim), .93); box-shadow: inset 0 0 0 1px var(--edge), 0 8px 24px rgba(0, 0, 0, .35); transition: box-shadow var(--t-ui) var(--ease-out); }
  .xp-bar:has(.xp-pill.on) { box-shadow: inset 0 0 0 1px rgba(216, 173, 85, .55), 0 8px 24px rgba(0, 0, 0, .35); }
  /* M-01: under the gate the bar stays usable (its Next always works) but steps back, so the plate is the one call */
  html.xp-gated .xp-bar, html.xp-gated .xp-bar:has(.xp-pill.on) { background: rgba(var(--xp-scrim), .5); box-shadow: inset 0 0 0 1px var(--edge); }
  html.xp-gated .xp-pill, html.xp-gated .xp-pill .t, html.xp-gated .xp-chapters { color: var(--ink-3); }
  html.xp-gated .xp-pill-meter { opacity: 0; }
  .xp-bar button { height: 44px; border-radius: 22px; }
  .xp-bar button:focus-visible { outline-offset: -4px; border-radius: 20px; }
  .xp-chapters { flex: none; display: flex; align-items: center; justify-content: center; min-width: 56px; padding: 0 .85rem 0 1rem; position: relative;
    font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory); font-variant-numeric: tabular-nums; }
  .xp-chapters::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 1px; background: var(--edge); }
  .xp-pill { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-width: 0; padding: 0 1.15rem 0 .9rem; color: var(--ink-2); font-size: var(--ui); white-space: nowrap; transition: color var(--t-ui) var(--ease-out); }
  .xp-pill .lbl { color: inherit; }
  .xp-pill > span[aria-hidden] { color: var(--gold); }
  .xp-pill .t { overflow: hidden; text-overflow: ellipsis; color: var(--ivory); }
  .xp-pill.on { color: var(--ivory); }
  .xp-pill-meter { position: absolute; left: .9rem; right: 1.15rem; bottom: 7px; height: 1px; background: var(--gold); transform-origin: left; transform: scaleX(var(--push)); opacity: 0; }
  .xp-pill.on .xp-pill-meter { opacity: 1; }
  .xp-on-home .xp-bar { visibility: hidden; }

  .xp-intro-line { font-size: clamp(1.2rem, .95rem + 1.4vw, 1.6rem); }
  .xp-intro-title { font-size: clamp(2.1rem, 1.2rem + 4.4vw, 3.1rem); }
  .xp-intro[data-layout="right"] .xp-intro-line { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.7rem); }
  .xp-riser { display: none !important; }
}
@media (max-width: 640px) {
  .xp-top .id span { display: none; }   /* as the shell does: the cat carries identity on phones */
  .xp-elsewhere { display: none; }
  /* the socials and email in the open menu: the last row, under Home */
  .xp-top .nav > .xp-nav-elsewhere { display: flex; order: 2; align-items: center; gap: .1rem; margin-top: .3rem; padding: .35rem .5rem .2rem 1.2rem; box-shadow: inset 0 1px 0 var(--edge); }
  .xp-nav-elsewhere .xp-soc { width: 40px; height: 44px; }
  .xp-nav-elsewhere .xp-soc svg { width: 17px; height: 17px; }
  .xp-nav-elsewhere .xp-mail { margin-left: auto; height: 36px; border-radius: 18px; }
  /* the phones' menu (M-01): the capsule is a button ("Career ⌄", "Menu" at home); a tap opens the same glass, frosted,
     as a short list under it: the three journeys (name + what they are) and Home. It closes on an outside tap (the
     catcher below, so the tap never reaches the scene), Escape, or a choice (chrome.js). Not a sheet, not opaque. */
  .xp-navwrap { padding: 0; }
  .xp-menu { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1.05rem 0 1.15rem; border-radius: 22px;
    font-size: .875rem; font-weight: 500; letter-spacing: .015em; color: var(--ivory); }
  .xp-menu:focus-visible { outline-offset: -4px; border-radius: 22px; }
  .xp-menu-i { width: 11px; height: 8px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-ui) var(--ease-out); }
  .xp-navwrap[data-open] .xp-menu-i { transform: rotate(180deg); }
  .xp-top .nav { position: absolute; right: 0; top: calc(100% + .5rem); width: min(17.5rem, calc(100vw - 2 * var(--margin))); display: flex; flex-direction: column; gap: 0; padding: .4rem;
    white-space: normal; font-size: 1rem; --glass-radius: 22px; --glass-tint: 11, 12, 11; --glass-alpha: .76; --glass-solid: .96; --glass-blur: 26px; --glass-sat: 1.4; --glass-bright: .7; --glass-hair-a: .34;
    --glass-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9), 0 8px 18px -8px rgba(0, 0, 0, .5);
    visibility: hidden; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 100% 0;
    transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms; }
  .xp-navwrap[data-open] .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s; }
  .xp-top .nav > a { min-height: 52px; padding: .5rem .9rem .5rem 1.7rem; border-radius: 16px; justify-content: space-between; align-items: baseline; gap: 1rem;
    font-family: var(--f-display); font-weight: 300; font-size: 1.375rem; line-height: 1.6; letter-spacing: -.015em; color: var(--ivory); }
  .xp-top .nav > a:active { background: rgba(238, 235, 227, .07); }
  .xp-nav-sub { display: inline; font-family: var(--f-mono); font-size: var(--instrument); font-weight: 400; letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-3); }
  .xp-top .nav > [aria-current="true"] .xp-nav-sub { color: var(--gold); }
  /* the active journey: a gold point before its name (the line's dot), not the underline */
  .xp-top .nav > a::after { left: .8rem; right: auto; bottom: auto; top: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translateY(-50%) scale(0); }
  .xp-top .nav > [aria-current="true"]::after { transform: translateY(-50%) scale(1); }
  .xp-top .nav > .xp-nav-home { display: flex; order: 1; min-height: 48px; margin-top: .3rem; padding-top: .6rem; border-radius: 0 0 16px 16px; box-shadow: inset 0 1px 0 var(--edge);
    font-family: var(--f-sans); font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
  /* the catcher: an outside tap closes the menu and goes no further; the scene dims a little behind it */
  .xp-top::after { content: ""; position: fixed; inset: 0; z-index: -2; background: rgba(4, 5, 4, .32); opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms; }
  html.xp-menu-open .xp-top::after { pointer-events: auto; opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-out), visibility 0s; }
}

/* ---------- dialogs: chapters sheet (story mode) and the Index ---------- */
dialog { color: var(--ivory); font-family: var(--f-sans); }
dialog::backdrop { background: rgba(4, 5, 4, .66); }
.xp-close { font-family: var(--f-mono); font-size: var(--instrument); letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-2); min-height: 44px; padding: 0 .6rem; margin-right: -.6rem; }
.xp-close:hover { color: var(--ivory); }

.xp-sheet { margin: auto 0 0 0; width: 100%; max-width: none; max-height: 80svh; padding: 0 1.25rem calc(1rem + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--edge); border-radius: 14px 14px 0 0; background: #0b0c0b; overflow-y: auto; overscroll-behavior: contain; }
.sh-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; height: 3.6rem; background: #0b0c0b; }
.sh-head h2 { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: 1.25rem; letter-spacing: -.015em; }
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-list li { border-top: 1px solid var(--edge-soft); }
.sh-list button { width: 100%; display: grid; grid-template-columns: 2rem 3.4rem 1fr; align-items: baseline; gap: .6rem; text-align: left; min-height: 52px; padding: .8rem 0; }
.sh-list .n { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .08em; color: var(--ink-4); }
.sh-list .y { font-family: var(--f-display); font-size: .95rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.sh-list .t { font-family: var(--f-display); font-weight: 300; font-size: 1.2rem; letter-spacing: -.015em; }
.sh-list button[aria-current="true"] .t { color: var(--gold); }
.sh-list button[aria-current="true"] .n::before { content: "● "; color: var(--gold); }
.sh-list .sh-cat { width: .95rem; height: 1.05rem; fill: var(--gold); vertical-align: -3px; }
.sh-list .sh-group { border-top: 0; }
.sh-list .sh-group h3 { margin: 1.4rem 0 .4rem; font-family: var(--f-mono); font-size: var(--instrument); font-weight: 400; letter-spacing: var(--instrument-track); text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 1024px) and (min-height: 600px) { .xp-sheet { max-width: 28rem; margin: auto auto 0 var(--margin); } }
/* ---------- "in build": a scene page that is missing or failing ---------- */
.xp-build { position: absolute; inset: 0; overflow: hidden; background: var(--void); }
.xp-build .b-env { position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 68% 44%, color-mix(in srgb, var(--acc) 15%, transparent), transparent 62%),
  radial-gradient(50% 60% at 18% 30%, rgba(216, 173, 85, .04), transparent 60%),
  linear-gradient(145deg, #0a0b0a 0%, #0b0d0c 46%, #050605 100%); }
.xp-build .b-env::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-ink) 1px, transparent 1px), linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%); }
.xp-build .b-copy { position: absolute; left: var(--margin); top: calc(var(--top) + 9svh); width: min(36rem, 46vw); }
.xp-build p, .xp-build h1, .xp-build h2 { margin: 0; }
.b-kicker { color: var(--ink-3); margin-bottom: 1rem !important; }
.b-title { font-family: var(--f-display); font-weight: 300; font-size: var(--display-lg); line-height: .98; letter-spacing: -.04em; text-wrap: balance; outline: none; }
.b-role { font-size: var(--ui); color: var(--ink-2); margin-top: 1.1rem !important; }
.b-line { font-family: var(--f-display); font-weight: 300; font-size: var(--headline); line-height: 1.15; letter-spacing: -.02em; max-width: 24ch; margin-top: 2.2rem !important; color: var(--ivory); }
.b-status { display: flex; align-items: center; gap: .6rem; color: var(--ink-4); margin-top: 2.6rem !important; }
.b-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--placeholder); box-shadow: 0 0 10px rgba(255, 143, 202, .55); animation: xp-pulse 2s ease-in-out infinite; }
@keyframes xp-pulse { 50% { opacity: .35; transform: scale(.7); } }
.xp-build .b-fig { position: absolute; right: calc(var(--margin) + 3vw); top: 30%; width: min(34vw, 32rem); height: auto; overflow: visible; opacity: .95; }
/* loading (a slow page, not a missing one): the scene's accent instead of the placeholder pink; leaves by fading */
.xp-build--loading .b-status i { background: var(--acc); box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 60%, transparent); }
.xp-build--loading .b-status { color: var(--ink-3); }
.xp-build.is-leaving { opacity: 0; transition: opacity 240ms var(--ease-out); pointer-events: none; }
.xp-build--home .b-copy { top: calc(var(--top) + 12svh); width: min(44rem, 60vw); }
.xp-build--home .b-title { font-size: var(--display-xl); }
@media (max-width: 1023px), (max-height: 599px) {
  /* phones and tablets show the intro only while the visitor pulls: the veil is near solid, nothing of the outgoing scene reads through */
  .xp-veil[data-layout] { --vbase: rgba(var(--vg), .985); }
  .xp-build .b-copy, .xp-build--home .b-copy { top: calc(var(--top) + 2.2rem); width: auto; right: var(--margin); }
  .xp-build .b-fig { position: absolute; left: var(--margin); right: auto; top: auto; bottom: 30svh; width: min(70vw, 20rem); }
  .xp-build--home .b-title { font-size: clamp(2.9rem, 1rem + 9vw, 5rem); }
}

/* ---------- reduced motion: same states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .xp-veil { transform: none !important; }
  .xp-intro-text { transform: translate(var(--tax, 0), var(--tay, 0)) !important; }
  .xp-veil.leaving, .xp-intro.leaving .xp-fig, .xp-intro.leaving .xp-intro-text { transition: opacity 120ms linear !important; }
  .xp-nextline, .xp-floor .meta { transition: none; }
  .b-status i { animation: none; }
  .xp-head::before, .xp-steps button, .xp-prev .t, .xp-top .nav > *::after, .xp-cap i, .xp-menu-i { transition: none; }
  .xp-nav-frost, .xp-top .nav, .xp-navwrap[data-open] .nav, .xp-top::after, html.xp-menu-open .xp-top::after, .xp-top > .xp-top-glass { transition: opacity 120ms linear, visibility 0s !important; transform: none !important; }
  /* the icons hold still; the ring shows a fixed arc; the pending step is a half-tone, not a moving fill */
  .xr-wheel, .xr-chev, .xr-dot, .xr-ring-fg, .xr-ptr, .xr-rays { animation: none !important; }
  .xr-rays { opacity: .85; }
  .xr-wheel { transform: translateY(3px); opacity: 1; }
  .xr-dot { transform: translateY(-12px); opacity: 1; }
  .xr-ring-fg { stroke-dasharray: 26 74 !important; stroke-dashoffset: 0 !important; }
  .xr-track b::before { animation: none !important; transform: none !important; width: 100% !important; background: rgba(216, 173, 85, .28) !important; }
  .xr-track, .xr-track b::after { transition: none !important; }
  .xp-ready.nudge .xr-body { animation: none; }
  .xr-next, .xp-ready[data-live][data-state="end"] .xr-next { transition: none; transform: none !important; }
  .xp-ready, .xp-ready:not([data-state="off"]):not([data-state="hair"]) { transition: opacity 120ms linear, visibility 0s linear 120ms; transform: translate(var(--xr-tx), -50%) !important; }
  .xp-ready:not([data-state="off"]):not([data-state="hair"]) { transition: opacity 120ms linear, visibility 0s; }
  .xp-hair { transition: opacity 120ms linear; }
  .xp-frost, .xp-frost.on, .xp-gate.on, .xp-gate.closing, .xp-gate.leaving, .xg-box, .xp-gate.on .xg-box { transition: opacity 120ms linear !important; transform: none !important; }
  .xf-box, .xp-frost.on .xf-box { transition: none !important; transform: translate(-50%, -50%) !important; }
  .xg-go, .xp-gate.on .xg-go { transition: none !important; transform: translate(-50%, -50%) !important; }
  .xp-slot.fade-boot { transition: none; }
  .xp-preview, .xp-preview.on { transform: translate(-50%, 0); transition: opacity 120ms linear; }
  .xp-build.is-leaving { transition: opacity 120ms linear; }
}

/* ---------- forced colors ---------- */
@media (forced-colors: active) {
  .xp-hit .track, .xp-vline .v-track { background: CanvasText; }
  .xp-hit .done, .xp-vline .v-done, .xp-head::before, .xp-vline .v-head i, .xp-meter b, .xp-next-meter { background: Highlight; forced-color-adjust: none; }
  .xp-hit .node, .xp-vline .mark { border-color: CanvasText; }
  .xp-hit .tick, .xp-vline .tick, .xp-cap i { background: CanvasText; }
  .xe-box { border: 1px solid CanvasText; }
  .xr-track b::after, .xr-push, .xp-hair b { background: Highlight; forced-color-adjust: none; }
  .xr-i { stroke: CanvasText; } .xr-dot { fill: Highlight; } .xr-ring-fg, .xr-rays { stroke: Highlight; }
  .xr-next { color: ButtonText; } .xp-ready[data-state="end"][data-icon="chev"] { border-color: ButtonText; }
  .xp-glass { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .xp-frost, .xg-frost { forced-color-adjust: none; background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .xr-act button, .xg-back { border: 1px solid ButtonText; }
  .xp-veil { forced-color-adjust: none; background: Canvas; }
  /* the bar keeps a solid band here at every scroll position: system colours on whatever the view draws */
  .xp-top > .xp-top-glass { opacity: 1; border-width: 0 0 1px; box-shadow: none; }
  .xp-bar { border: 1px solid CanvasText; background: Canvas; }
  .xp-chapters::after { background: CanvasText; }
}
