/* Narrated player chrome for /research. Sits outside the deck's scaled 1920×1080 stage, so its
   sizes are real screen sizes. Colours and type come from the deck (css/deck.css). */

/* the player replaces the deck's own jump menu */
body.nx #menu{display:none!important}
body.nx-idle,body.nx-idle #stage{cursor:none}

.nx-btn,.nx-go,.nx-alt,.nx-menu button,.nx-author-panel button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.nx-kick{font-family:var(--mono);font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--chalk)}

/* ---------- bottom bar ---------- */
.nx-bar{position:fixed;left:0;right:0;bottom:0;z-index:200;padding:0 clamp(12px,2.2vw,28px) 10px;
  background:linear-gradient(180deg,rgba(2,5,3,0) 0%,rgba(2,5,3,.78) 46%,rgba(2,5,3,.94) 100%);
  transition:opacity .45s ease,transform .45s ease}
body.nx-idle .nx-bar{opacity:0;transform:translateY(10px);pointer-events:none}
body.nx-gate .nx-bar,body.nx-author .nx-bar{display:none}
.nx-track{position:relative;height:18px;cursor:pointer}
.nx-track::before{content:"";position:absolute;left:0;right:0;top:8px;height:2px;background:rgba(243,239,228,.2);border-radius:2px}
.nx-fill{position:absolute;left:0;right:0;top:8px;height:2px;background:var(--chalk);transform-origin:0 50%;transform:scaleX(0);border-radius:2px}
.nx-track:hover::before,.nx-track:hover .nx-fill{top:7px;height:4px}
.nx-ticks b{position:absolute;top:5px;width:2px;height:8px;margin-left:-1px;background:#020503}
.nx-row{display:flex;align-items:center;gap:6px;min-height:44px}
.nx-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:40px;border-radius:999px;color:var(--paper);opacity:.86;transition:opacity .2s,background .2s,color .2s}
.nx-btn:hover{opacity:1;background:rgba(243,239,228,.1)}
.nx-btn svg{width:20px;height:20px;fill:currentColor}
.nx-pp{background:var(--chalk);color:#06100b;opacity:1}
.nx-pp:hover{background:#f0ff8a}
.nx-txt{font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;padding:0 14px}
.nx-cc{opacity:.5}.nx-cc.on{opacity:1;color:var(--chalk)}
.nx-where{flex:1;min-width:0;display:flex;align-items:baseline;gap:12px;padding:0 10px;white-space:nowrap;overflow:hidden}
.nx-ch{font-family:var(--mono);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--chalk);flex:none}
.nx-sc{font-family:var(--serif);font-size:19px;color:var(--paper);overflow:hidden;text-overflow:ellipsis}
.nx-time{font-family:var(--mono);font-size:12px;letter-spacing:.08em;color:var(--dim);padding:0 8px;font-variant-numeric:tabular-nums}
body.nx-explore .nx-time{display:none}

/* "Explore at my own pace": the chapters as a strip along the bottom, in place of the time line. The bar stays up
   and the slide sits above it (narrate.js: inset()). A click on a chapter plays it; the one instruction is the
   arrow keys (owner, 2026-12-03), so the Chapters button, which the strip makes redundant, is not shown here. */
.nx-chaps{display:none}
body.nx-explore .nx-track,body.nx-explore .nx-ch,body.nx-explore .nx-bar .nx-btn[data-a="menu"]{display:none}
.nx-keys{display:none;font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:rgba(243,239,228,.72);padding:0 14px;white-space:nowrap}
body.nx-explore .nx-keys{display:block}
/* the title slide's own hint lists the journey's keys; in explore mode the bar's line is the only instruction */
body.nx-explore:not(.nx-shot) .nx-h-auto{display:none}
/* no keyboard (a phone, a tablet): the two arrow buttons in the bar do it, and need no words */
@media (hover:none),(pointer:coarse){body.nx-explore .nx-keys{display:none}}
body.nx-explore .nx-bar{background:#020503;padding-top:10px}
body.nx-explore .nx-chaps{position:relative;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}
.nx-chaps::-webkit-scrollbar{display:none}
.nx-chaps button{position:relative;flex:1 1 0;min-width:max-content;padding:10px 14px 8px 0;border:0;border-top:2px solid rgba(243,239,228,.18);background:none;cursor:pointer;
  text-align:left;white-space:nowrap;font-family:var(--sans);font-size:14px;line-height:1.2;color:var(--dim);transition:color .2s,border-color .2s}
.nx-chaps button small{display:block;margin-bottom:4px;font-family:var(--mono);font-size:10.5px;letter-spacing:.2em;color:var(--mute)}
.nx-chaps button:hover{color:var(--paper);border-top-color:rgba(243,239,228,.5)}
.nx-chaps button.done{border-top-color:rgba(227,245,107,.5)}
.nx-chaps button.on{color:var(--paper)}
.nx-chaps button.on small{color:var(--chalk)}
.nx-chaps button.on::before{content:"";position:absolute;left:0;top:-2px;height:2px;width:calc(var(--p,1)*100%);background:var(--chalk);transition:width .3s ease}
.nx-chaps button:focus-visible{outline:2px solid var(--chalk);outline-offset:-2px}
body.nx-explore .nx-cap{bottom:128px}
/* a phone held sideways: one line (arrows, the chapters, the buttons), so the slide keeps its height */
@media (max-height:520px){
  body.nx-explore .nx-bar{display:flex;align-items:center;gap:8px;padding-top:6px;padding-bottom:6px}
  body.nx-explore .nx-chaps{order:2;flex:1;min-width:0}
  body.nx-explore .nx-row{display:contents}
  body.nx-explore .nx-btn[data-a="prev"]{order:0}
  body.nx-explore .nx-btn[data-a="next"]{order:1}
  body.nx-explore .nx-row>.nx-btn:not([data-a="prev"]):not([data-a="next"]):not(.nx-pp){order:3}
  body.nx-explore .nx-where,body.nx-explore .nx-keys,body.nx-explore .nx-btn[data-a="full"]{display:none}
  .nx-chaps button{flex:none;font-size:13px;padding:8px 12px 7px 0}
  .nx-chaps button small{display:none}
  body.nx-explore .nx-cap{bottom:64px}
}

/* ---------- captions ---------- */
.nx-cap{position:fixed;left:50%;bottom:74px;z-index:190;transform:translateX(-50%);width:max-content;max-width:min(92vw,62ch);
  padding:10px 18px;border-radius:6px;background:rgba(2,5,3,.82);color:var(--paper);font-family:var(--sans);font-size:clamp(15px,1.5vw,21px);line-height:1.42;text-align:center;text-wrap:balance;pointer-events:none;transition:bottom .45s ease}
body.nx-idle .nx-cap{bottom:max(40px,5.4vh)}   /* clear of the deck's own progress rail */
/* a step whose voice clip is not recorded yet: its words are shown, with a line saying why there is no sound */
.nx-cap.nx-text::before{content:"Voice-over to follow · text for now";display:block;margin-bottom:5px;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}

/* ---------- overlays: gate, end card, chapters ---------- */
.nx-gate,.nx-end,.nx-menu{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:clamp(18px,4vw,56px);
  background:rgba(2,5,3,.8);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overflow:auto}
.nx-gate[hidden],.nx-end[hidden],.nx-menu[hidden],.nx-cap[hidden]{display:none}
.nx-gate-in{position:relative;width:min(100%,860px)}
.nx-home{display:inline-block;margin-bottom:clamp(20px,5vh,54px);font-family:var(--mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--dim);text-decoration:none}
.nx-home:hover{color:var(--chalk)}
.nx-gate h1,.nx-end h1{font-size:clamp(44px,8.4vw,112px);margin-top:18px}
.nx-lead{margin-top:clamp(16px,2.6vh,28px);max-width:44ch;font-size:clamp(17px,1.9vw,24px);line-height:1.45;color:var(--paper)}
.nx-acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin-top:clamp(24px,4.4vh,46px)}
.nx-go{display:inline-flex;align-items:center;gap:12px;height:58px;padding:0 30px 0 24px;border-radius:999px;background:var(--chalk);color:#06100b;font-family:var(--mono);font-size:15px;letter-spacing:.18em;text-transform:uppercase;transition:background .2s,transform .2s}
.nx-go:hover{background:#f0ff8a;transform:translateY(-1px)}
.nx-go svg{width:22px;height:22px;fill:currentColor}
.nx-go span:only-child{padding-left:6px}
.nx-alt{display:inline-flex;align-items:center;height:58px;padding:0 24px;border-radius:999px;border:1px solid rgba(243,239,228,.3)!important;color:var(--paper)!important;font-family:var(--mono)!important;font-size:13px!important;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;transition:border-color .2s,color .2s}
.nx-alt:hover{border-color:var(--chalk)!important;color:var(--chalk)!important}
.nx-fine{margin-top:22px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;line-height:1.6;color:var(--mute)}
.nx-fine:empty{display:none}
.nx-consent{margin-top:10px}
.nx-rot{display:none;margin-top:10px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--chalk)}
@media (orientation:portrait) and (max-width:720px){.nx-rot{display:block}}

.nx-menu{z-index:320;place-items:start center}
.nx-menu-in{width:min(100%,1180px);margin:auto 0}
.nx-menu-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.nx-chs{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:26px 34px}
.nx-chap h2{display:flex;align-items:baseline;gap:12px;margin:0 0 6px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:clamp(21px,2vw,27px)}
.nx-chap h2 small{font-family:var(--mono);font-size:12px;letter-spacing:.14em;color:var(--chalk)}
.nx-chap h2 i{margin-left:auto;font-family:var(--mono);font-style:normal;font-size:11px;letter-spacing:.08em;color:var(--mute)}
.nx-chap.on h2{color:var(--chalk)}
.nx-chap button{display:block;width:100%;text-align:left;padding:7px 0;font-family:var(--sans);font-size:16px;color:var(--dim);transition:color .15s,padding .15s}
.nx-chap button:hover{color:var(--paper);padding-left:6px}
.nx-chap button.on{color:var(--chalk)}
.nx-chap button.on::before{content:"▸ "}

@media (max-width:640px){
  .nx-btn[data-a="prev"],.nx-btn[data-a="next"],.nx-time{display:none}
  .nx-where{flex-direction:column;gap:0;align-items:flex-start}
  .nx-sc{font-size:15px;max-width:100%}
  .nx-txt{padding:0 9px;letter-spacing:.1em}
  .nx-cap{bottom:70px}
  .nx-chaps button{font-size:13px;padding:8px 12px 6px 0}
  .nx-chaps button small{display:none}
  body.nx-explore .nx-cap{bottom:104px}
}

/* ---------- authoring panel (?author) ---------- */
.nx-author-panel{position:fixed;top:0;right:0;bottom:0;width:420px;z-index:250;display:flex;flex-direction:column;gap:8px;padding:20px 20px 16px;overflow:auto;
  background:#0a1510;border-left:1px solid var(--line);font-family:var(--sans);font-size:14px;color:var(--paper)}
.nx-a-head{display:flex;justify-content:space-between;align-items:baseline}
.nx-a-head a{font-family:var(--mono);font-size:11px;letter-spacing:.1em;color:var(--dim)}
.nx-a-cue{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.nx-a-id{font-family:var(--mono);font-size:24px;font-weight:500;color:var(--chalk);letter-spacing:.02em}
.nx-a-n{font-size:13px;color:var(--dim)}
.nx-a-lab{margin-top:10px;font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--mute)}
.nx-a-on{flex:0 0 auto;max-height:62px;overflow:auto;font-size:13px;line-height:1.45;color:var(--dim)}
.nx-a-say{flex:1;min-height:120px;resize:none;padding:12px 14px;border-radius:6px;border:1px solid rgba(243,239,228,.24);background:#06100b;color:var(--paper);font:16px/1.5 var(--sans)}
.nx-a-say:focus{outline:none;border-color:var(--chalk)}
.nx-a-meta{display:flex;justify-content:space-between;align-items:center;font-family:var(--mono);font-size:11.5px;color:var(--dim)}
.nx-a-hold{width:70px;margin-left:6px;padding:4px 6px;border-radius:4px;border:1px solid rgba(243,239,228,.24);background:#06100b;color:var(--paper);font:12px var(--mono)}
.nx-a-row{display:flex;gap:8px}
.nx-a-plan{display:flex;flex-direction:column;gap:8px;margin-top:6px;padding:10px;border-radius:6px;border:1px solid var(--line)}
.nx-a-plan .nx-a-row{align-items:center}
.nx-author-panel .nx-a-plan button{flex:0 0 auto;height:32px;padding:0 10px}
.nx-a-in{flex:1;display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--paper);cursor:pointer}
.nx-a-in input{width:17px;height:17px;accent-color:var(--chalk)}
body.nx:not(.nx-author) #hud,body.nx:not(.nx-author) #rail{display:none!important}   /* the deck's own "03 / 25" counts slides that may be left out */
.nx-a-ch{flex:1;min-width:0;height:32px;padding:0 8px;border-radius:4px;border:1px solid rgba(243,239,228,.24);background:#06100b;color:var(--paper);font:13.5px var(--sans);letter-spacing:0;text-transform:none}
.nx-a-ch:focus{outline:none;border-color:var(--chalk)}
.nx-author-panel button:disabled{opacity:.35;pointer-events:none}
.nx-a-off .nx-a-id{color:var(--mute);text-decoration:line-through}
.nx-a-off .nx-a-n{color:var(--yips,#ff8a6b)}
.nx-chap button.off{text-decoration:line-through;opacity:.45}
.nx-author-panel button{flex:1;height:38px;border-radius:6px;border:1px solid rgba(243,239,228,.24);font-family:var(--mono);font-size:11.5px;letter-spacing:.06em;color:var(--paper)}
.nx-author-panel button:hover{border-color:var(--chalk);color:var(--chalk)}
.nx-a-foot{display:flex;flex-direction:column;gap:8px;margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}
.nx-a-sum{font-family:var(--mono);font-size:11.5px;color:var(--chalk)}
.nx-a-foot p{font-size:12px;line-height:1.45;color:var(--mute)}
body.nx-shot .nx-bar,body.nx-shot .nx-gate,body.nx-shot .nx-cap{display:none!important}
