/* HOME: one real piece on its own colour ground, and "I'm a ___." in a different typeface every cut.
   Built 2026-12-02 from the mock at ~/mug5-co-review/preview/home. Cuts only, never a fade. Nothing with words on it is ever tilted. */
body:has(.m5h){overflow:hidden!important}
body:has(.m5h) .site-footer{display:none!important}
body:has(.m5h) .site-header{position:fixed!important;top:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
.m5h{display:none}
body.mug5p-on .m5h{display:block;position:fixed;inset:0;z-index:5;overflow:hidden;background:var(--bg,#0c0c0e);color:var(--ink,#fff);font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;letter-spacing:0;text-transform:none;text-align:left;-webkit-font-smoothing:antialiased;user-select:none;-webkit-user-select:none}
.m5h *{box-sizing:border-box}
.m5h :where(h1,h2,p,ul,li,a,i,b,button){margin:0;padding:0;border:0;background:none;font:inherit;letter-spacing:inherit;text-transform:none;color:inherit;max-width:none;text-shadow:none;list-style:none;font-style:normal;text-decoration:none;box-shadow:none}
.m5h a,.m5h a:hover{text-decoration:none!important;color:inherit!important}
.m5h img{max-width:none;border-radius:0}
/* kept for readers without scripts and for search engines; out of sight once the page runs */
.m5h-plain{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.m5h:not(.is-on) .m5h-plain{position:static;width:auto;height:auto;clip-path:none;padding:140px 60px;font:600 16px/1.6 ui-monospace,Menlo,monospace}
/* the picture: framed on its colour and BIG (Chris, 2026-12-02, on nearly every cut he marked: "bigger art", "WAY bigger art") */
.m5h-fr{position:absolute;display:grid;place-items:center;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.m5h-fr a{display:contents}
.m5h-fr img{max-width:var(--ps,100%);max-height:var(--ps,100%);width:auto;height:auto;display:block;box-shadow:0 30px 60px -28px rgba(0,0,0,.55);transform:scale(var(--z,1));cursor:pointer}
/* the line: "I'm a" and the word are ONE sentence in ONE typeface, the same size, read in order, always set left
   (Chris, 2026-12-02: "I'm A on all need to be BEFORE the word", "I'm a coder all one font", "same font and size", "I'm a closer to producer") */
.m5h-ty{position:absolute;z-index:3;pointer-events:none;text-align:left}
.m5h .m5h-noun{margin:0;line-height:.9;white-space:nowrap;display:inline-block;transform-origin:left bottom}
.m5h .m5h-verb{display:block}
.m5h-noun a{pointer-events:auto}
.m5h .m5h-noun i{display:inline-block;overflow:hidden;vertical-align:bottom;padding:.34em .22em .36em;margin:-.34em -.22em -.36em}
.m5h .m5h-noun i b{display:inline-block;font-weight:inherit;animation:m5hup .34s cubic-bezier(.2,.9,.2,1) both;animation-delay:calc(var(--n) * 34ms)}
@keyframes m5hup{from{transform:translateY(165%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.m5h .m5h-noun i b{animation:none}}
.m5h .m5h-cap{font:600 12px/1.4 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;margin:max(20px,2.6vh) 0 0;opacity:.8}
/* landscape pictures (films, screens, book pictures): the picture takes most of the screen, the sentence sits clear of it */
.m5h.W0 .m5h-fr{left:28vw;right:60px;top:13vh;bottom:30vh;place-items:start end}.m5h.W0 .m5h-ty{left:60px;bottom:8.5vh}
.m5h.W1 .m5h-fr{left:28vw;right:60px;top:42vh;bottom:9vh;place-items:end end}.m5h.W1 .m5h-ty{left:60px;top:13vh}.m5h.W1 .m5h-noun{transform-origin:left top}
.m5h.W2 .m5h-fr{left:60px;right:18vw;top:13vh;bottom:39vh;place-items:start start}.m5h.W2 .m5h-ty{left:60px;bottom:8.5vh}
/* square and upright pictures (covers, art): the picture runs the height of the screen, the sentence beside it */
.m5h.L0 .m5h-fr{left:36vw;right:60px;top:12vh;bottom:9vh;place-items:center end}.m5h.L0 .m5h-ty{left:60px;bottom:8.5vh}
.m5h.L1 .m5h-fr{left:60px;right:36vw;top:12vh;bottom:9vh;place-items:center start}.m5h.L1 .m5h-ty{left:var(--tx,56vw);top:15vh}.m5h.L1 .m5h-noun{transform-origin:left top}
.m5h.L3 .m5h-fr{left:60px;right:36vw;top:12vh;bottom:9vh;place-items:center start}.m5h.L3 .m5h-ty{left:var(--tx,56vw);bottom:8.5vh}
/* art only: edge to edge top and bottom, the sentence over it (Chris: "Could be full bleed top and bottom on this one") */
.m5h.L2 .m5h-fr{left:30vw;right:0;top:0;bottom:0;place-items:center end}.m5h.L2 .m5h-fr img{box-shadow:none}.m5h.L2 .m5h-ty{left:60px;bottom:8.5vh}
.m5h.is-big .m5h-fr{left:12vw;right:4vw;top:14vh;bottom:10vh}.m5h.is-big .m5h-ty{left:60px;bottom:8.5vh}
/* the picture, any film and the sentence share one layer. With "iso" the sentence only changes colour where it crosses the picture and stays white on the ground
   (the look Chris approved on Saltkin and Paradise Circus); without it the ground colours the sentence too */
.m5h-st{position:absolute;inset:0}.m5h.iso .m5h-st{isolation:isolate}
/* art-directed cuts (a piece's own "x" in home.json): the picture box and the sentence are placed by numbers, see home.js */
.m5h.X .m5h-fr{place-items:center}
.m5h.X.is-cover .m5h-fr img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;box-shadow:none}
.m5h.X .m5h-ty{right:auto;bottom:auto}.m5h.X .m5h-noun{transform-origin:left top}.m5h.X .m5h-cap{white-space:nowrap}
.m5h.v-sm .m5h-verb{position:absolute;left:0;font:600 21.6px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.3em;text-transform:uppercase;white-space:nowrap}
.m5h.v-in .m5h-verb{display:inline}
.m5h .m5h-bl{display:inline-block;width:0;height:0;overflow:hidden;vertical-align:baseline}
/* "can the text glitch somehow" (Chris, on the animator cut): the sentence jumps sideways in hard steps, never slanted */
.m5h.fx-glitch .m5h-noun{animation:m5hgl 1.7s steps(1) infinite;text-shadow:.035em 0 #ff2a6d,-.035em 0 #05d9e8}
@keyframes m5hgl{0%,100%{transform:none;clip-path:none}8%{transform:translateX(-.06em);clip-path:inset(0 0 55% 0)}11%{transform:translateX(.05em);clip-path:inset(40% 0 0 0)}14%{transform:none;clip-path:none}52%{transform:translateX(.04em);clip-path:inset(20% 0 38% 0)}55%{transform:translateX(-.03em);clip-path:none}58%{transform:none}}
@media (prefers-reduced-motion:reduce){.m5h.fx-glitch .m5h-noun{animation:none}}
/* where the sentence may cross an artwork it takes its colour from what is under it, so it always reads */
.m5h.is-over .m5h-ty{mix-blend-mode:difference;color:#fff}
/* a film, playing silent exactly over its still; shown only once it is really moving */
.m5h-vids{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.m5h .m5h-vid{position:absolute;left:-200vw;top:0;width:640px;height:360px;border:0;visibility:hidden;pointer-events:none;background:#000;overflow:hidden}
.m5h .m5h-vid iframe{position:absolute;left:0;top:0;width:100%;height:100%;border:0;max-width:none}
.m5h .m5h-vid video{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;max-width:none}
.m5h .m5h-vid.on{visibility:visible}
/* the five doors along the bottom: tap one to jump to a piece from it */
.m5h-ticks{position:absolute;left:60px;right:60px;bottom:2.4vh;z-index:7;display:flex;gap:8px}
.m5h .m5h-ticks button{flex:1;min-width:0;border-top:4px solid currentColor;opacity:.3;cursor:pointer;text-align:left;padding:9px 0 4px;font:600 11px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;border-radius:0}
.m5h .m5h-ticks button:hover{opacity:.7}.m5h .m5h-ticks button.on{opacity:1}
/* the typeface number, only when I ask for it (?fno=1), so one can be called out and axed */
.m5h-fno{position:absolute;left:50%;top:40px;transform:translateX(-50%);z-index:8;font:600 13px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;background:#0c0c0e;color:#fff;padding:8px 12px;border-radius:999px;white-space:nowrap;display:none}
.m5h.show-fno .m5h-fno{display:block}
/* a phone or a narrow window: the picture always gets the full width; the sentence sits under it or over it, always set left */
@media (max-width:700px),(max-aspect-ratio:27/20){.m5h-ticks{left:18px;right:18px}.m5h-fno{top:76px}
 .m5h .m5h-fr{left:18px;right:18px;top:12vh;bottom:38vh;place-items:end start}.m5h .m5h-ty{left:18px;right:18px;top:auto;bottom:9.5vh;max-width:none}.m5h .m5h-noun{transform-origin:left bottom}
 .m5h.N1 .m5h-fr{place-items:end end}
 .m5h.N2 .m5h-fr{top:44vh;bottom:9vh;place-items:start start}.m5h.N2 .m5h-ty{top:max(112px,13vh);bottom:auto}.m5h.N2 .m5h-noun{transform-origin:left top}
 .m5h.N5 .m5h-fr{top:12vh;bottom:12vh;place-items:center}.m5h.N5 .m5h-ty{bottom:15vh}
 .m5h.N6 .m5h-fr{top:22vh;bottom:8vh;place-items:center}.m5h.N6 .m5h-ty{top:max(112px,13vh);bottom:auto}.m5h.N6 .m5h-noun{transform-origin:left top}}
