/* Loading transition of the Experiments pages (x/lt.js): one screen, the same on every page of the section.
   Coming to a page: the screen is fixed over the page in the section's --paper. In its centre the GoldenLlama mark
   is shown the way a mark is constructed: the circles and the axes it is built on, dashed and dotted, running past
   the mark; over them the mark itself as a thin outline, hatched inside. Under it one line, "Loading" and the name
   of the page, with a glint that runs along its letters for as long as the screen stands. The screen waits for the
   fonts and the pictures of the first screen, then clears and the first screen comes in.
   The ground and the line are the page's own markup (#lt > .lt-bg, .lt-cap), so they are there from the first
   frame, before lt.js is read; lt.js adds the construction (.lt-c). From the portfolio the ground first flows from
   the portfolio's paper (--lt-from, set by the early script in <head>: #faf7ee as the browser shows it, #1e201d in
   its dark theme); from a page of the section and by a direct address it stands in --paper.
   Leaving a page: only a short close, the plain ground comes over the page (--lt-to: --paper inside the section, the
   portfolio's paper on the way out) and the address changes. Nothing is drawn there, so nothing is drawn twice.
   Nothing here has a size in the page, so the page's height and width never move.
   Without JS, with prefers-reduced-motion and on a return by Back, html never gets .lt-on and the screen is not shown.
   On the screen only opacity, background-color, stroke-dashoffset and the glint's background-position move; what it
   brings in of the first screen (.lt-rv) moves transform and filter too. No solid fills, no shadows, no percentages,
   no progress bar: the screen waits for the real thing, it does not count. */
/* The portfolio turns the browser's own cross-document transition on (play.css, @view-transition navigation:auto).
   That transition runs only when both documents ask for it; the pages of this section do not, and say so, so on the
   way into the section and out of it only this screen moves. */
@view-transition{navigation:none}
/* --w is the side of the mark's 512-unit square on the screen. The other four are screen sizes in the units of
   that square: --px one pixel, --w2 the outline (1.2 px), --dash and --gap the dashes of the circles (4 and 3.5 px);
   the dots of the axes are one pixel long, --gap apart. */
.lt{display:none;--w:384px;--px:1.333px;--w2:1.6px;--dash:5.33px;--gap:4.67px}
/* Before <body> is read the window is already the ground we came from. */
html.lt-on:not(.lt-live){background:var(--lt-from,var(--paper))}
html.lt-on .lt,html.lt-exit .lt{display:block;position:fixed;inset:0;z-index:100;overflow:hidden;color:var(--ink);-webkit-user-select:none;user-select:none}
html.lt-out .lt{pointer-events:none}
/* Leaving: the close. .lt-cut: the screen was still over the page when the link was pressed, it closes at once. */
html.lt-exit .lt{background:var(--lt-to,var(--paper));animation:lt-cover .22s linear both}
html.lt-exit.lt-cut .lt{animation:none}
@keyframes lt-cover{from{opacity:0}to{opacity:1}}
/* One full stop, one pixel high and next to clear, there from the first frame. The browser keeps the page we came
   from on the screen until the new page has painted some content (text or a picture), and a plain ground is not
   content: without it the page we came from stood still for up to a second and a half and the screen was never seen. */
html.lt-on .lt::before{content:'.';position:absolute;left:0;top:0;z-index:1;font:1px/1 sans-serif;color:var(--line);opacity:.02}

/* The ground: from the first frame, without lt.js. From the portfolio it flows from the portfolio's paper. */
.lt-bg{position:absolute;inset:0;background:var(--paper);animation:lt-ground .4s cubic-bezier(.4,0,.2,1) backwards}
@keyframes lt-ground{from{background-color:var(--lt-from,var(--paper))}}
html.lt-out .lt-bg{opacity:0;transition:opacity .26s linear}

/* The line under the mark: the page's sans, the second ink; the glint is the first ink and runs from left to right,
   then the line stands even for a moment, and again. The two full stops take turns. */
.lt-cap{position:absolute;left:0;right:0;top:calc(50% + var(--w)/2 + 20px);margin:0;text-align:center;font:400 14px/20px var(--sans);letter-spacing:-.01em;white-space:nowrap;color:var(--muted);animation:lt-cap-in .3s linear .1s backwards}
.lt-cap span{display:inline-block;padding:0 2px;color:transparent;background:linear-gradient(100deg,var(--muted) 0,var(--muted) 43%,var(--ink) 50%,var(--muted) 57%,var(--muted) 100%) 100% 0/300% 100% no-repeat;-webkit-background-clip:text;background-clip:text;animation:lt-shine 2s linear infinite}
.lt-cap i{font-style:normal;animation:lt-dot 1.2s ease-in-out infinite}
.lt-cap i+i{animation-delay:.6s}
@keyframes lt-cap-in{from{opacity:0}}
@keyframes lt-shine{from{background-position:100% 0}to{background-position:0 0}}
@keyframes lt-dot{50%{opacity:.25}}

/* The drawing (lt.js): the mark's own square, 512 units, centred in the window on whole pixels. .lt-k the
   construction (.lt-ci a circle, dashed; .lt-ax an axis, dotted), each shown through a mask whose line is drawn
   along it; .lt-h the hatching, 45 degrees, inside the head and the ears and not inside the inner ears, the eyes and
   the nose; .lt-o the outline. Everything a line (.lt-d) is drawn with stroke-dashoffset, once. */
.lt-c{position:absolute;inset:0}
.lt-wire{position:absolute;left:calc(var(--cx) - var(--w)/2);top:calc(var(--cy) - var(--w)/2);width:var(--w);height:var(--w);overflow:visible}
.lt-k path,.lt-h path,.lt-o path{fill:none;stroke-linejoin:round}
.lt-k path{stroke:var(--muted);stroke-width:var(--px)}
.lt-ci{stroke-dasharray:var(--dash) var(--gap);opacity:.6}
.lt-ax{stroke-dasharray:var(--px) var(--gap);opacity:.6}
.lt-h path{stroke:var(--muted);stroke-width:var(--px);opacity:.42}
.lt-o path{stroke:currentColor;stroke-width:var(--w2);stroke-linecap:round;opacity:.9}
.lt-d{stroke-dasharray:1 2;stroke-dashoffset:1.02}
.lt-go .lt-d{animation:lt-draw var(--t,.38s) cubic-bezier(.45,0,.3,1) var(--a,0s) both}
.lt-go .lt-h .lt-d{animation-duration:.2s;animation-timing-function:linear}
@keyframes lt-draw{to{stroke-dashoffset:0}}
html.lt-out .lt-c,html.lt-out .lt-cap{opacity:0;transition:opacity .24s linear}

/* The first screen comes in from under the screen: the blocks' own move (case.css, .rv), shorter, so that the whole
   transition is over in 1.0-1.4 s. lt.js puts the classes on what stands in the window and takes them off after. */
.lt-rv{opacity:0;filter:blur(10px);transform:translateY(12px);will-change:opacity,filter,transform}
.lt-rv.lt-rv-in{opacity:1;filter:blur(0);transform:none;transition:opacity .42s cubic-bezier(.45,0,.3,1) var(--rv-d,0ms),filter .38s cubic-bezier(.3,0,.3,1) var(--rv-d,0ms),transform .38s cubic-bezier(.22,1,.36,1) var(--rv-d,0ms)}

@media(max-width:900px),(max-height:560px){
  .lt{--w:264px;--px:1.939px;--w2:2.327px;--dash:6.79px;--gap:6.79px}
}
@media print{.lt{display:none!important}}
