/* The case files (www.epicquest.bio/wanted, blueprints/cases.py): black and white, film noir, a police archive. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-VF.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Bold.ttf"); font-weight: 700; font-display: swap; }

:root { --ink: #f2f2f2; --dim: #9a9a9a; --paper: #ecebe6; --bg: #0b0b0b; --line: #2a2a2a; --card: #141414; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 "Courier Prime", ui-monospace, monospace; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* top strip */
.strip { border-bottom: 1px solid var(--line); font: 700 12px/1 "Archivo"; font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; }
.strip .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.strip a { text-decoration: none; color: var(--dim); }
.strip a:hover { color: #fff; }

/* the case header */
.hd { padding: 28px 0 10px; }
.kick { font: 700 13px/1 "Archivo"; font-stretch: 78%; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.hd h1 { margin: 10px 0 4px; font: 900 clamp(40px, 8vw, 92px)/.86 "Archivo"; font-stretch: 72%; letter-spacing: -.01em; text-transform: uppercase; }
.hd .aka { font: 700 clamp(18px, 2.6vw, 26px)/1.15 "Archivo"; font-stretch: 82%; color: #d8d8d8; }
.hd .aka i { font-style: normal; color: var(--dim); }
.hd .log { max-width: 760px; margin: 14px 0 0; color: #cfcfcf; }
.sighted { display: inline-block; margin-top: 14px; padding: 6px 10px; border: 2px solid #fff; font: 800 13px/1 "Archivo"; font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg); }

/* the film */
#film { margin: 18px 0 8px; }
.nf-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border: 1px solid #222; user-select: none; }
.nf-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-mol { transition: opacity .5s; }
.nf-grain { image-rendering: pixelated; mix-blend-mode: screen; opacity: .9; pointer-events: none; }
.nf-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); }
.nf-blinds { position: absolute; inset: -20%; pointer-events: none; transform: rotate(-12deg); opacity: 0; transition: opacity .8s;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 26px, rgba(0,0,0,.55) 26px 44px); mix-blend-mode: multiply; }
.nf-bar { position: absolute; left: 0; right: 0; height: 6%; background: #000; z-index: 6; }
.nf-top { top: 0; } .nf-bot { bottom: 0; }
.nf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }
.nf-flash.on { animation: nfflash .45s ease-out; }
@keyframes nfflash { 0% { opacity: .95; } 100% { opacity: 0; } }
.nf-shake { animation: nfshake .35s linear; }
@keyframes nfshake { 0%,100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
.nf-cap { position: absolute; left: 7%; right: 7%; bottom: 8.5%; z-index: 7; text-align: center; pointer-events: none; }
.nf-cap span { display: inline; background: rgba(0,0,0,.72); padding: .1em .35em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  font: 400 clamp(12px, 2.1vw, 21px)/1.45 "Courier Prime"; color: #fff; }
.nf-layer { position: absolute; inset: 6% 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.nf-kicker { font: 700 clamp(9px, 1.4vw, 14px)/1 "Archivo"; font-stretch: 78%; letter-spacing: .3em; color: #bbb; margin-bottom: 1.2em; animation: nfin 1.2s ease both; }
.nf-title { margin: 0 6%; font: 900 clamp(26px, 6.4vw, 72px)/.9 "Archivo"; font-stretch: 70%; text-transform: uppercase; letter-spacing: -.005em; animation: nfflicker 2.4s steps(1) both, nfin 1.4s ease both; text-shadow: 0 0 24px rgba(255,255,255,.25); }
.nf-sub { margin-top: .8em; font: 400 clamp(11px, 1.9vw, 19px)/1.3 "Courier Prime"; color: #ccc; animation: nfin 2s ease .6s both; }
@keyframes nfin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nfflicker { 0% { opacity: .2 } 5% { opacity: 1 } 9% { opacity: .4 } 12% { opacity: 1 } 60% { opacity: .85 } 62% { opacity: 1 } }
.nf-lineup { width: 86%; height: 78%; display: flex; flex-direction: column; align-items: center; }
.nf-chart { display: flex; gap: 3%; justify-content: center; align-items: flex-end; flex: 1 1 auto; min-height: 0; width: 100%;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 2px, transparent 2px 9%); padding: 0 4%; }
.nf-shot { margin: 0; height: 100%; display: flex; flex-direction: column; opacity: 0; animation: nfslide .7s cubic-bezier(.2,.8,.2,1) both; filter: contrast(1.25) brightness(.95); }
.nf-shot img { flex: 1 1 auto; min-height: 0; height: 100%; width: auto; display: block; border: 2px solid #ddd; object-fit: contain; }
.nf-shot figcaption { flex: 0 0 auto; font: 800 clamp(9px, 1.3vw, 13px)/1.6 "Archivo"; letter-spacing: .2em; color: #ddd; text-align: left; }
@keyframes nfslide { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.nf-label { margin-top: 2%; font: 700 clamp(11px, 1.9vw, 18px)/1.2 "Courier Prime"; letter-spacing: .06em; }
.nf-card { width: min(70%, 560px); background: var(--paper); color: #111; padding: 4% 5%; text-align: left; transform: rotate(-1.6deg);
  box-shadow: 0 18px 50px rgba(0,0,0,.7); animation: nfin .6s ease both; position: relative; }
.nf-card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #222; box-shadow: 0 2px 0 #000; }
.nf-card-h { font: 900 clamp(12px, 2vw, 20px)/1 "Archivo"; font-stretch: 78%; letter-spacing: .2em; border-bottom: 2px solid #111; padding-bottom: .5em; margin-bottom: .7em; }
.nf-card-t { font: 400 clamp(11px, 1.9vw, 19px)/1.45 "Courier Prime"; min-height: 4.2em; white-space: pre-wrap; }
.nf-num { font: 900 clamp(22px, 5.6vw, 66px)/1 "Archivo"; font-stretch: 66%; letter-spacing: .01em; max-width: 92%; overflow-wrap: anywhere; }
.nf-num-l { margin-top: .9em; max-width: 80%; font: 400 clamp(11px, 1.9vw, 19px)/1.35 "Courier Prime"; color: #ddd; animation: nfin 1s ease 1.2s both; }
.nf-where { border: 3px solid #eee; padding: 2.5% 4%; background: rgba(0,0,0,.55); animation: nfin .8s ease both; max-width: 78%; }
.nf-where-k { font: 900 clamp(10px, 1.6vw, 16px)/1 "Archivo"; letter-spacing: .3em; color: #bbb; margin-bottom: .6em; }
.nf-where-p { font: 800 clamp(16px, 3.4vw, 38px)/1.08 "Archivo"; font-stretch: 76%; text-transform: uppercase; }
.nf-zoom { position: relative; width: 70%; height: 70%; }
.nf-zbox { position: absolute; left: 50%; top: 50%; border: 2px solid #eee; transform-origin: 50% 50%; transition: opacity .3s; }
.nf-zbox span { position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: nowrap; font: 700 clamp(10px, 1.6vw, 16px)/1.2 "Courier Prime"; background: #000; padding: .2em .4em; }
.nf-stampwrap { display: flex; flex-direction: column; align-items: center; }
.nf-stamp { font: 900 clamp(34px, 9vw, 108px)/.9 "Archivo"; font-stretch: 70%; text-transform: uppercase; border: .08em solid #fff; padding: .08em .2em; transform: rotate(-8deg); animation: nfstamp .45s cubic-bezier(.3,1.6,.6,1) .3s both; opacity: .95; }
@keyframes nfstamp { from { opacity: 0; transform: rotate(-8deg) scale(2.6); } to { opacity: .95; transform: rotate(-8deg) scale(1); } }
.nf-ref { margin-top: 2.2em; max-width: 78%; font: 400 clamp(9px, 1.45vw, 14px)/1.4 "Courier Prime"; color: #ddd; animation: nfin 1s ease 1s both; }
.nf-end-k { font: 900 clamp(26px, 6.6vw, 76px)/.88 "Archivo"; font-stretch: 70%; animation: nfin 1s ease both; }
.nf-end-n { margin-top: .5em; font: 800 clamp(14px, 2.6vw, 28px)/1 "Archivo"; letter-spacing: .14em; animation: nfin 1s ease .5s both; }
.nf-end-u { margin-top: .8em; font: 700 clamp(12px, 2vw, 20px)/1 "Courier Prime"; animation: nfin 1s ease 1s both; }
.nf-layer.nf-s-end { justify-content: flex-start; padding-top: 6%; }
.nf-cover { position: absolute; inset: 0; z-index: 9; border: 0; padding: 0; margin: 0; background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; font: inherit; }
.nf-cover:hover { background: rgba(0,0,0,.2); }
.nf-cover[hidden], [hidden] { display: none !important; }
.nf-cover-play { width: 2.4em; height: 2.4em; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: clamp(22px, 4vw, 40px); padding-left: .15em; }
.nf-cover-t { font: 900 clamp(18px, 4vw, 44px)/1 "Archivo"; font-stretch: 72%; text-transform: uppercase; max-width: 86%; text-shadow: 0 2px 12px #000; }
.nf-cover-d { font: 400 clamp(11px, 1.6vw, 15px)/1 "Courier Prime"; color: #ccc; }
.nf-ctrl { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.nf-b { background: none; border: 1px solid #444; color: #ddd; font: 700 12px/1 "Courier Prime"; padding: 7px 10px; cursor: pointer; }
.nf-b:hover { border-color: #fff; color: #fff; }
.nf-prog { flex: 1 1 160px; height: 6px; background: #222; cursor: pointer; }
.nf-prog-in { height: 100%; width: 0; background: #ddd; }
.nf-time { font: 400 12px/1 "Courier Prime"; color: var(--dim); min-width: 84px; text-align: right; }
@media (prefers-reduced-motion: reduce) { .nf-shake { animation: none; } .nf-title { animation: none; } }

/* the dossier */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; margin: 34px 0; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); background: var(--card); padding: 18px; }
.panel h2 { margin: 0 0 12px; font: 900 14px/1 "Archivo"; font-stretch: 78%; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.mugs { display: flex; gap: 10px; align-items: flex-end; justify-content: center; background: #0e0e0e; padding: 10px; }
.mugs figure { margin: 0; flex: 0 1 auto; }
.mugs img { display: block; max-height: 260px; max-width: 100%; filter: contrast(1.15); }
.mugs figcaption { font: 800 11px/1.8 "Archivo"; letter-spacing: .2em; color: var(--dim); }
#suspect { width: 100%; aspect-ratio: 4 / 3; display: block; background: radial-gradient(ellipse at 50% 30%, #2a2a2a, #050505 70%); cursor: grab; touch-action: none; margin-top: 12px; }
#suspect:active { cursor: grabbing; }
.hint { font-size: 12px; color: var(--dim); margin: 6px 0 0; }
dl.rap { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
dl.rap dt { font: 800 12px/1.6 "Archivo"; font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 1px; }
dl.rap dd { margin: 0; }
.charges { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.charges li { counter-increment: c; margin: 0 0 8px; padding-left: 4.6em; position: relative; }
.charges li::before { content: "COUNT " counter(c); position: absolute; left: 0; top: .15em; font: 800 11px/1.4 "Archivo"; letter-spacing: .1em; color: var(--dim); }
.big { margin: 18px 0 6px; font: 900 clamp(26px, 5vw, 48px)/1 "Archivo"; font-stretch: 66%; overflow-wrap: anywhere; }
.big + p { margin: 0; color: #cfcfcf; }
.ref { margin-top: 16px; font-size: 13px; color: #bdbdbd; border-top: 1px dashed #333; padding-top: 10px; }
.ref b { color: #fff; }
.note { margin-top: 16px; font-style: italic; color: #cfcfcf; }

/* the interrogation room */
.room { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 640px) { .room { grid-template-columns: 1fr; } .det { max-width: 140px; } }
.det { position: relative; filter: grayscale(1) contrast(1.15) brightness(.95); }
.det img { width: 100%; display: block; }
.det .pupil { position: absolute; width: 4.2%; aspect-ratio: 1; border-radius: 50%; background: #000; left: 51.4%; top: 18.3%; transform: translate(-50%, -50%); }
.det-cap { font: 700 12px/1.4 "Courier Prime"; color: var(--dim); margin-top: 6px; }
#chat-open { background: #fff; color: #000; border: 0; font: 900 18px/1 "Archivo"; font-stretch: 78%; letter-spacing: .08em; text-transform: uppercase; padding: 14px 18px; cursor: pointer; }
#chat-open:hover { background: #ddd; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ask { background: none; border: 1px solid #555; color: #ddd; font: 400 13px/1.3 "Courier Prime"; padding: 7px 10px; cursor: pointer; text-align: left; }
.ask:hover { border-color: #fff; color: #fff; }
#chat-log { height: 340px; overflow-y: auto; border: 1px solid var(--line); background: #070707; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 8px 11px; white-space: pre-wrap; }
.msg.you { align-self: flex-end; background: #ececec; color: #111; }
.msg.keltar { align-self: flex-start; border: 1px solid #444; }
.msg.thinking { color: var(--dim); }
.msg.err { border-style: dashed; color: #bbb; }
#chat-form { display: flex; gap: 8px; margin-top: 8px; }
#chat-in { flex: 1; min-width: 0; background: #0f0f0f; border: 1px solid #444; color: #fff; font: 400 15px/1.4 "Courier Prime"; padding: 10px; }
#chat-go { background: #fff; color: #000; border: 0; font: 800 14px/1 "Archivo"; padding: 0 14px; cursor: pointer; }
.fine { font-size: 12px; color: var(--dim); }

/* the poster and the way on */
.poster { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 640px) { .poster { grid-template-columns: 1fr; } }
.poster img { width: 100%; display: block; border: 1px solid #333; }
.nav { display: flex; justify-content: space-between; gap: 16px; margin: 34px 0; flex-wrap: wrap; font: 700 14px/1.3 "Archivo"; font-stretch: 82%; letter-spacing: .06em; text-transform: uppercase; }
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 18px 0 40px; font-size: 13px; color: var(--dim); }

/* the gallery */
.gal-h { padding: 34px 0 6px; }
.gal-h h1 { margin: 8px 0 6px; font: 900 clamp(46px, 10vw, 110px)/.85 "Archivo"; font-stretch: 70%; text-transform: uppercase; }
.gal-h p { max-width: 720px; color: #cfcfcf; }
.sect { margin: 34px 0 12px; font: 900 16px/1 "Archivo"; font-stretch: 78%; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line); padding-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cardl { display: block; text-decoration: none; border: 1px solid var(--line); background: var(--card); padding: 10px; position: relative; }
.cardl:hover { border-color: #888; }
.cardl .ph { height: 130px; display: flex; align-items: center; justify-content: center; background: #0d0d0d; overflow: hidden; }
.cardl .ph img { max-height: 120px; max-width: 100%; filter: contrast(1.1); }
.cardl .no { font: 800 11px/1 "Archivo"; letter-spacing: .14em; color: var(--dim); margin-top: 8px; }
.cardl .nm { font: 900 18px/1 "Archivo"; font-stretch: 74%; text-transform: uppercase; margin-top: 5px; overflow-wrap: anywhere; }
.cardl .al { font-size: 12px; color: #bdbdbd; margin-top: 3px; }
.cardl.sealed { opacity: .45; pointer-events: none; }
.cardl .seal { position: absolute; top: 14px; right: 6px; font: 900 11px/1 "Archivo"; letter-spacing: .1em; border: 2px solid #ddd; padding: 3px 5px; transform: rotate(8deg); background: #000; }
.cardl .got { position: absolute; top: 14px; left: 6px; font: 900 10px/1 "Archivo"; letter-spacing: .1em; border: 2px solid #fff; padding: 3px 5px; transform: rotate(-6deg); background: #000; }
.gap { margin-top: 28px; }

/* v2 scene types */
.nf-paper { width: min(62%, 560px); background: #e9e7e0; color: #111; padding: 2.4% 3% 3%; box-shadow: 0 20px 60px rgba(0,0,0,.8);
  animation: nfspin .9s cubic-bezier(.2,.9,.3,1) both; text-align: center; }
@keyframes nfspin { from { opacity: 0; transform: rotate(-540deg) scale(.05); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
.nf-paper-m { font: 900 clamp(10px, 1.7vw, 17px)/1 "Archivo"; font-stretch: 100%; letter-spacing: .32em; border-bottom: 3px double #111; padding-bottom: .5em; margin-bottom: .5em; }
.nf-paper-h { font: 900 clamp(20px, 4.6vw, 52px)/.92 "Archivo"; font-stretch: 66%; text-transform: uppercase; }
.nf-paper-s { margin-top: .5em; font: 700 clamp(10px, 1.6vw, 16px)/1.25 "Courier Prime"; }
.nf-paper-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; margin-top: .9em; }
.nf-paper-c div { height: 3.2em; background: repeating-linear-gradient(180deg, #9a9a9a 0 2px, transparent 2px 7px); opacity: .7; }
.nf-plot { width: min(84%, 760px); animation: nfin .5s ease both; }
.nf-plot-t { font: 800 clamp(11px, 1.8vw, 18px)/1.2 "Archivo"; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4em; }
.nf-plot-s { width: 100%; height: auto; overflow: visible; }
.nf-plot-s .ax { fill: none; stroke: #eee; stroke-width: 3; stroke-linecap: round; }
.nf-plot-s .ln { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nf-plot-s .ar { fill: none; stroke: #ccc; stroke-width: 2; }
.nf-plot-s .lab { fill: #ddd; font: 400 17px "Courier Prime"; }
.nf-plot-s .nlab { fill: #fff; font: 700 16px "Courier Prime"; transition: opacity .4s; }
.nf-plot-s .nt { transition: opacity .4s; }
.nf-eq { font: 700 clamp(14px, 2.7vw, 30px)/1.6 "Courier Prime"; text-align: left; max-width: 88%; }
.nf-eq div { min-height: 1.6em; white-space: pre-wrap; }
.nf-memo { width: min(70%, 600px); background: var(--paper); color: #111; padding: 3% 4%; text-align: left; transform: rotate(1.2deg); box-shadow: 0 18px 50px rgba(0,0,0,.7); animation: nfin .6s ease both; }
.nf-memo-h { font: 900 clamp(11px, 1.8vw, 18px)/1 "Archivo"; letter-spacing: .22em; border-bottom: 2px solid #111; padding-bottom: .5em; margin-bottom: .7em; }
.nf-memo-t { font: 400 clamp(11px, 1.9vw, 19px)/1.5 "Courier Prime"; white-space: pre-wrap; }
.nf-red { background: #111; color: transparent; transition: background .5s, color .5s; padding: 0 .1em; }
.nf-red.open { background: transparent; color: #111; text-decoration: underline; text-decoration-thickness: 2px; }
.nf-quote { max-width: 78%; animation: nfin 1s ease both; }
.nf-quote-t { font: 400 clamp(16px, 3.3vw, 38px)/1.25 "Courier Prime"; }
.nf-quote-w { margin-top: 1em; font: 700 clamp(10px, 1.5vw, 15px)/1.3 "Archivo"; letter-spacing: .12em; text-transform: uppercase; color: #bbb; }
.nf-tl { position: relative; width: 86%; height: 60%; }
.nf-tl-axis { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: #ddd; }
.nf-tl-ev { position: absolute; top: 50%; transform: translate(-50%, -100%); width: 22%; padding-bottom: 14px; opacity: 0; transition: opacity .5s, transform .5s; text-align: center; }
.nf-tl-ev::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; }
.nf-tl-ev.lo { transform: translate(-50%, 0); padding: 14px 0 0; }
.nf-tl-ev.lo::after { top: -6px; bottom: auto; }
.nf-tl-ev.on { opacity: 1; }
.nf-tl-ev b { display: block; font: 900 clamp(13px, 2.3vw, 24px)/1 "Archivo"; font-stretch: 74%; }
.nf-tl-ev span { display: block; margin-top: .3em; font: 400 clamp(9px, 1.4vw, 14px)/1.3 "Courier Prime"; color: #ddd; }
.nf-vs { display: flex; align-items: center; gap: 4%; width: 86%; }
.nf-vs-c { flex: 1; border: 2px solid #ddd; padding: 3%; text-align: left; animation: nfin .6s ease both; background: rgba(0,0,0,.45); }
.nf-vs-h { font: 900 clamp(13px, 2.4vw, 26px)/1 "Archivo"; font-stretch: 74%; text-transform: uppercase; margin-bottom: .6em; }
.nf-vs-l { font: 400 clamp(10px, 1.6vw, 16px)/1.45 "Courier Prime"; }
.nf-vs-x { font: 900 clamp(16px, 3vw, 32px)/1 "Archivo"; font-style: italic; }
.nf-layer.nf-s-outline { justify-content: flex-end; padding-bottom: 9%; }
.nf-outline-l { font: 700 clamp(11px, 1.8vw, 18px)/1.2 "Courier Prime"; background: rgba(0,0,0,.6); padding: .2em .5em; letter-spacing: .06em; }
.nf-radio { width: min(80%, 680px); text-align: left; }
.nf-wave { width: 100%; height: 60px; display: block; margin-bottom: 1em; }
.nf-radio-l { opacity: 0; transition: opacity .4s; font: 400 clamp(11px, 1.8vw, 18px)/1.5 "Courier Prime"; }
.nf-radio-l.on { opacity: 1; }
.nf-radio-l b { display: inline-block; min-width: 6.5em; color: #aaa; font-weight: 700; }
.nf-photo { margin: 0; height: 80%; display: flex; flex-direction: column; align-items: center; animation: nfkb 9s ease-out both; }
.nf-photo img { flex: 1 1 auto; min-height: 0; max-width: 90%; object-fit: contain; filter: contrast(1.2) brightness(.95); border: 2px solid #ddd; }
.nf-photo figcaption { margin-top: .6em; font: 700 clamp(10px, 1.6vw, 16px)/1.3 "Courier Prime"; }
@keyframes nfkb { from { transform: scale(1.0); } to { transform: scale(1.08); } }

.extra p { max-width: 820px; margin: 0 0 12px; color: #d8d8d8; }
.extra h2 { color: #fff; }
.srcs { margin-top: 8px; font-size: 13px; color: var(--dim); }
.srcs summary { cursor: pointer; }
.srcs ul { margin: 8px 0 0; padding-left: 18px; }
.nf-stage canvas.nf-wave { position: static; inset: auto; width: 100%; height: 60px; display: block; margin-bottom: 1em; }
.nf-layer.nf-s-plot { justify-content: flex-start; padding-top: 2.5%; }
.nf-plot { width: min(72%, 660px); }

/* v3 scene types (series): intertitle, board, receipt, clock; the cover's series kicker and the next-episode link */
.nf-cover-k { font: 700 clamp(9px, 1.4vw, 13px)/1 "Archivo"; font-stretch: 78%; letter-spacing: .3em; color: #ccc; text-transform: uppercase; }
.nf-next { position: absolute; z-index: 10; right: 3%; bottom: 9%; background: #fff; color: #000; text-decoration: none;
  font: 900 clamp(11px, 1.8vw, 18px)/1 "Archivo"; font-stretch: 78%; letter-spacing: .08em; text-transform: uppercase; padding: .7em 1em; box-shadow: 0 6px 24px rgba(0,0,0,.8); }
.nf-next:hover { background: #ddd; color: #000; }
.nf-it { width: min(74%, 720px); padding: 1.2%; border: 2px solid #ddd; animation: nfitin 1.1s ease both; }
.nf-it-b { border: 1px solid #888; padding: 6% 7%; position: relative; }
.nf-it-b::before, .nf-it-b::after { content: "◆"; position: absolute; left: 50%; transform: translateX(-50%); font-size: clamp(8px, 1.2vw, 12px); color: #ddd; background: #050505; padding: 0 .6em; }
.nf-it-b::before { top: -.7em; } .nf-it-b::after { bottom: -.7em; }
.nf-it-t { font: 700 clamp(15px, 3vw, 34px)/1.3 "Archivo"; font-stretch: 84%; letter-spacing: .02em; white-space: pre-wrap; }
.nf-it-w { margin-top: 1.1em; font: 400 clamp(10px, 1.5vw, 15px)/1 "Courier Prime"; letter-spacing: .2em; color: #aaa; text-transform: uppercase; }
@keyframes nfitin { 0% { opacity: 0; } 8% { opacity: .7; } 12% { opacity: .2; } 30% { opacity: 1; } 100% { opacity: 1; } }
.nf-layer.nf-s-board { inset: 7% 0 14%; }
.nf-board { position: relative; width: 90%; height: 100%; background:
  radial-gradient(circle at 20% 30%, rgba(255,255,255,.05), transparent 40%), repeating-linear-gradient(45deg, #1b1b1b 0 3px, #161616 3px 6px);
  border: 3px solid #3a3a3a; box-shadow: inset 0 0 40px #000; }
.nf-board-s { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.nf-str { fill: none; stroke: #d6d6d6; stroke-width: 2; opacity: .85; }
.nf-pin { position: absolute; z-index: 1; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(.6); opacity: 0;
  transition: opacity .35s, transform .45s cubic-bezier(.3,1.5,.5,1); background: #e9e7e0; padding: .35em .35em .2em; width: clamp(54px, 11vw, 118px); box-shadow: 0 6px 16px rgba(0,0,0,.8); }
.nf-pin.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1); }
.nf-pin::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 #000; z-index: 3; }
.nf-pin img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #0b0b0b; filter: contrast(1.2) grayscale(1); }
.nf-pin-l { font: 700 clamp(7px, 1.05vw, 11px)/1.15 "Courier Prime"; color: #111; text-align: center; margin-top: .25em; }
.nf-pin-note { background: #f4f2ea; }
.nf-pin-t { font: 900 clamp(10px, 1.7vw, 18px)/1.05 "Archivo"; font-stretch: 76%; color: #111; text-transform: uppercase; aspect-ratio: 1; display: grid; place-items: center; text-align: center; border: 1px solid #999; }
.nf-pin.hot { outline: 3px solid #fff; outline-offset: 3px; }
.nf-rcpt { width: min(42%, 380px); background: #f3f3ef; color: #111; padding: 4% 4.5% 6%; text-align: left; transform: rotate(1.5deg);
  box-shadow: 0 18px 50px rgba(0,0,0,.7); animation: nfrcpt .8s ease-out both; font: 400 clamp(9px, 1.55vw, 16px)/1.45 "Courier Prime";
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x; }
@keyframes nfrcpt { from { transform: translateY(-30%) rotate(1.5deg); opacity: 0; } to { transform: rotate(1.5deg); opacity: 1; } }
.nf-rcpt-h { font: 900 clamp(10px, 1.7vw, 17px)/1.1 "Archivo"; letter-spacing: .16em; text-align: center; border-bottom: 2px dashed #111; padding-bottom: .5em; margin-bottom: .5em; text-transform: uppercase; }
.nf-rcpt-l { display: flex; justify-content: space-between; gap: 1em; opacity: 0; transition: opacity .2s; }
.nf-rcpt-l.on { opacity: 1; }
.nf-rcpt-l span:last-child { text-align: right; white-space: nowrap; }
.nf-rcpt-tot { border-top: 2px dashed #111; margin-top: .4em; padding-top: .4em; font-weight: 700; }
.nf-rcpt-f { display: block; text-align: center; margin-top: .8em; font-size: .85em; }
.nf-clock { display: flex; flex-direction: column; align-items: center; height: 84%; animation: nfin .6s ease both; }
.nf-clock-s { height: 100%; width: auto; aspect-ratio: 1; overflow: visible; }
.nf-clock-s .rim { fill: rgba(0,0,0,.5); stroke: #eee; stroke-width: 1.6; }
.nf-clock-s .tk { stroke: #aaa; stroke-width: .6; } .nf-clock-s .tk.big { stroke: #fff; stroke-width: 1.4; }
.nf-clock-s .mk { fill: #fff; font: 700 6px "Courier Prime"; transition: opacity .4s; }
.nf-clock-s .hand { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.nf-clock-s .hub { fill: #fff; }
.nf-clock-l { margin-top: .5em; font: 700 clamp(10px, 1.6vw, 16px)/1.2 "Courier Prime"; letter-spacing: .06em; }

/* the series: a bar above the film, the episode guide below it, and the series on the gallery */
.series { margin: 14px 0 0; border: 1px solid var(--line); background: #0f0f0f; padding: 12px 14px; }
.series-top { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; justify-content: space-between; }
.series-k { font: 900 13px/1 "Archivo"; font-stretch: 78%; letter-spacing: .24em; text-transform: uppercase; }
.series-k a { text-decoration: none; }
.series-nav { display: flex; gap: 14px; font: 700 13px/1.3 "Archivo"; font-stretch: 82%; letter-spacing: .06em; text-transform: uppercase; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; padding: 0; list-style: none; counter-reset: ep; }
.eps li { margin: 0; }
.eps a { display: block; text-decoration: none; border: 1px solid #2c2c2c; padding: 7px 8px; height: 100%; }
.eps a:hover { border-color: #888; }
.eps .ep-n { font: 800 10px/1 "Archivo"; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.eps .ep-t { font: 900 15px/1.05 "Archivo"; font-stretch: 76%; text-transform: uppercase; margin-top: 4px; }
.eps .ep-m { font-size: 11px; color: #aaa; margin-top: 3px; }
.eps .cur a { border-color: #fff; background: #1a1a1a; }
.eps .sealed a { opacity: .45; pointer-events: none; }
.series details { margin-top: 10px; }
.series summary { cursor: pointer; font: 700 12px/1.4 "Archivo"; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.series .so-far { color: #cfcfcf; margin: 8px 0 0; max-width: 820px; }
.cast { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.cast dt { font: 800 12px/1.5 "Archivo"; font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; }
.cast dd { margin: 0; color: #cfcfcf; }
@media (max-width: 560px) { .cast { grid-template-columns: 1fr; } .cast dd { margin-bottom: 6px; } }
.gal-series { border: 1px solid #3a3a3a; background: #101010; padding: 16px; margin-top: 18px; }
.gal-series h2 { margin: 0; font: 900 clamp(28px, 5vw, 54px)/.9 "Archivo"; font-stretch: 70%; text-transform: uppercase; }
.gal-series .tag { margin: 8px 0 0; color: #d8d8d8; max-width: 760px; }
.gal-series .cards { margin-top: 14px; }
.cardl .ep { font: 800 10px/1 "Archivo"; letter-spacing: .16em; color: #fff; margin-top: 8px; text-transform: uppercase; }
.nf-board.few .nf-pin { width: clamp(80px, 17vw, 190px); }
.nf-board.few .nf-pin-l { font-size: clamp(9px, 1.4vw, 14px); }
.nf-eq.long { font-size: clamp(11px, 2.2vw, 24px); line-height: 1.5; }
.nf-layer.nf-s-equation { padding-bottom: 7%; }
.nf-memo.long { width: min(78%, 680px); padding: 2.2% 3.2%; }
.nf-memo.long .nf-memo-t { font-size: clamp(9px, 1.5vw, 15px); line-height: 1.4; }
.nf-layer.nf-s-memo { padding-bottom: 9%; }
.nf-layer.nf-s-clock { justify-content: flex-start; padding-top: 1.5%; }
.nf-clock { height: 70%; }
.nf-layer.nf-s-photo { justify-content: flex-start; padding-top: 1.5%; }
.nf-layer.nf-s-photo .nf-photo { height: 74%; }

/* The Demon Job: the film page, and the film block on its cast's case files (blueprints/cases.py films()) */
.film-player{margin:18px 0 8px}
.film-frame{position:relative;width:100%;padding-top:56.25%;background:#000;border:1px solid #2a2a2a}
.film-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.film-in,.gal-film{display:grid;grid-template-columns:minmax(0,320px) 1fr;gap:22px;align-items:center}
.gal-film{margin:26px 0 14px}
.film-thumb{position:relative;display:block;aspect-ratio:16/9;background:#000;border:1px solid #333;overflow:hidden}
.film-thumb img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);display:block}
.film-thumb .play{position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:50%;background:rgba(0,0,0,.6);border:2px solid #ddd}
.film-thumb .play::after{content:"";position:absolute;left:22px;top:16px;border-left:18px solid #eee;border-top:12px solid transparent;border-bottom:12px solid transparent}
.btn{display:inline-block;padding:8px 14px;border:1px solid #bbb;color:#eee;text-decoration:none}
.btn:hover{background:#eee;color:#111}
.film-cast{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.film-cast li{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:start}
.film-cast img,.film-cast .blank{width:64px;height:64px;object-fit:contain;background:#111;display:block}
.film-cast .who{font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.film-cast .what{font-size:.9em;opacity:.85}
.film-cast .links{font-size:.85em;margin-top:2px}
.film-ch{columns:2;column-gap:28px;margin:0;padding-left:18px}
.film-ch li{break-inside:avoid;margin:3px 0}
.film-ch span{font-family:"Courier Prime",monospace;opacity:.75;margin-right:6px}
@media (max-width:680px){.film-in,.gal-film{grid-template-columns:1fr}.film-ch{columns:1}}
