/* Side projects: three real, live sites, recreated at phone width.
   Unlike the case-study screens these are not sample content. Each is drawn
   from the live site as it looked on 18 November 2026, using that site's own
   colours, type and measurements. Everything is em-sized against a 375px
   design width (1em = 16px there), so a screen scales with its card. */

@font-face{font-family:"Hanken Grotesk";src:url("../fonts/hanken-grotesk-sub.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("../fonts/bricolage-grotesque-sub.woff2") format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url("../fonts/instrument-sans-sub.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Archivo";src:url("../fonts/archivo-sub.woff2") format("woff2");font-weight:100 900;font-display:swap}

.ms{position:absolute;inset:0;font-size:calc(100cqw / 23.4375);line-height:1.5;overflow:hidden;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.ms,.ms *{box-sizing:border-box}
.ms b,.ms i,.ms u,.ms em,.ms small{font:inherit;text-decoration:none}
.ms .i{display:block}

/* ---------- Vexi (playvexi.com) ---------- */
.vx{background:#0d0f13;color:#edeef1;font-family:"Hanken Grotesk",system-ui,-apple-system,sans-serif;padding:.875em 1em 0}
.vx-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.42em}
.vx-lv{background:#1c2028;border:1px solid #262b33;border-radius:.75em;padding:.5625em .625em .5em}
.vx-lv.is-cur{border-color:#2ec4b9;box-shadow:0 0 0 .1875em rgba(46,196,185,.14)}
.vx-lv span{display:block;font-size:.59375em;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#6b727d;line-height:1.3}
.vx-lv.is-cur span{color:#7fe0d8}
.vx-lv b{display:block;font:800 .875em/1.22 "Bricolage Grotesque",system-ui,sans-serif;letter-spacing:-.01em}
.vx-board{margin-top:.8125em;background:#161920;border:1px solid #262b33;border-radius:1.25em;padding:1.25em 1.125em 1.375em}
.vx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.5em}
.vx-head b{display:block;font:700 .96875em/1.45 "Bricolage Grotesque",system-ui,sans-serif;letter-spacing:-.01em;color:#c3c8d0}
.vx-head small{display:block;font-size:.78125em;font-weight:500;color:#949ba6;margin-top:.1em}
.vx-head i{font:500 .75em/1.7 "Geist Mono",ui-monospace,monospace;color:#6b727d;white-space:nowrap;padding-top:.15em}
.vx-stim{margin-top:.625em;aspect-ratio:3/2;background:#1c2028;border-radius:.875em;position:relative;overflow:hidden}
.vx-flag{position:absolute;inset:0;width:100%;height:100%;display:block;clip-path:polygon(0 87%,0 100%,13% 100%,100% 13%,100% 0,87% 0);transition:clip-path .6s cubic-bezier(.2,.7,.2,1)}
.vx-pips{display:flex;align-items:center;gap:.3125em;margin-top:.875em}
.vx-pips u{font-size:.75em;font-weight:700;color:#6b727d;text-decoration:underline;text-underline-offset:.18em;margin-right:2.2em}
.vx-pips i{width:1.625em;height:.375em;border-radius:.1875em;background:#333944}
.vx-pips i.is-used{background:#2ec4b9}
.vx-pips span{margin-left:auto;font:700 .75em/1.5 "Geist Mono",ui-monospace,monospace;color:#949ba6}
.vx-input{display:grid;grid-template-columns:minmax(0,1fr) 4.9375em;gap:.5em;margin-top:.625em}
.vx-input span{height:3.0625em;display:flex;align-items:center;padding:0 .875em;border:.0833em solid #333944;border-radius:.625em;font-weight:500;color:#6b727d}
.vx-input b{height:3.2667em;display:grid;place-items:center;border-radius:.6667em;background:#edeef1;color:#0d0f13;font-size:.9375em;font-weight:700;opacity:.52}
.vx-label{font-size:.6875em;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:#6b727d;margin:1.65em 0 .75em .25em;line-height:1.3}
.vx-clue{display:flex;align-items:center;gap:.6875em;min-height:2.5em;border-radius:.6875em;padding:.5em .75em;margin-top:.375em;border:1px solid transparent}
.vx-clue .i{width:1.0625em;height:1.0625em;margin-inline:.15em;stroke-width:2}
.vx-clue span{flex:none;width:9.3333em;font-size:.5625em;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.vx-clue b{font-size:.84375em;font-weight:700}
.vx-clue.is-open{background:#12332f}
.vx-clue.is-open .i,.vx-clue.is-open span{color:#7fe0d8}
.vx-clue.is-locked{background:#1c2028;border-color:#262b33;opacity:.6}
.vx-clue.is-locked .i{color:#b48a52;opacity:.7}
.vx-clue.is-locked span{font-size:.625em;color:#6b727d}

/* the mechanic, played once as the card arrives: two wrong guesses, two clues,
   and the strip of flag wider each time. Hovering takes one more guess. */
@keyframes vx-reveal{0%,18%{clip-path:polygon(0 95.5%,0 100%,4.5% 100%,100% 4.5%,100% 0,95.5% 0)}46%,64%{clip-path:polygon(0 91.5%,0 100%,8.5% 100%,100% 8.5%,100% 0,91.5% 0)}100%{clip-path:polygon(0 87%,0 100%,13% 100%,100% 13%,100% 0,87% 0)}}
@keyframes vx-pip{from{background:#333944}to{background:#2ec4b9}}
@keyframes vx-pop{from{opacity:0;transform:scale(.96) translateY(.3em)}to{opacity:1;transform:none}}
.js .side.is-in .vx-flag{animation:vx-reveal 2.1s cubic-bezier(.2,.7,.2,1) .15s backwards}
.js .side.is-in .vx-pips i:nth-of-type(1){animation:vx-pip .25s .85s backwards}
.js .side.is-in .vx-pips i:nth-of-type(2){animation:vx-pip .25s 1.75s backwards}
.js .side.is-in .vx-clue:nth-of-type(1){animation:vx-pop .4s cubic-bezier(.22,1.4,.5,1) .95s backwards}
.js .side.is-in .vx-clue:nth-of-type(2){animation:vx-pop .4s cubic-bezier(.22,1.4,.5,1) 1.85s backwards}
@media (hover:hover){.side:hover .vx-flag{clip-path:polygon(0 79%,0 100%,21% 100%,100% 21%,100% 0,79% 0)}}

/* ---------- Which Party (whichparty.co.za) ---------- */
.wp{background:#121118;color:#f1f0f7;font-family:"Instrument Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.wp-nav{display:grid;grid-template-columns:1fr 1fr;margin:0 1.25em;border-bottom:1px solid #2f2d3d}
.wp-nav span{text-align:center;font-weight:600;padding:.6875em .5em .5625em;margin-bottom:-1px}
.wp-nav span.is-on{color:#a594ff;box-shadow:inset 0 -.125em 0 #a594ff}
.wp-top{display:flex;justify-content:space-between;align-items:center;margin:1em 1.25em 0}
.wp-top b{font:700 1em/1.5 "Archivo","Instrument Sans",system-ui,sans-serif;letter-spacing:-.01em}
.wp-top span{font-size:.875em;color:#9b98b3}
.wp-bar{height:.3125em;border-radius:.1875em;background:#2f2d3d;margin:.625em 1.25em 0}
.wp-card{margin:.875em 1.25em 0;background:#1c1b24;border:1px solid #2f2d3d;border-radius:1em;padding:1.625em 1.375em 1.5em}
.wp-q{font:700 1.5em/1.15 "Archivo","Instrument Sans",system-ui,sans-serif;letter-spacing:-.02em}
.wp-why{margin-top:1em;color:#c9c6dc}
.wp-means{display:grid;gap:.4em;margin-top:1.0667em;font-size:.9375em;color:#c9c6dc}
.wp-means div{display:grid;grid-template-columns:1.4667em minmax(0,1fr);gap:.5333em}
.wp-means i{width:1.4667em;height:1.4667em;margin-top:.05em;border-radius:50%;background:#27224a;color:#c3b7ff;display:grid;place-items:center}
.wp-means .i{width:.8em;height:.8em;stroke-width:2.6}
.wp-means b{font-weight:600;color:#f1f0f7}
.wp-answer{position:absolute;left:0;right:0;bottom:0;background:#1c1b24;border-top:1px solid #2f2d3d;padding:.625em 1.25em .75em}
.wp-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5em}
.wp-answers span{height:3.625em;display:grid;place-items:center;border:.0833em solid #a594ff;border-radius:.875em;color:#a594ff;font-weight:700;white-space:nowrap;transition:background-color .25s,color .25s}
.wp-under{display:flex;justify-content:space-between;margin:.25em -.5em 0;color:#9b98b3;font-size:1.0625em;font-weight:500}
.wp-under span{display:flex;align-items:center;gap:.12em;padding:.47em .35em}
.wp-under .i{width:1.06em;height:1.06em;stroke-width:2}
@keyframes wp-rise{from{transform:translateY(100%)}to{transform:none}}
.js .side.is-in .wp-answer{animation:wp-rise .6s cubic-bezier(.2,.7,.2,1) .35s backwards}
@media (hover:hover){.side:hover .wp-answers span:first-child{background:#a594ff;color:#15141c}}

/* ---------- Trump by Numbers (trumpbynumbers.pages.dev) ---------- */
.tn{background:#0d0d0d;color:#fff;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;padding:1.25em 1.5em 0}
.tn-head{position:relative}
.tn-ctrls{position:absolute;right:0;top:0;display:flex;gap:.5em}
.tn-ctrls span{width:2.375em;height:2.375em;display:grid;place-items:center;border-radius:.625em;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);color:#c3c2b7}
.tn-ctrls .i{width:1.125em;height:1.125em;stroke-width:1.8}
.tn-title{font:700 2.625em/1.03 Georgia,"Times New Roman",Times,serif;letter-spacing:-.015em}
.tn-title em{font-style:normal;color:#e66767}
.tn-lede{margin-top:.9333em;font-size:.9375em;color:#c3c2b7}
.tn-tabs{display:flex;gap:.1875em;margin-top:1.625em;padding:.25em;border-radius:.75em;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.043);overflow:hidden;white-space:nowrap;-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
.tn-tabs span{flex:none;font-size:.8125em;font-weight:600;line-height:1.3;padding:.6154em 1.077em;border-radius:.6154em;color:#c3c2b7}
.tn-tabs span.is-on{background:rgba(255,255,255,.1);color:#fff}
.tn-cat{margin-top:3em;padding-bottom:.77em;border-bottom:1px solid rgba(255,255,255,.1);font-size:.8125em;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#c3c2b7}
.tn-tile{position:relative;margin-top:1em;background:#1a1a19;border:1px solid rgba(255,255,255,.1);border-radius:1em;padding:1.5em 1.5em 1.125em}
.tn-share{position:absolute;right:.9375em;top:.9375em;width:1.875em;height:1.875em;display:grid;place-items:center;color:#898781}
.tn-share .i{width:1em;height:1em;stroke-width:1.8}
.tn-name{margin-top:.4em;font-size:.9375em;font-weight:550;color:#c3c2b7}
.tn-qual{font-size:.75em;font-weight:500;color:#898781}
.tn-hero{margin-top:.27em;font-size:3.25em;font-weight:660;letter-spacing:-.02em;line-height:1}
.tn-delta{margin-top:.92em;font-size:.8125em;font-weight:550;color:#d03b3b}
.tn-asof{margin-top:.83em;font-size:.75em;font-weight:550;color:#c3c2b7}
.tn-sub{margin-top:.64em;font-size:.78125em;color:#898781}
.tn-bars{display:grid;gap:.5625em;margin-top:1.125em}
.tn-bars div{display:grid;grid-template-columns:7.3333em minmax(0,1fr) auto;gap:.8333em;align-items:center;font-size:.75em}
.tn-bars span{color:#c3c2b7}
.tn-bars u{display:block;height:.8333em;border-radius:.3333em;background:#2c2c2a;overflow:hidden}
.tn-bars u i{display:block;height:100%;width:var(--w);border-radius:.3333em;background:var(--c);transform-origin:0 50%}
.tn-bars b{min-width:2.1em;text-align:right;font-weight:400}
.tn-foot{display:grid;gap:.35em;margin-top:.52em;padding-top:1.2em;border-top:1px solid rgba(255,255,255,.1);font-size:.71875em;color:#898781}
.tn-foot b{font-weight:550;color:#c3c2b7}
@keyframes tn-grow{from{transform:scaleX(0)}to{transform:none}}
.js .side.is-in .tn-bars div:nth-child(1) u i{animation:tn-grow .9s cubic-bezier(.2,.7,.2,1) .45s backwards}
.js .side.is-in .tn-bars div:nth-child(2) u i{animation:tn-grow .9s cubic-bezier(.2,.7,.2,1) .6s backwards}
