/* Shift Happens as a movie trailer (venture-lab P10; js/shift.js). The section is cosmic dark in every look. While it holds
   the middle of the screen, js/shift.js puts html.sh-cosmic on: the whole site takes the cosmic tokens, letterbox bars slide
   in and a timecode runs. Leaving it, either way, the Omegaverse comes back. The trailer is a genre joke (the approval card,
   the voice-over, the quick cuts, the laurels, the billing block); no real studio's marks or words. No filters, no blur. */

/* the whole site, while the trailer plays */
html.sh-cosmic,html.sh-cosmic[data-variant]{--paper:#05040c;--ink:#f3f2ea;--mute:#a5a59c;--line:#f3f2ea;--grid:rgba(201,189,246,.06);--shadow:#c9bdf6;--nav:rgba(5,4,12,.82)}
html.sh-cosmic body,html.sh-cosmic[data-variant] body,html.alive.sh-cosmic[data-variant] body{background:#05040c}
html.sh-cosmic .deckchip,html.sh-cosmic .om-tank{opacity:0;pointer-events:none}

/* the section: cosmic dark, with warm glows that scroll past with the shots (the living sky is .sh-sky, below) */
.sh{position:relative;isolation:isolate;overflow:hidden;overflow:clip;padding:0;background:#05040c;color:#f3f2ea}
.sh::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:
  radial-gradient(70vw 900px at 80% 10%,rgba(255,199,39,.09),transparent 70%),
  radial-gradient(56vw 800px at 16% 40%,rgba(255,110,40,.07),transparent 70%),
  radial-gradient(64vw 900px at 78% 66%,rgba(255,199,39,.06),transparent 70%),
  radial-gradient(56vw 700px at 22% 90%,rgba(255,90,31,.07),transparent 70%)}

/* the sky on fire: Shift Happens' own sun and Karl the Fog (shifthappens.wtf, collage.css + garnish.css), under a night that
   is alive. Sticky, so it stays put while the shots roll past, and the section clips it at both ends. Back to front: the Milky
   Way, a nebula of liquid gas whose clouds swirl round their own points, four star fields that twinkle out of step and wander
   at their own depths, shooting stars and stars being born, the sun in the top corner with plasma circling it, an ember low on
   the far side, two fog banks rolling past on the wind. Nothing slides one way and back: everything that travels goes round or
   goes on, so the sky is one continuous flow. js/shift.js keeps --sh-p (0 → 1) in step with the trailer, so the sky also
   changes as it plays: the sun grows from a spark into a corona, the night comes up and the fog thins. It only moves while the
   trailer holds the screen; everything is a gradient or a dot, moved by transform and opacity alone. */
.sh{--glow:255,199,39}
.sh-sky{--sh-p:0;position:sticky;top:0;z-index:-1;height:100vh;height:100lvh;margin-bottom:-100vh;margin-bottom:-100lvh;overflow:hidden;pointer-events:none}
.sh-sky>*{position:absolute}
/* Half resolution: Safari rasterises a composited layer at its laid-out size and only then applies its transform, so each soft
   glow below (nebula, gas, sun, ember, Karl) is laid out at half size and drawn at scale 2 about the same point. On a phone at
   3x that is a quarter of the GPU memory for an identical blur; at full size these ~30 layers took the trailer from about 560 MB
   to over 1 GB of surfaces and a fast flick through it got the tab killed on iPhone. Stars stay full size, they need crisp dots. */
.sh-flare,.sh-flare i,.sh-flare b,.sh-ember,.sh-gas i,.sh-stars i,.sh-shoot>*,.sh-karl i{will-change:transform,opacity}
.sh-neb,.sh-gas,.sh-stars,.sh-karl{will-change:opacity}
/* each animation below starts paused (in its shorthand, which would otherwise reset the play state to running) */
html.sh-cosmic .sh-sky *,html.sh-cosmic .sh-sky *::before,html.sh-cosmic .sh-sky *::after,html.sh-cosmic .sh-karl i{animation-play-state:running}

/* the Milky Way, still, with the nebula's gas swirling over it: violet against the sun's gold, coming up as the night does.
   Each cloud circles its own point at its own pace and direction while it breathes in and out, so the colours keep pouring
   through each other and never run back (css/site.css .holo-flow is the same aurora in daylight); a long teal ribbon sweeps
   across like an aurora's curtain. */
.sh-neb{inset:15%;scale:2;opacity:calc(.3 + var(--sh-p) * .7);background:
  radial-gradient(16% 7% at 40% 43%,rgba(214,206,255,.09),transparent 70%),radial-gradient(12% 6% at 57% 55%,rgba(255,214,232,.07),transparent 70%),
  radial-gradient(10% 5% at 27% 33%,rgba(214,206,255,.07),transparent 70%),
  linear-gradient(118deg,transparent 33%,rgba(160,150,255,.06) 42%,rgba(224,218,255,.11) 48%,rgba(255,228,206,.08) 52%,rgba(160,150,255,.06) 58%,transparent 67%)}
.sh-gas{inset:0;opacity:calc(.35 + var(--sh-p) * .65)}
.sh-gas i{position:absolute;left:var(--x);top:var(--y);width:calc(var(--w) / 2);height:calc(var(--h) / 2);
  margin:calc((var(--oy) - 1) * var(--h) / 2) 0 0 calc((var(--ox) - 1) * var(--w) / 2);transform:scale(2);
  background:radial-gradient(closest-side,var(--c) 15%,transparent);transform-origin:calc(var(--ox) * 100%) calc(var(--oy) * 100%);
  animation:sh-orbit var(--t) linear var(--d) infinite var(--dir,normal) paused,sh-breathe var(--b) ease-in-out var(--d) infinite paused}
.sh-gas i:nth-child(1){--c:rgba(122,72,255,.26);--x:24%;--y:30%;--w:64vmax;--h:48vmax;--ox:.82;--oy:.72;--t:44s;--b:19s;--d:-7s;--s:1.25}
.sh-gas i:nth-child(2){--c:rgba(52,74,255,.2);--x:76%;--y:76%;--w:60vmax;--h:50vmax;--ox:.1;--oy:.28;--t:52s;--dir:reverse;--b:23s;--d:-21s;--s:1.2}
.sh-gas i:nth-child(3){--c:rgba(255,64,160,.13);--x:56%;--y:24%;--w:46vmax;--h:36vmax;--ox:.28;--oy:1.32;--t:37s;--dir:reverse;--b:17s;--d:-11s;--s:1.3}
.sh-gas i:nth-child(4){--c:rgba(40,210,200,.12);--x:14%;--y:80%;--w:50vmax;--h:40vmax;--ox:1.12;--oy:.08;--t:47s;--b:21s;--d:-16s;--s:1.25}
.sh-gas i:nth-child(5){--c:rgba(160,150,255,.13);--x:48%;--y:56%;--w:70vmax;--h:38vmax;--ox:.5;--oy:-.42;--t:58s;--b:26s;--d:-30s;--s:1.18}
.sh-gas i:nth-child(6){--c:rgba(60,232,196,.11);--x:50%;--y:46%;--w:130vmax;--h:14vmax;--ox:.5;--oy:2.6;--t:66s;--b:29s;--d:-24s;--s:1.15;
  background:radial-gradient(closest-side,var(--c) 10%,rgba(122,72,255,.07) 55%,transparent)}

/* the stars: four fields, each tile a different size so no grid shows, each twinkling on its own clock. Each wanders round a
   small circle of its own (--dx is its radius, --dd its start, and every other field goes the other way); the far ones barely
   move, the near ones wander and slide further as the trailer scrolls (--py), so the sky has depth */
.sh-stars{inset:0;opacity:calc(.6 + var(--sh-p) * .4)}
.sh-stars i{position:absolute;inset:-3% -3% calc(-12vh - 3%);opacity:.85;background-repeat:repeat;translate:0 calc(var(--sh-p) * var(--py));
  animation:sh-wander var(--d) linear var(--dd) infinite var(--dir,normal) paused,sh-twinkle var(--t) ease-in-out var(--td) infinite alternate paused}
.sh-stars i:nth-child(even){--dir:reverse}
.sh-stars i:nth-child(1){--py:-3vh;--dx:-1.2%;--d:140s;--dd:0s;--lo:.55;--t:9.7s;--td:-4s}
.sh-stars i:nth-child(2){--py:-6vh;--dx:1%;--d:110s;--dd:-30s;--lo:.2;--t:2.9s;--td:-1.1s}
.sh-stars i:nth-child(3){--py:-9vh;--dx:-1.4%;--d:95s;--dd:-12s;--lo:.15;--t:3.7s;--td:-2.6s}
.sh-stars i:nth-child(4){--py:-12vh;--dx:1.6%;--d:80s;--dd:-50s;--lo:.25;--t:2.3s;--td:-.7s}
.sh-stars i:nth-child(1){background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='380'><g fill='%23fff' opacity='.6'><circle cx='248' cy='322' r='.47'/><circle cx='232' cy='219' r='.35'/><circle cx='39' cy='244' r='.54'/><circle cx='411' cy='163' r='.48'/><circle cx='370' cy='363' r='.47'/><circle cx='205' cy='38' r='.45'/><circle cx='298' cy='53' r='.75'/><circle cx='145' cy='350' r='.73'/><circle cx='96' cy='272' r='.48'/><circle cx='338' cy='26' r='.31'/><circle cx='23' cy='25' r='.43'/><circle cx='408' cy='114' r='.36'/><circle cx='317' cy='268' r='.45'/><circle cx='391' cy='31' r='.32'/><circle cx='128' cy='180' r='.7'/><circle cx='91' cy='164' r='.31'/><circle cx='44' cy='348' r='.51'/><circle cx='23' cy='272' r='.52'/><circle cx='181' cy='359' r='.56'/><circle cx='281' cy='201' r='.39'/><circle cx='127' cy='39' r='.34'/><circle cx='295' cy='176' r='.37'/><circle cx='129' cy='241' r='.72'/><circle cx='264' cy='85' r='.31'/><circle cx='148' cy='38' r='.36'/><circle cx='282' cy='200' r='.52'/><circle cx='110' cy='21' r='.57'/><circle cx='9' cy='150' r='.5'/><circle cx='87' cy='31' r='.73'/><circle cx='317' cy='367' r='.34'/><circle cx='216' cy='230' r='.3'/><circle cx='126' cy='163' r='.3'/><circle cx='288' cy='71' r='.71'/><circle cx='202' cy='346' r='.3'/></g><g fill='%23fff' opacity='.2'><circle cx='255' cy='171' r='.43'/><circle cx='409' cy='114' r='.55'/><circle cx='209' cy='200' r='.62'/><circle cx='127' cy='155' r='.65'/><circle cx='229' cy='195' r='.55'/><circle cx='71' cy='311' r='.31'/><circle cx='404' cy='328' r='.44'/><circle cx='165' cy='345' r='.3'/><circle cx='210' cy='8' r='.36'/><circle cx='317' cy='292' r='.38'/><circle cx='217' cy='124' r='.35'/><circle cx='362' cy='294' r='.69'/></g><g fill='%23fff' opacity='.8'><circle cx='281' cy='258' r='.38'/><circle cx='183' cy='118' r='.46'/><circle cx='32' cy='110' r='.49'/><circle cx='295' cy='316' r='.47'/><circle cx='265' cy='312' r='.32'/><circle cx='87' cy='54' r='.32'/><circle cx='222' cy='291' r='.3'/><circle cx='366' cy='180' r='.31'/><circle cx='239' cy='206' r='.35'/><circle cx='187' cy='87' r='.72'/><circle cx='146' cy='231' r='.35'/><circle cx='70' cy='36' r='.48'/><circle cx='11' cy='141' r='.55'/><circle cx='131' cy='235' r='.4'/><circle cx='65' cy='343' r='.65'/><circle cx='321' cy='67' r='.37'/><circle cx='31' cy='327' r='.34'/><circle cx='273' cy='46' r='.72'/><circle cx='116' cy='22' r='.35'/><circle cx='122' cy='167' r='.66'/><circle cx='32' cy='70' r='.3'/><circle cx='367' cy='273' r='.4'/></g><g fill='%23fff' opacity='.4'><circle cx='167' cy='144' r='.33'/><circle cx='242' cy='159' r='.46'/><circle cx='307' cy='160' r='.3'/><circle cx='261' cy='49' r='.48'/><circle cx='357' cy='239' r='.7'/><circle cx='160' cy='70' r='.44'/><circle cx='304' cy='158' r='.38'/><circle cx='134' cy='213' r='.51'/><circle cx='42' cy='334' r='.35'/><circle cx='39' cy='354' r='.3'/><circle cx='375' cy='220' r='.31'/><circle cx='265' cy='10' r='.33'/><circle cx='332' cy='268' r='.44'/><circle cx='67' cy='51' r='.63'/><circle cx='198' cy='4' r='.59'/><circle cx='369' cy='52' r='.3'/><circle cx='126' cy='232' r='.3'/><circle cx='262' cy='287' r='.42'/><circle cx='110' cy='63' r='.48'/><circle cx='99' cy='7' r='.33'/><circle cx='338' cy='359' r='.42'/><circle cx='395' cy='227' r='.37'/><circle cx='238' cy='155' r='.48'/><circle cx='304' cy='42' r='.38'/><circle cx='69' cy='6' r='.71'/><circle cx='345' cy='262' r='.3'/><circle cx='172' cy='108' r='.33'/><circle cx='291' cy='166' r='.31'/><circle cx='237' cy='76' r='.3'/><circle cx='353' cy='43' r='.63'/><circle cx='66' cy='308' r='.33'/><circle cx='242' cy='248' r='.5'/><circle cx='226' cy='64' r='.31'/><circle cx='42' cy='124' r='.32'/></g><g fill='%23dfe7ff' opacity='.8'><circle cx='134' cy='236' r='.57'/><circle cx='4' cy='165' r='.55'/><circle cx='39' cy='282' r='.3'/><circle cx='298' cy='34' r='.35'/><circle cx='407' cy='210' r='.47'/><circle cx='266' cy='169' r='.36'/></g><g fill='%23dfe7ff' opacity='.4'><circle cx='343' cy='147' r='.62'/><circle cx='147' cy='319' r='.44'/><circle cx='186' cy='145' r='.3'/><circle cx='72' cy='8' r='.3'/></g><g fill='%23dfe7ff' opacity='.6'><circle cx='264' cy='2' r='.52'/><circle cx='283' cy='144' r='.46'/><circle cx='122' cy='340' r='.37'/><circle cx='402' cy='157' r='.32'/><circle cx='393' cy='55' r='.4'/><circle cx='253' cy='282' r='.55'/><circle cx='51' cy='63' r='.61'/></g><g fill='%23fff0d6' opacity='.8'><circle cx='72' cy='226' r='.3'/><circle cx='194' cy='166' r='.37'/><circle cx='147' cy='44' r='.33'/></g><g fill='%23fff0d6' opacity='.4'><circle cx='161' cy='270' r='.66'/><circle cx='123' cy='123' r='.49'/><circle cx='239' cy='171' r='.3'/><circle cx='51' cy='265' r='.39'/><circle cx='64' cy='186' r='.3'/></g><g fill='%23e6dcff' opacity='.6'><circle cx='121' cy='254' r='.53'/></g><g fill='%23fff0d6' opacity='.6'><circle cx='62' cy='92' r='.71'/></g><g fill='%23dfe7ff' opacity='.2'><circle cx='325' cy='210' r='.55'/></g></svg>")}
.sh-stars i:nth-child(2){background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='610' height='530'><g fill='%23fff' opacity='.6'><circle cx='187' cy='172' r='.88'/><circle cx='54' cy='305' r='.89'/><circle cx='505' cy='387' r='.63'/><circle cx='147' cy='126' r='.79'/><circle cx='127' cy='513' r='.93'/><circle cx='9' cy='439' r='.72'/><circle cx='555' cy='79' r='.86'/><circle cx='181' cy='382' r='.97'/><circle cx='375' cy='78' r='.99'/></g><g fill='%23fff' opacity='.8'><circle cx='503' cy='7' r='1.03'/><circle cx='276' cy='347' r='.62'/><circle cx='179' cy='30' r='.76'/><circle cx='430' cy='316' r='.92'/><circle cx='300' cy='261' r='.64'/><circle cx='71' cy='333' r='.61'/><circle cx='73' cy='433' r='.82'/><circle cx='327' cy='100' r='.81'/><circle cx='244' cy='430' r='.75'/></g><g fill='%23dfe7ff' opacity='.6'><circle cx='599' cy='444' r='.64'/><circle cx='227' cy='270' r='.92'/><circle cx='562' cy='85' r='.67'/><circle cx='120' cy='315' r='.66'/></g><g fill='%23e6dcff' opacity='.6'><circle cx='141' cy='102' r='.98'/></g><g fill='%23fff0d6' opacity='.8'><circle cx='555' cy='342' r='1'/><circle cx='107' cy='387' r='.68'/></g><g fill='%23dfe7ff' opacity='.8'><circle cx='190' cy='274' r='.7'/><circle cx='103' cy='351' r='.61'/><circle cx='385' cy='443' r='.66'/><circle cx='117' cy='88' r='1.03'/></g><g fill='%23fff0d6' opacity='1'><circle cx='393' cy='169' r='.96'/></g><g fill='%23fff0d6' opacity='.6'><circle cx='488' cy='87' r='.78'/><circle cx='329' cy='193' r='.95'/></g><g fill='%23fff' opacity='1'><circle cx='5' cy='308' r='.95'/><circle cx='429' cy='260' r='.61'/><circle cx='414' cy='516' r='.86'/><circle cx='439' cy='89' r='.65'/><circle cx='9' cy='55' r='.73'/><circle cx='569' cy='207' r='.73'/></g><g fill='%23dfe7ff' opacity='1'><circle cx='40' cy='414' r='.68'/><circle cx='324' cy='326' r='.74'/></g></svg>")}
.sh-stars i:nth-child(3){background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='760' height='690'><g fill='%23dfe7ff' opacity='1'><circle cx='561' cy='138' r='.81'/><circle cx='565' cy='637' r='.91'/><circle cx='374' cy='215' r='1.17'/><circle cx='195' cy='82' r='1.11'/><circle cx='231' cy='512' r='.84'/></g><g fill='%23dfe7ff' opacity='.6'><circle cx='485' cy='342' r='1.28'/></g><g fill='%23e6dcff' opacity='1'><circle cx='456' cy='518' r='.91'/><circle cx='374' cy='81' r='1.03'/></g><g fill='%23fff' opacity='.8'><circle cx='501' cy='211' r='.88'/><circle cx='675' cy='352' r='.95'/><circle cx='257' cy='573' r='1.04'/><circle cx='274' cy='189' r='1.23'/><circle cx='157' cy='296' r='.99'/><circle cx='607' cy='284' r='1.29'/><circle cx='11' cy='170' r='1.03'/><circle cx='59' cy='193' r='1.13'/></g><g fill='%23fff0d6' opacity='.8'><circle cx='360' cy='399' r='1.13'/><circle cx='136' cy='152' r='1.23'/><circle cx='292' cy='509' r='1.01'/></g><g fill='%23ffdbe8' opacity='.8'><circle cx='398' cy='91' r='.98'/><circle cx='106' cy='200' r='.87'/></g><g fill='%23ffdbe8' opacity='1'><circle cx='170' cy='394' r='.86'/></g><g fill='%23fff0d6' opacity='.6'><circle cx='751' cy='622' r='1.08'/></g><g fill='%23fff' opacity='.6'><circle cx='541' cy='10' r='1.26'/></g><g fill='%23dfe7ff' opacity='.8'><circle cx='166' cy='207' r='1.03'/></g><g fill='%23e6dcff' opacity='.6'><circle cx='61' cy='81' r='.96'/></g></svg>")}
.sh-stars i:nth-child(4){background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='940' height='860'><defs><radialGradient id='h'><stop offset='0' stop-color='%23fff' stop-opacity='.5'/><stop offset='.35' stop-color='%23e6dcff' stop-opacity='.16'/><stop offset='1' stop-color='%23fff' stop-opacity='0'/></radialGradient></defs><circle cx='78' cy='693' r='5.75' fill='url(%23h)'/><g fill='%23fff'><circle cx='78' cy='693' r='1.78'/><ellipse cx='78' cy='693' rx='10.2' ry='.42' opacity='.6'/><ellipse cx='78' cy='693' rx='.42' ry='10.2' opacity='.6'/><ellipse cx='78' cy='693' rx='4.59' ry='.3' opacity='.35' transform='rotate(45 78 693)'/><ellipse cx='78' cy='693' rx='4.59' ry='.3' opacity='.35' transform='rotate(-45 78 693)'/></g><circle cx='87' cy='653' r='7.44' fill='url(%23h)'/><g fill='%23dfe7ff'><circle cx='87' cy='653' r='1.77'/><ellipse cx='87' cy='653' rx='12.66' ry='.42' opacity='.6'/><ellipse cx='87' cy='653' rx='.42' ry='12.66' opacity='.6'/></g><circle cx='681' cy='701' r='5.95' fill='url(%23h)'/><g fill='%23ffdbe8'><circle cx='681' cy='701' r='1.55'/><ellipse cx='681' cy='701' rx='11.98' ry='.42' opacity='.6'/><ellipse cx='681' cy='701' rx='.42' ry='11.98' opacity='.6'/></g><circle cx='100' cy='451' r='7.9' fill='url(%23h)'/><g fill='%23dfe7ff'><circle cx='100' cy='451' r='1.77'/><ellipse cx='100' cy='451' rx='11.76' ry='.42' opacity='.6'/><ellipse cx='100' cy='451' rx='.42' ry='11.76' opacity='.6'/><ellipse cx='100' cy='451' rx='5.29' ry='.3' opacity='.35' transform='rotate(45 100 451)'/><ellipse cx='100' cy='451' rx='5.29' ry='.3' opacity='.35' transform='rotate(-45 100 451)'/></g><circle cx='222' cy='577' r='5.71' fill='url(%23h)'/><g fill='%23dfe7ff'><circle cx='222' cy='577' r='1.28'/><ellipse cx='222' cy='577' rx='10.83' ry='.42' opacity='.6'/><ellipse cx='222' cy='577' rx='.42' ry='10.83' opacity='.6'/></g><circle cx='178' cy='135' r='7.91' fill='url(%23h)'/><g fill='%23e6dcff'><circle cx='178' cy='135' r='1.38'/><ellipse cx='178' cy='135' rx='12.15' ry='.42' opacity='.6'/><ellipse cx='178' cy='135' rx='.42' ry='12.15' opacity='.6'/></g><circle cx='117' cy='801' r='5.82' fill='url(%23h)'/><g fill='%23ffdbe8'><circle cx='117' cy='801' r='1.49'/><ellipse cx='117' cy='801' rx='8.32' ry='.42' opacity='.6'/><ellipse cx='117' cy='801' rx='.42' ry='8.32' opacity='.6'/><ellipse cx='117' cy='801' rx='3.74' ry='.3' opacity='.35' transform='rotate(45 117 801)'/><ellipse cx='117' cy='801' rx='3.74' ry='.3' opacity='.35' transform='rotate(-45 117 801)'/></g></svg>")}

/* shooting stars (b) and stars being born (i): most of each cycle they wait unseen, then they happen */
.sh-shoot{inset:0}
.sh-shoot b{top:var(--y);left:var(--x);width:24vmax;height:2px;border-radius:2px;opacity:0;transform-origin:100% 50%;
  background:linear-gradient(90deg,transparent,rgba(201,189,246,.22) 55%,rgba(255,246,222,.85) 94%,#fff);
  animation:sh-shoot var(--t) linear var(--td) infinite paused}
.sh-shoot b:nth-child(1){--x:46%;--y:12%;--a:150deg;--t:9.5s;--td:-6.4s}
.sh-shoot b:nth-child(2){--x:-4%;--y:22%;--a:24deg;--t:13s;--td:-2s}
.sh-shoot b:nth-child(3){--x:52%;--y:44%;--a:128deg;--t:17s;--td:-11s}
.sh-shoot i{top:var(--y);left:var(--x);width:56px;height:56px;margin:-28px;opacity:0;animation:sh-nova var(--t) ease-out var(--td) infinite paused;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent) center/100% 1px no-repeat,
    linear-gradient(0deg,transparent,rgba(255,255,255,.75),transparent) center/1px 100% no-repeat,
    radial-gradient(circle,#fff 0,rgba(255,246,222,.85) 5%,rgba(201,189,246,.3) 16%,transparent 52%)}
.sh-shoot i:nth-child(4){--x:14%;--y:30%;--t:11s;--td:-3s}
.sh-shoot i:nth-child(5){--x:86%;--y:60%;--t:14s;--td:-9s}
.sh-shoot i:nth-child(6){--x:10%;--y:66%;--t:19s;--td:-15s}

/* the sun: it breathes, tongues of plasma circle it (each its own pace and way round, swelling as they go), its corona turns
   two ways at once (the shimmer is where they cross), its glints sweep round, and it grows from a spark into the whole
   corner as the trailer plays */
.sh-flare{top:-11vmax;right:-7vmax;width:46vmax;height:46vmax;border-radius:50%;animation:sh-sun 9s ease-in-out infinite alternate paused;
  scale:calc((.6 + var(--sh-p) * .52) * 2);translate:calc(var(--sh-p) * -7vw) calc(var(--sh-p) * 5vh);
  background:radial-gradient(circle,rgba(255,246,220,.62) 0,rgba(var(--glow),.42) 8%,rgba(var(--glow),.2) 22%,rgba(255,110,40,.1) 40%,transparent 66%)}
.sh-flare i{position:absolute;inset:12%;border-radius:50%;opacity:calc(.35 + var(--sh-p) * .65);animation:sh-turn 150s linear infinite paused;
  -webkit-mask:radial-gradient(circle,transparent 3%,#000 9%,rgba(0,0,0,.55) 30%,transparent 66%);mask:radial-gradient(circle,transparent 3%,#000 9%,rgba(0,0,0,.55) 30%,transparent 66%);
  background:repeating-conic-gradient(rgba(255,236,190,0) 0deg,rgba(255,236,190,.16) 1.6deg,rgba(255,236,190,0) 4deg 7deg),
    repeating-conic-gradient(from 3deg,rgba(var(--glow),0) 0deg,rgba(var(--glow),.12) 2.4deg,rgba(var(--glow),0) 5deg 11.3deg)}
.sh-flare i:last-child{inset:20%;animation-duration:210s;animation-direction:reverse}
.sh-flare b{position:absolute;inset:18%;opacity:calc(.35 + var(--sh-p) * .65);background:radial-gradient(var(--e),var(--c) 12%,transparent 72%);
  animation:sh-orbit var(--t) linear var(--d) infinite var(--dir,normal) paused,sh-breathe var(--b) ease-in-out var(--d) infinite paused}
.sh-flare b:nth-child(1){--e:ellipse 26% 11% at 50% 24%;--c:rgba(255,170,60,.22);--t:34s;--b:13s;--d:-5s;--s:1.16}
.sh-flare b:nth-child(2){--e:ellipse 9% 22% at 78% 52%;--c:rgba(255,90,60,.18);--t:47s;--dir:reverse;--b:17s;--d:-19s;--s:1.12}
.sh-flare b:nth-child(3){--e:ellipse 20% 8% at 46% 80%;--c:rgba(255,226,150,.2);--t:40s;--b:15s;--d:-27s;--s:1.18}
.sh-flare::before,.sh-flare::after{content:"";position:absolute;left:50%;top:50%;width:27vmax;height:1px;margin-left:-13.5vmax;--g:-24deg;
  transform:rotate(var(--g));animation:sh-glint 120s linear infinite paused;
  background:linear-gradient(90deg,transparent,rgba(var(--glow),.34) 38%,rgba(255,246,222,.6) 50%,rgba(var(--glow),.34) 62%,transparent)}
.sh-flare::after{height:.5px;--g:31deg;opacity:.6;animation-duration:170s;animation-direction:reverse}
.sh-ember{bottom:-14vmax;left:-8vmax;width:32vmax;height:32vmax;border-radius:50%;animation:sh-sun 17s ease-in-out infinite alternate-reverse paused;
  scale:calc((.9 + var(--sh-p) * .3) * 2);translate:calc(var(--sh-p) * 5vw) calc(var(--sh-p) * -6vh);
  background:radial-gradient(circle,rgba(var(--glow),.24) 0,rgba(255,110,40,.11) 30%,transparent 64%)}
/* Karl the Fog rolls on with the wind, low bank one way and high bank the other, and never turns back. Each bank is two
   identical tiles (--k wide, at least the screen) and slides exactly one tile per lap, so the lap joins up seamlessly; the
   puffs sit inside their tile, and the one on the seam is split in two halves that meet across it. */
.sh-karl{inset:0;overflow:hidden;opacity:calc(.78 - var(--sh-p) * .26)}
.sh-karl i{--k:max(100vw,80vh);position:absolute;left:0;width:var(--k);background-size:50% 100%;background-repeat:repeat-x;scale:2}
.sh-karl i:first-child{bottom:calc(var(--sh-bar) - 12vh);height:23vh;transform-origin:0 100%;animation:sh-roll 150s linear infinite paused;
  background-image:radial-gradient(ellipse 16% 52% at 0 100%,rgba(224,231,238,.4),transparent 72%),radial-gradient(ellipse 16% 52% at 100% 100%,rgba(224,231,238,.4),transparent 72%),
    radial-gradient(ellipse 30% 78% at 30% 100%,rgba(224,231,238,.38),transparent 72%),radial-gradient(ellipse 22% 60% at 57% 100%,rgba(224,231,238,.42),transparent 70%),
    radial-gradient(ellipse 28% 74% at 79% 100%,rgba(224,231,238,.36),transparent 72%),linear-gradient(0deg,rgba(214,223,232,.26),transparent 55%)}
.sh-karl i:last-child{top:-12vh;height:17vh;transform-origin:0 0;animation:sh-roll 220s linear infinite reverse paused;
  background-image:radial-gradient(ellipse 30% 70% at 27% 0,rgba(224,231,238,.15),transparent 72%),radial-gradient(ellipse 30% 60% at 72% 0,rgba(224,231,238,.12),transparent 72%)}
@keyframes sh-sun{from{transform:scale(.88);opacity:.66}to{transform:scale(1.1);opacity:1}}
@keyframes sh-roll{to{transform:translate3d(-50%,0,0)}}
@keyframes sh-orbit{to{rotate:1turn}}
@keyframes sh-breathe{50%{scale:var(--s)}}
@keyframes sh-wander{0%,100%{transform:translate3d(var(--dx),0,0)}12.5%{transform:translate3d(calc(var(--dx) * .707),calc(var(--dx) * .707),0)}
  25%{transform:translate3d(0,var(--dx),0)}37.5%{transform:translate3d(calc(var(--dx) * -.707),calc(var(--dx) * .707),0)}
  50%{transform:translate3d(calc(var(--dx) * -1),0,0)}62.5%{transform:translate3d(calc(var(--dx) * -.707),calc(var(--dx) * -.707),0)}
  75%{transform:translate3d(0,calc(var(--dx) * -1),0)}87.5%{transform:translate3d(calc(var(--dx) * .707),calc(var(--dx) * -.707),0)}}
@keyframes sh-twinkle{0%{opacity:var(--lo)}40%{opacity:1}58%{opacity:.62}100%{opacity:.95}}
@keyframes sh-shoot{0%,88%{opacity:0;transform:rotate(var(--a)) translate3d(-10vmax,0,0) scaleX(.15)}90%{opacity:1}
  97%,100%{opacity:0;transform:rotate(var(--a)) translate3d(22vmax,0,0) scaleX(1)}}
@keyframes sh-nova{0%,72%{opacity:0;transform:scale(.15) rotate(0)}80%{opacity:1;transform:scale(1) rotate(25deg)}100%{opacity:0;transform:scale(.55) rotate(60deg)}}
@keyframes sh-turn{to{transform:rotate(360deg)}}
@keyframes sh-glint{from{transform:rotate(var(--g)) scaleX(.8)}50%{transform:rotate(calc(var(--g) + 180deg)) scaleX(1.18)}to{transform:rotate(calc(var(--g) + 360deg)) scaleX(.8)}}
@media (max-width:760px){
  .sh-flare{top:-5vmax;right:-20vmax;width:52vmax;height:52vmax;scale:calc((.6 + var(--sh-p) * .4) * 2);translate:calc(var(--sh-p) * 3vw) calc(var(--sh-p) * -3vh)}
  .sh-flare i,.sh-flare b{opacity:calc(.3 + var(--sh-p) * .4)}   /* on a phone the shots pass right under the sun: a quieter corona keeps the small type readable */
  .sh-flare::before,.sh-flare::after{width:18vmax;margin-left:-9vmax}
  .sh-karl i:first-child{height:25vh;bottom:calc(var(--sh-bar) - 5vh)}
  .sh-karl i:last-child{height:15vh;top:-8vh}
}
@media print{.sh-sky{display:none}}

/* skip trailer: a real link to the next page, pinned under the top bar for the whole trailer */
.sh-skip{position:sticky;top:calc(var(--sh-top,64px) + var(--sh-bar) + 12px);z-index:3;height:0}
.sh-skipbtn{position:absolute;right:var(--pad);top:12px;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;
  background:rgba(5,4,12,.72);color:#f3f2ea;border:2px solid #f3f2ea;text-decoration:none;font:700 12px/1 var(--mono);text-transform:uppercase;letter-spacing:.08em}
.sh-skipbtn:hover{background:#f3f2ea;color:#05040c}
.sh-skipbtn:focus-visible{outline:3px solid var(--lav);outline-offset:3px}
.sh-count:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;background:var(--lav);color:#05040c;border-radius:50%}

/* the shots */
.sh-shot{min-height:70vh;min-height:70svh;display:grid;place-content:center;justify-items:center;gap:clamp(14px,2.4vw,26px);
  padding:clamp(56px,10vh,110px) var(--pad);text-align:center}
.sh-shot.sh-beat{min-height:56vh;min-height:56svh}
.sh-shot>*{margin:0;max-width:100%}
.sh-pre{font:700 12px/1.4 var(--mono);letter-spacing:.24em;text-transform:uppercase;color:var(--lav)}
.sh-vo,.sh-big{font:800 clamp(30px,6.4vw,92px)/1.02 "Archivo",system-ui,sans-serif;font-stretch:62%;text-transform:uppercase;letter-spacing:.02em;text-wrap:balance}
.sh-vo{max-width:20ch;color:#d9d6e8}
.sh-big{max-width:16ch;font-weight:900}
.sh-big em,.sh-vo em{font-style:normal;color:var(--lav)}
.sh-num{color:var(--lime)}
.sh-line{max-width:34ch;font:500 clamp(17px,1.9vw,24px)/1.45 "Archivo",system-ui,sans-serif;color:#d9d6e8}
.sh-date,.sh-fine{font:700 clamp(12px,1.4vw,15px)/1.5 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#b4b2c4}
.sh-thesis{max-width:22ch;font:300 clamp(30px,5.4vw,78px)/1.12 "Archivo",system-ui,sans-serif;font-stretch:100%;text-wrap:balance}
.sh-thesis em{font-style:normal;font-weight:900;color:var(--lav)}

/* the approval card: the genre's green band, in our colours and our words */
.sh-card{width:min(100%,720px);padding:clamp(22px,4vw,44px);background:#0d0b1c;border:3px solid var(--lav);box-shadow:0 0 0 6px #05040c,0 0 0 8px rgba(201,189,246,.4);
  font:700 clamp(12px,1.5vw,17px)/1.55 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.sh-card>p{margin:0}
.sh-card b{color:var(--lav)}
.sh-rate{display:flex;align-items:center;gap:16px;margin:clamp(16px,2.4vw,24px) 0;padding:14px;border:2px solid #f3f2ea;text-align:left}
.sh-rate p{margin:0}
.sh-s{flex:none;display:grid;place-items:center;width:clamp(48px,7vw,68px);aspect-ratio:1;background:#f3f2ea;color:#05040c;font:900 clamp(32px,5vw,48px)/1 "Archivo",system-ui,sans-serif;font-stretch:125%}
.sh-card .sh-by{color:#b4b2c4;font-size:.86em}

/* five forces, in quick cuts */
.sh-forces{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 14px}
.sh-forces li{padding:.06em .22em .02em;color:#0b0b0c;font:900 clamp(30px,6.2vw,84px)/1 "Archivo",system-ui,sans-serif;font-stretch:62%;text-transform:uppercase;letter-spacing:.02em}
.sh-forces li:nth-child(1){background:var(--lime)} .sh-forces li:nth-child(2){background:var(--pink)} .sh-forces li:nth-child(3){background:var(--cyan)}
.sh-forces li:nth-child(4){background:var(--lav)} .sh-forces li:nth-child(5){background:var(--yellow)}

/* the title card */
.sh-laurels{display:flex;align-items:center;gap:10px;color:#e9e4ff;font:700 11px/1.35 var(--mono);letter-spacing:.18em;text-transform:uppercase}
.sh-laurels svg{width:28px;height:56px;flex:none}
.sh-laurels svg+span+svg{transform:scaleX(-1)}
.sh-name{font:900 clamp(60px,15.5vw,230px)/.86 "Archivo",system-ui,sans-serif;font-stretch:62%;text-transform:uppercase;letter-spacing:-.005em;color:#f3f2ea;
  text-shadow:0 0 42px rgba(201,189,246,.5),0 0 2px rgba(255,255,255,.6)}
.sh-billing{max-width:760px;font:600 clamp(10px,1.15vw,13px)/1.55 "Archivo",system-ui,sans-serif;font-stretch:62%;letter-spacing:.16em;text-transform:uppercase;color:#a9a7ba;
  text-align:justify;text-align-last:center}

/* the end card */
.sh-go{display:inline-flex;align-items:center;gap:12px;min-height:58px;padding:0 28px;background:var(--lav);color:#0b0b0c;border:2px solid #f3f2ea;box-shadow:5px 5px 0 #f3f2ea;
  text-decoration:none;font:900 clamp(17px,2vw,22px)/1 "Archivo",system-ui,sans-serif;font-stretch:112%;text-transform:uppercase;letter-spacing:.02em}
.sh-go:hover{transform:translate(2px,2px);box-shadow:3px 3px 0 #f3f2ea}
.sh-go:focus-visible,.sh-mail a:focus-visible{outline:3px solid var(--lime);outline-offset:4px}
.sh-mail{font:500 clamp(15px,1.5vw,18px)/1.5 "Archivo",system-ui,sans-serif;color:#d9d6e8}
.sh-mail a{color:#f3f2ea;text-underline-offset:.18em}
.sh-home{font:700 12px/1.4 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--lime)}

/* the letterbox, the timecode and the way home (js/shift.js; aria-hidden) */
.sh-bar{position:fixed;left:0;right:0;z-index:41;height:var(--sh-bar,clamp(20px,5.2vh,56px));display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:0 var(--pad);background:#000;color:#8f8ca3;font:700 10px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;overflow:hidden;pointer-events:none;
  visibility:hidden;transition:transform .7s cubic-bezier(.6,0,.2,1),visibility 0s .7s}
.sh-bar-t{top:var(--sh-top,64px);transform:translateY(-100%)}
.sh-bar-b{bottom:0;transform:translateY(100%)}
.sh-bar span{overflow:hidden;text-overflow:ellipsis}
.sh-tc{flex:none;color:#d9d6e8;font-variant-numeric:tabular-nums}
html.sh-cosmic .sh-bar{visibility:visible;transform:none;transition:transform .7s cubic-bezier(.6,0,.2,1),visibility 0s}
html{--sh-bar:clamp(20px,5.2vh,56px)}
.sh-back{position:fixed;left:50%;top:calc(var(--sh-top,64px) + 14px);z-index:80;max-width:calc(100% - 24px);padding:11px 14px 12px;background:#05040c;color:#f3f2ea;
  border:2px solid #f3f2ea;box-shadow:5px 5px 0 var(--lav);font:700 12px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.05em;pointer-events:none;
  opacity:0;transform:translate(-50%,-8px);transition:opacity .35s,transform .35s cubic-bezier(.2,1.5,.3,1)}
.sh-back.on{opacity:1;transform:translate(-50%,0)}

/* leaving: the last card holds three pushes, then Karl's cosmic fog (js/shift-exit.js; aria-hidden). Transform and opacity only */
.sh-end{transform-origin:50% 100%}
.sh-pips{display:inline-flex;align-items:center;gap:10px;color:#b4b2c4;font:700 11px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase}
.sh-pips i{width:12px;height:12px;border:2px solid var(--lime);border-radius:50%;transition:background-color .2s,transform .35s cubic-bezier(.2,1.8,.3,1)}
.sh-pips i.on{background:var(--lime);transform:scale(1.3)}
.sh-key{display:inline-grid;place-items:center;width:26px;height:26px;border:2px solid #f3f2ea;border-radius:6px;color:#f3f2ea;font-size:13px;letter-spacing:0}
.sh-held .sh-key{animation:sh-nudge 1.1s ease-in-out infinite}
@keyframes sh-nudge{50%{transform:translateY(4px)}}
.kf{position:fixed;inset:0;z-index:95;pointer-events:none;overflow:hidden;contain:strict}
.kf>*{position:absolute;left:var(--x);top:var(--y);opacity:0;will-change:transform,opacity}
.kf-veil{left:0;top:0;width:100%;height:100%;background:
  radial-gradient(42vmax 30vmax at 18% 26%,rgba(163,231,244,.55),transparent 70%),
  radial-gradient(42vmax 30vmax at 84% 72%,rgba(255,174,180,.45),transparent 70%),
  radial-gradient(circle at var(--x) var(--y),#fdfbff 0,#e9e2ff 28%,#c4b5f5 62%,#8f7fe0 100%)}
.kf-flash{width:90vmax;height:90vmax;border-radius:50%;background:radial-gradient(circle,#fff 0,rgba(255,255,255,.78) 18%,rgba(201,189,246,.35) 40%,transparent 68%)}
.kf-ring{width:60vmax;height:60vmax;border:2px solid rgba(255,255,255,.9);border-radius:50%;box-shadow:0 0 30px rgba(201,189,246,.8),inset 0 0 30px rgba(163,231,244,.6)}
.kf-s{width:7px;height:7px;border-radius:50%;box-shadow:0 0 12px 2px rgba(255,255,255,.7)}

@media (prefers-reduced-motion:no-preference){
  html.sh-js .sh-shot>*{opacity:0;transform:scale(1.07);transition:opacity .9s ease,transform 1.8s cubic-bezier(.2,.7,.2,1)}
  html.sh-js .sh-shot.sh-in>*{opacity:1;transform:none}
  html.sh-js .sh-shot.sh-in>:nth-child(2){transition-delay:.35s,.35s}
  html.sh-js .sh-shot.sh-in>:nth-child(3){transition-delay:.7s,.7s}
  html.sh-js .sh-shot.sh-in>:nth-child(n+4){transition-delay:1s,1s}
  html.sh-js .sh-shot.sh-in .sh-forces li{animation:sh-cut .5s cubic-bezier(.2,.9,.2,1) both}
  html.sh-js .sh-shot.sh-in .sh-forces li:nth-child(2){animation-delay:.32s} html.sh-js .sh-shot.sh-in .sh-forces li:nth-child(3){animation-delay:.64s}
  html.sh-js .sh-shot.sh-in .sh-forces li:nth-child(4){animation-delay:.96s} html.sh-js .sh-shot.sh-in .sh-forces li:nth-child(5){animation-delay:1.28s}
}
@keyframes sh-cut{0%{opacity:0;transform:scale(1.6)}12%{opacity:1}100%{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sh-bar,.sh-back{transition:none}
  .sh-flare,.sh-ember,.sh-sky .sh-gas i,.sh-sky .sh-flare i,.sh-sky .sh-flare b,.sh-sky .sh-flare::before,.sh-sky .sh-flare::after,.sh-sky .sh-stars i,.sh-sky .sh-shoot>*,.sh-sky .sh-karl i{animation:none}}
