/* AI Trimind News — the front page's loading screen: the newest issue on the typewriter, on the edge of the desk, the
   street dim behind it. Only transform and opacity move, so it keeps time while the stand's start holds the page.
   tools/typewriter.mjs appends the timeline of this issue's words. */
@font-face { font-family: Typed; src: url(/fonts/courier-prime-400.woff2) format('woff2'); font-display: block; }
.pl { --w: min(660px, 90vw, calc(70svh * 1.301)); position: fixed; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 11svh; background: rgba(12, 13, 18, .8); opacity: .01; animation: pl-in .22s linear forwards, pl-gone 0s linear 11s forwards; }
/* from 1 %, not from nothing: a browser counts nothing painted under opacity 0 as the page's largest paint, and the
   machine, on screen from the first half second, was recorded only when its strike stopped, five seconds in */
@keyframes pl-in { from { opacity: .01; } to { opacity: 1; } }
@keyframes pl-gone { to { visibility: hidden; } }
.pl-desk { position: absolute; left: 0; right: 0; bottom: 0; height: 19svh; background: linear-gradient(#17130f, #0b0907); border-top: 2px solid #2e261c; }
/* the margin rule on the desk: a strip torn off a typing sheet, red up to what has arrived */
.pl-rule { position: absolute; left: 50%; bottom: 1.9svh; width: min(calc(var(--w) * .82), 86vw); padding: 7px 16px 8px; display: flex; flex-wrap: wrap; justify-content: space-between; background: #e9e5da; color: #1d1c1a; font: 400 clamp(12px, 1.9svh, 16px) / 1.2 Typed, "Courier New", monospace; transform: translate3d(-50%, 0, 0) rotate(-.6deg); clip-path: polygon(0 6%, 1.2% 0, 98.6% 4%, 100% 0, 99.2% 34%, 100% 62%, 99% 100%, 1.4% 96%, 0 100%, .8% 58%, 0 30%); }
.pl-pct { font-weight: 400; color: #9e2a1f; }
.pl-scale { position: relative; flex: 1 0 100%; height: 9px; margin-top: 5px; overflow: hidden; box-shadow: inset 0 -1px #1d1c1a; }
.pl-scale::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #1d1c1a 0 1px, transparent 1px 10%) 0 0 / 100% 100%, repeating-linear-gradient(90deg, rgba(29, 28, 26, .55) 0 1px, transparent 1px 2%) 0 100% / 100% 45% no-repeat; }
.pl-fill { position: absolute; inset: 0; background: #9e2a1f; transform: translate3d(-100%, 0, 0); transition: transform .3s linear; animation: pl-start 7.9s linear forwards; will-change: transform; }
/* until the script arrives to say how far the page has come, the clock to the moment the page opens whatever has come */
@keyframes pl-start { to { transform: translate3d(0, 0, 0); } }
.pl-machine { position: relative; width: var(--w); aspect-ratio: 808 / 621; font: 400 calc(var(--w) * 24 / 808) / 1.25 Typed, "Courier New", monospace; }
.pl-machine img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-carriage, .pl-sheet { position: absolute; inset: 0; }
.pl-carriage { animation: pl-car 9s step-end forwards; will-change: transform; }
.pl-body { animation: pl-strike .17s steps(2, end) infinite; }
@keyframes pl-strike { 50% { transform: translate3d(0, .35%, 0); } }
/* the type guide's arm comes up to the paper at each stroke */
.pl-arm { position: absolute; left: 50.3%; top: 27.6%; width: .55%; height: 11%; border-radius: 2px; background: #1d1c1a; transform-origin: 50% 100%; animation: pl-arm .17s steps(2, end) infinite; }
@keyframes pl-arm { 50% { transform: scaleY(.3); } }
.pl-lines { position: absolute; left: 32.3%; top: 24.2%; color: #1d1c1a; white-space: pre; animation: pl-feed 9s step-end forwards; will-change: transform; }
.pl-lines .pl-red { color: #9e2a1f; }
.pl-lines i { font-style: normal; opacity: 0; animation: pl-type 1ms linear forwards; }
.pl-lines i:nth-child(3n) { color: #3b3833; }
.pl-lines .pl-red i:nth-child(3n) { color: #b43a2d; }
.pl-lines i:nth-child(5n + 2) { position: relative; top: .03em; }
.pl-lines i:nth-child(7n + 3) { position: relative; top: -.04em; }
@keyframes pl-type { to { opacity: 1; } }
/* typed: the keys stop for a beat before the sheet goes */
.pl.typed .pl-body, .pl.typed .pl-arm { animation: none; }
/* done: the sheet is pulled out of the machine, the machine goes down off the desk, the street comes up */
.pl.yank { background: transparent; transition: background .45s linear; }
.pl.yank .pl-desk, .pl.yank .pl-machine { transform: translate3d(0, 92svh, 0); transition: transform .5s cubic-bezier(.55, 0, .8, .4); }
.pl.yank .pl-sheet { transform: translate3d(0, -230svh, 0) rotate(-5deg); transition: transform .5s cubic-bezier(.4, 0, .7, .3); }
@media (prefers-reduced-motion: reduce) {
  .pl { animation: pl-in .01s linear forwards, pl-gone 0s linear 11s forwards; }
  .pl-carriage, .pl-lines, .pl-body, .pl-arm { animation: none; }
  .pl-fill { transition: none; }
  .pl-lines i { opacity: 1; animation: none; }
  .pl.yank { opacity: 0; transition: opacity .15s linear; }
  .pl.yank .pl-desk, .pl.yank .pl-machine, .pl.yank .pl-sheet { transform: none; transition: none; }
}
@keyframes pl-car{0%{transform:translate3d(18.19%,0,0)}0.000%{transform:translate3d(16.41%,0,0)}0.566%{transform:translate3d(14.63%,0,0)}1.428%{transform:translate3d(12.85%,0,0)}2.112%{transform:translate3d(11.06%,0,0)}3.009%{transform:translate3d(9.28%,0,0)}3.664%{transform:translate3d(7.50%,0,0)}4.527%{transform:translate3d(5.72%,0,0)}5.610%{transform:translate3d(3.94%,0,0)}6.420%{transform:translate3d(2.15%,0,0)}7.450%{transform:translate3d(0.37%,0,0)}8.187%{transform:translate3d(-1.41%,0,0)}9.144%{transform:translate3d(-3.19%,0,0)}10.330%{transform:translate3d(-4.98%,0,0)}11.208%{transform:translate3d(-6.76%,0,0)}12.316%{transform:translate3d(-8.54%,0,0)}13.486%{transform:translate3d(-8.54%,0,0);animation-timing-function:linear}16.755%{transform:translate3d(18.19%,0,0);animation-timing-function:step-end}17.140%{transform:translate3d(16.41%,0,0)}18.196%{transform:translate3d(14.63%,0,0)}19.494%{transform:translate3d(12.85%,0,0)}20.451%{transform:translate3d(11.06%,0,0)}21.651%{transform:translate3d(9.28%,0,0)}22.502%{transform:translate3d(7.50%,0,0)}24.288%{transform:translate3d(7.50%,0,0);animation-timing-function:linear}27.557%{transform:translate3d(18.19%,0,0);animation-timing-function:step-end}27.942%{transform:translate3d(16.41%,0,0)}29.318%{transform:translate3d(14.63%,0,0)}30.329%{transform:translate3d(12.85%,0,0)}31.594%{transform:translate3d(11.06%,0,0)}32.490%{transform:translate3d(9.28%,0,0)}33.641%{transform:translate3d(7.50%,0,0)}35.052%{transform:translate3d(5.72%,0,0)}36.088%{transform:translate3d(3.94%,0,0)}37.384%{transform:translate3d(2.15%,0,0)}38.300%{transform:translate3d(0.37%,0,0)}39.478%{transform:translate3d(-1.41%,0,0)}40.919%{transform:translate3d(-3.19%,0,0)}41.977%{transform:translate3d(-4.98%,0,0)}43.300%{transform:translate3d(-6.76%,0,0)}44.235%{transform:translate3d(-8.54%,0,0)}45.436%{transform:translate3d(-10.32%,0,0)}46.905%{transform:translate3d(-12.10%,0,0)}47.983%{transform:translate3d(-13.89%,0,0)}50.460%{transform:translate3d(-13.89%,0,0);animation-timing-function:linear}53.729%{transform:translate3d(18.19%,0,0);animation-timing-function:step-end}54.114%{transform:translate3d(16.41%,0,0)}55.078%{transform:translate3d(14.63%,0,0)}56.315%{transform:translate3d(12.85%,0,0)}57.828%{transform:translate3d(11.06%,0,0)}58.937%{transform:translate3d(9.28%,0,0)}60.322%{transform:translate3d(7.50%,0,0)}61.301%{transform:translate3d(5.72%,0,0)}62.556%{transform:translate3d(3.94%,0,0)}64.091%{transform:translate3d(2.15%,0,0)}65.216%{transform:translate3d(0.37%,0,0)}66.621%{transform:translate3d(-1.41%,0,0)}67.612%{transform:translate3d(-3.19%,0,0)}68.885%{transform:translate3d(-4.98%,0,0)}71.802%{transform:translate3d(-4.98%,0,0);animation-timing-function:linear}75.072%{transform:translate3d(18.19%,0,0);animation-timing-function:step-end}75.456%{transform:translate3d(16.41%,0,0)}76.606%{transform:translate3d(14.63%,0,0)}78.042%{transform:translate3d(12.85%,0,0)}79.056%{transform:translate3d(11.06%,0,0)}80.356%{transform:translate3d(9.28%,0,0)}81.944%{transform:translate3d(7.50%,0,0)}83.108%{transform:translate3d(5.72%,0,0)}84.560%{transform:translate3d(3.94%,0,0)}85.584%{transform:translate3d(2.15%,0,0)}86.899%{transform:translate3d(0.37%,0,0)}88.504%{transform:translate3d(-1.41%,0,0)}89.680%{transform:translate3d(-3.19%,0,0)}91.147%{transform:translate3d(-4.98%,0,0)}92.182%{transform:translate3d(-6.76%,0,0)}93.510%{transform:translate3d(-8.54%,0,0)}95.132%{transform:translate3d(-10.32%,0,0)}96.319%{transform:translate3d(-12.10%,0,0)}97.801%{transform:translate3d(-13.89%,0,0)}98.846%{transform:translate3d(-15.67%,0,0)}100%{transform:translate3d(-15.67%,0,0)}}@keyframes pl-feed{0%{transform:translate3d(0,0,0)}16.755%{transform:translate3d(0,-1.25em,0)}27.557%{transform:translate3d(0,-2.50em,0)}53.729%{transform:translate3d(0,-3.75em,0)}75.072%{transform:translate3d(0,-5.00em,0)}100%{transform:translate3d(0,-5.00em,0)}}.pl-lines i.k0{animation-delay:0ms}.pl-lines i.k1{animation-delay:29ms}.pl-lines i.k2{animation-delay:74ms}.pl-lines i.k3{animation-delay:110ms}.pl-lines i.k4{animation-delay:156ms}.pl-lines i.k5{animation-delay:191ms}.pl-lines i.k6{animation-delay:235ms}.pl-lines i.k7{animation-delay:292ms}.pl-lines i.k8{animation-delay:334ms}.pl-lines i.k9{animation-delay:387ms}.pl-lines i.k10{animation-delay:426ms}.pl-lines i.k11{animation-delay:476ms}.pl-lines i.k12{animation-delay:537ms}.pl-lines i.k13{animation-delay:583ms}.pl-lines i.k14{animation-delay:640ms}.pl-lines i.k15{animation-delay:891ms}.pl-lines i.k16{animation-delay:946ms}.pl-lines i.k17{animation-delay:1014ms}.pl-lines i.k18{animation-delay:1063ms}.pl-lines i.k19{animation-delay:1126ms}.pl-lines i.k20{animation-delay:1170ms}.pl-lines i.k21{animation-delay:1453ms}.pl-lines i.k22{animation-delay:1525ms}.pl-lines i.k23{animation-delay:1577ms}.pl-lines i.k24{animation-delay:1643ms}.pl-lines i.k25{animation-delay:1689ms}.pl-lines i.k26{animation-delay:1749ms}.pl-lines i.k27{animation-delay:1823ms}.pl-lines i.k28{animation-delay:1877ms}.pl-lines i.k29{animation-delay:1944ms}.pl-lines i.k30{animation-delay:1992ms}.pl-lines i.k31{animation-delay:2053ms}.pl-lines i.k32{animation-delay:2128ms}.pl-lines i.k33{animation-delay:2183ms}.pl-lines i.k34{animation-delay:2252ms}.pl-lines i.k35{animation-delay:2300ms}.pl-lines i.k36{animation-delay:2363ms}.pl-lines i.k37{animation-delay:2439ms}.pl-lines i.k38{animation-delay:2495ms}.pl-lines i.k39{animation-delay:2814ms}.pl-lines i.k40{animation-delay:2864ms}.pl-lines i.k41{animation-delay:2928ms}.pl-lines i.k42{animation-delay:3007ms}.pl-lines i.k43{animation-delay:3065ms}.pl-lines i.k44{animation-delay:3137ms}.pl-lines i.k45{animation-delay:3188ms}.pl-lines i.k46{animation-delay:3253ms}.pl-lines i.k47{animation-delay:3333ms}.pl-lines i.k48{animation-delay:3391ms}.pl-lines i.k49{animation-delay:3464ms}.pl-lines i.k50{animation-delay:3516ms}.pl-lines i.k51{animation-delay:3582ms}.pl-lines i.k52{animation-delay:3924ms}.pl-lines i.k53{animation-delay:3984ms}.pl-lines i.k54{animation-delay:4058ms}.pl-lines i.k55{animation-delay:4111ms}.pl-lines i.k56{animation-delay:4179ms}.pl-lines i.k57{animation-delay:4261ms}.pl-lines i.k58{animation-delay:4322ms}.pl-lines i.k59{animation-delay:4397ms}.pl-lines i.k60{animation-delay:4450ms}.pl-lines i.k61{animation-delay:4519ms}.pl-lines i.k62{animation-delay:4602ms}.pl-lines i.k63{animation-delay:4663ms}.pl-lines i.k64{animation-delay:4740ms}.pl-lines i.k65{animation-delay:4793ms}.pl-lines i.k66{animation-delay:4863ms}.pl-lines i.k67{animation-delay:4947ms}.pl-lines i.k68{animation-delay:5009ms}.pl-lines i.k69{animation-delay:5086ms}.pl-lines i.k70{animation-delay:5140ms}.pl-carriage,.pl-lines{animation-duration:5200ms}@media (prefers-reduced-motion:reduce){.pl-carriage{transform:translate3d(-15.67%,0,0)}.pl-lines{transform:translate3d(0,-5.00em,0)}}
