/* Digipals landing page: styles */
@font-face{font-family:"EL";src:url(../fonts/ElectromagneticLungs.otf) format("opentype");font-display:block}
/* the logo font for small text, minus its slash: "/" falls back to the normal font (client) */
@font-face{font-family:"ELs";src:url(../fonts/ElectromagneticLungs.otf) format("opentype");font-display:block;unicode-range:U+0020-002E,U+0030-007E,U+00A0-00FF}
@font-face{font-family:"Nebula";src:url(../fonts/Nebula-Regular.otf) format("opentype");font-display:block}
:root{
  --bg:#f5f5f5; --ink:#8a8b91; --ink2:#9fa0a6; --ink3:#b1b2b7; --brand:#5f6066;
  --gutter:clamp(16px,1.7vw,40px); --radius:clamp(10px,.95vw,20px);
  --ease:cubic-bezier(.2,.7,.2,1);
  --sans:"Manrope",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box;margin:0}
html,body{height:100%;overflow:hidden}
html{background:var(--bg)}
body{font-family:var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased;height:100svh;display:flex;flex-direction:column;background:var(--bg)}
/* the paper grain belongs to the site look only (?look=site, which js/looks.js marks html.look-site): the other looks cover or hide it, and without this
   every visitor fetched the 484 KB picture for a layer nobody saw. The picture is kept in the repo but not put on the live site (.vercelignore; the owner's
   call, Nov 23), so it shows in a local preview only: there the site look has it, and the easter-egg pop-up (css/egg.css) fetches it when first opened */
html.look-site body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:url("../assets/grain.webp") 0 0/760px 760px repeat;mix-blend-mode:multiply;opacity:.08}
a{color:inherit;text-decoration:none}

/* the globe: line work only, a backdrop that turns as the drum turns */
#globe{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}

.top{position:relative;z-index:2;padding:calc(var(--gutter) * .65) var(--gutter) 0}   /* smaller banner (client) */
.brand{font-family:"EL",system-ui,sans-serif;font-size:clamp(26px,2.2vw,42px);font-weight:400;line-height:1;color:var(--brand);text-align:center}   /* centred in the banner tab (client) */
.tagline{margin-top:clamp(6px,.8vw,14px);font-size:clamp(14px,1.1vw,18px);line-height:1.3;color:var(--ink)}
.foot{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:0 var(--gutter) calc(var(--gutter) + 52px);font-size:12px;color:var(--ink2)}
.foot a{font-size:13px;font-weight:500;color:var(--ink)}
.foot a:hover{color:var(--brand)}

/* ---------- the drum ---------- */
.stage{flex:1;min-height:0;position:relative;z-index:1;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.stage.is-dragging{cursor:grabbing}
.viewport{position:absolute;inset:0;overflow:hidden;perspective:1700px;
  -webkit-mask-image:linear-gradient(-32deg,transparent 0,#000 14%,#000 86%,transparent 100%);
          mask-image:linear-gradient(-32deg,transparent 0,#000 14%,#000 86%,transparent 100%)}   /* fade along the diagonal (client) */
.drum{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d}
.face{position:absolute;left:0;top:0;width:var(--w);height:var(--h);margin:calc(var(--h)/-2) 0 0 calc(var(--w)/-2);
  border-radius:var(--radius);overflow:hidden;isolation:isolate;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  background:#d9d9d9;border:1px solid rgba(138,139,145,.35);-webkit-user-drag:none}
.face .media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:calc(.82 + .18 * var(--c,0));pointer-events:none}
.face::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:rgb(var(--a2,140 100 255));mix-blend-mode:color;opacity:calc((1 - var(--c,0)) * .85)}   /* the cards behind take on the page's colour (client), instead of going grey */
.face::before{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;background:var(--bg);opacity:var(--fade,0)}
.face.charcoal .media{object-position:40% 50%}
.face.lasttest .media{object-position:61% 50%}   /* the film is wider than the card: the card keeps the part with the figure in it. The file is the middle 1160 of the 1920 x 1080 film (from 520 across); 61% of that shows what 66% of the whole film did */
/* Coming soon: frosted glass with its name in the middle */
.face.soon{background:linear-gradient(150deg,#f4f4f7,#e6e6ef 55%,#dcdcea);   /* solid again (client: the see-through version looked murky) */border:1px solid rgba(150,150,170,.45);box-shadow:inset 0 1px 0 #fff}
.face.soon::after{display:none}
.face.soon span{position:absolute;inset:0;display:grid;place-items:center;font:400 clamp(14px,1.2vw,19px)/1 "Nebula",var(--sans);letter-spacing:.04em;color:#5f6066}
.face:focus-visible{outline:1.5px solid var(--brand);outline-offset:4px}

/* "+" marks just outside the front card */
.reg{--p:15px;--t:1.2px;--o:18px;position:absolute;left:50%;top:50%;pointer-events:none;width:calc(var(--w) + 2 * var(--o));height:calc(var(--h) + 2 * var(--o));translate:-50% -50%;opacity:0;scale:.96;transition:opacity .15s,scale .15s;
  background:
    linear-gradient(var(--ink),var(--ink)) 0 calc(var(--p)/2 - var(--t)/2)/var(--p) var(--t) no-repeat,
    linear-gradient(var(--ink),var(--ink)) calc(var(--p)/2 - var(--t)/2) 0/var(--t) var(--p) no-repeat,
    linear-gradient(var(--ink),var(--ink)) 100% calc(var(--p)/2 - var(--t)/2)/var(--p) var(--t) no-repeat,
    linear-gradient(var(--ink),var(--ink)) calc(100% - var(--p)/2 + var(--t)/2) 0/var(--t) var(--p) no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 calc(100% - var(--p)/2 + var(--t)/2)/var(--p) var(--t) no-repeat,
    linear-gradient(var(--ink),var(--ink)) calc(var(--p)/2 - var(--t)/2) 100%/var(--t) var(--p) no-repeat,
    linear-gradient(var(--ink),var(--ink)) 100% calc(100% - var(--p)/2 + var(--t)/2)/var(--p) var(--t) no-repeat,
    linear-gradient(var(--ink),var(--ink)) calc(100% - var(--p)/2 + var(--t)/2) 100%/var(--t) var(--p) no-repeat}
.reg.on{opacity:1;scale:1;transition:opacity .35s var(--ease) .1s,scale .5s var(--ease) .1s}

/* side caption and dial */
.info{position:absolute;left:var(--gutter);top:50%;translate:0 -50%;max-width:calc(50% - var(--w)/2 - var(--gutter) - 48px)}
.info .idx{font:900 12px/1 "Doto",var(--sans);letter-spacing:.06em;color:var(--ink2)}
.info .pname{font:400 clamp(20px,2vw,34px)/1.1 "Nebula",var(--sans);letter-spacing:.03em;color:#5f6066;margin:12px 0 6px}
.info .psub{font-size:clamp(14px,1.1vw,18px);line-height:1.3;color:var(--ink)}
.info .url{display:inline-block;margin-top:16px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);border-bottom:1px solid var(--ink3)}
.info .url:hover{color:var(--brand);border-bottom-color:var(--brand)}
.info > *{transition:opacity .3s var(--ease)}
.info.swap > *{opacity:0;transition-duration:.12s}
.dial{position:absolute;right:var(--gutter);top:50%;translate:0 -50%;display:grid;justify-items:end;gap:10px;color:var(--ink2);pointer-events:none;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.dial .ticks{display:grid;gap:7px;justify-items:end;margin:6px 0}
.dial .tick{width:14px;height:1px;background:var(--ink3);transition:width .3s var(--ease),background-color .3s}
.dial .tick.on{width:34px;background:var(--brand)}
.dial .deg{font:900 12px/1 "Doto",var(--sans);letter-spacing:.06em;color:var(--ink);font-variant-numeric:tabular-nums}

@media (max-width:900px){.info,.dial{display:none}}
@media (prefers-reduced-motion:reduce){.reg,.reg.on,.info > *,.dial .tick{transition:none}}

/* Coming soon backdrop, as on 59: the white gradient, the pastel 3D structure on the right and the figure, faded in while Coming soon faces front */
#grad{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:0;background:radial-gradient(120% 70% at 50% 18%,rgba(214,214,218,.25),rgba(214,214,218,0) 70%),radial-gradient(60% 55% at 0% 52%,rgba(222,232,225,.45),rgba(222,232,225,0) 70%),radial-gradient(60% 55% at 100% 52%,rgba(222,232,225,.45),rgba(222,232,225,0) 70%),linear-gradient(180deg,#ececee 0%,#f0f1f0 30%,#f2f5f2 55%,#f8f9f5 74%,#fcfcfa 88%,#fefefd 100%);filter:blur(0)}
#struct{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:0}
#ghost{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:0;mix-blend-mode:normal}
#ghost canvas{opacity:1;filter:invert(1) contrast(1.35)}   /* figure on the left again (client) */
#struct canvas{transform:none}   /* the 3D panels move to the left to balance her */   /* the figure in inverse (client) */   /* behind the globe and softer, so the orb reads in front of her (client) */   /* drawn normally: multiply hid it on the dark pages (client) */
#ghost canvas{position:absolute;inset:0;width:100%;height:100%}

/* ===== 59.2 (client): 59c's globe and drum, with one strong colour per project, everything else in white (ref: Tsubi Club),
   the backdrop shown in that colour's shades (ref: tinted card tops), a faint grid, and the number block on the left ===== */
:root{--pg:rgb(40,41,50);--ink:#fff;--ink2:rgba(255,255,255,.86);--ink3:rgba(255,255,255,.55);--brand:#fff}
html,body{background-color:var(--pg)}
#grid{position:fixed;inset:0;z-index:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:max(100vw / 8, 94px) max(100vw / 8, 94px);background-position:center center;
  -webkit-mask-image:radial-gradient(circle var(--r,40vh) at var(--cx,50vw) var(--cy,50vh),transparent 99.6%,#000 100%);mask-image:radial-gradient(circle var(--r,40vh) at var(--cx,50vw) var(--cy,50vh),transparent 99.6%,#000 100%)}   /* the grid runs behind the orb, not through it (client) */
#grad{display:none}
#orb{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}   /* the orb's body, above the colour layer so it stays a neutral dark (client) */
#glow{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;mix-blend-mode:screen}   /* above the colour layer, so the glow keeps its own vivid accent */
#grain{display:none;position:fixed;inset:0;z-index:0;pointer-events:none;mix-blend-mode:overlay;opacity:.5}
#glow2{position:fixed;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;mix-blend-mode:screen}   /* the underside glow, in front of the cards so it isn't hidden (client) */
#tintL{position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--pg);mix-blend-mode:color}
.face{border-color:rgba(255,255,255,.18)}
.face.soon span{color:var(--pg)}
.info{width:min(400px,calc(50% - var(--w)/2 - var(--gutter) - 48px));max-width:none;--nf:clamp(48px,4.8vw,70px)}
.info .fplate{position:relative;width:100%;height:calc(var(--nf) + 24px);margin-bottom:8px;overflow:hidden;background:#fff;color:var(--pg)}
.info .fplate .idx{position:absolute;left:16px;top:13px;color:var(--pg)}
.info .fplate .pname{position:absolute;left:16px;bottom:14px;margin:0;max-width:calc(100% - var(--nf) * 1.1 - 46px);white-space:nowrap;font-size:clamp(17px,1.75vw,27px);color:var(--pg)}   /* bigger project name (client) */
.info .fplate b{position:absolute;right:12px;bottom:calc(var(--nf) * -.15);font:400 var(--nf)/1 "EL",system-ui,sans-serif;color:var(--pg)}
.info .fplate s{position:absolute;right:8px;top:6px;text-decoration:none;font:400 13px/1 ui-monospace,Menlo,monospace;opacity:.7}
.info .fplate q{position:absolute;left:0;top:0;bottom:0;width:5px;quotes:none;background-image:radial-gradient(var(--pg) .8px,transparent 1px);background-size:5px 5px;opacity:.6}
.info .psub{color:#fff}
/* the description and the link share one line: description left, link right-aligned under the block's edge (client) */
.info .prow{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.info .prow .url{margin-top:0;flex:none;border-bottom:0;font:400 26px/1 "EL",system-ui,sans-serif;letter-spacing:0;text-transform:none}   /* arrow only, bigger, drawn in the logo font's own ↗ (client) */
/* the cursor from the original site: a small inverting dot that turns into a decoding [ label ] over the cards (mouse only) */
.cursor,.cursor-code,#trail{display:none}
@media (hover:hover) and (pointer:fine){
  html.has-cursor,html.has-cursor *{cursor:none!important}
  .cursor{display:block;position:fixed;left:0;top:0;width:12px;height:12px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;pointer-events:none;z-index:2147483600;   /* plain white, no inverting (client) */
    opacity:0;transition:opacity .2s,scale .25s var(--ease)}
  .cursor.is-visible{opacity:1}
  .cursor.inv,.cursor-code.inv{mix-blend-mode:difference}   /* over a card's picture the dot inverts (client) */
  .cursor.is-down{scale:.85}
  .cursor.is-link{opacity:0}
  .cursor-code{display:block;position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;z-index:2147483600;font:500 13px/1 ui-monospace,"SF Mono",Menlo,monospace;opacity:0;transition:opacity .2s}
  .cursor-code.is-visible{opacity:1}
  .cc-chip{position:absolute;left:0;top:0;translate:-50% -50%;scale:.9;white-space:pre;color:#fff;opacity:0;transition:opacity .18s,scale .25s var(--ease)}
  .cc-chip::before{content:"[ "}
  .cc-chip::after{content:" ]"}
  .cc-chip .scr-g{color:#fff}
  .cursor-code.is-link .cc-chip{opacity:1;scale:1}
  #trail{display:block;position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2147483590}
}
.info .scr-g{color:#9b8cff}
.info .url{white-space:pre}

/* the top band with the tab under the logo, and the bottom-right project panel, from 59 (client); white and see-through on the colour */
#banner{position:fixed;left:0;top:0;width:100%;height:96px;z-index:2;pointer-events:none;color:#fff}
#banner svg{display:block;width:100%;height:100%;overflow:visible}
/* the strip and the tab are solid inside one faded group, so their overlap can't show (client) */
#banner #bannerEdge{fill:none;stroke:rgba(255,255,255,.5);stroke-width:1}   /* crisp, not feathered (client) */
@media (max-width:760px){#banner{height:84px}}
#gm{position:fixed;right:22px;bottom:58px;width:432px;height:105px;z-index:20;opacity:0;transform:translateY(8px);transition:opacity .35s ease,transform .35s ease;pointer-events:none;font-family:var(--mono)}
#gm.on{opacity:1;transform:none;pointer-events:auto}
#gm .bg{position:absolute;inset:0;clip-path:path('M 22.5 65 H 160 C 187.5 65 195 57.5 195 37.5 V 27.5 C 195 7.5 207.5 0 227.5 0 H 412.5 C 432.5 0 437.5 15 430 32.5 L 415 70 C 403.75 95 385 105 355 105 H 22.5 C 10 105 0 95 0 85 C 0 75 10 65 22.5 65 Z');background:var(--m-bg)}
#gm svg.ol{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#gm .tab{position:absolute;left:212px;right:30px;top:19px;height:40px;color:var(--m-ey)}
#gm .ey{display:flex;align-items:center;gap:6px;font:600 9.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--m-ey)}
#gm .ey i{width:5px;height:5px;border-radius:50%;background:#9b8cff;animation:none}
#gm .ey em{font-style:normal;font-family:"Doto",var(--mono);font-weight:900;letter-spacing:.06em;font-size:11px;color:var(--m-ey)}
#gm b{display:block;margin:0 0 5px;font:400 14px/1.1 "Nebula",var(--serif);letter-spacing:.02em;color:var(--m-t);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#gm .sub{font-size:12.5px;font-weight:500;color:var(--m-s);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#gm .ey a{margin-left:auto;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:#3f4046;text-decoration:none;border-bottom:1px solid #8a8b91}
#gm .ey a:hover{color:#3f4046;border-color:#3f4046}
#gm .bar{position:absolute;left:28px;top:76px;height:26px;display:flex;align-items:center;gap:6px}
#gm .bar button{position:relative;height:20px;min-width:34px;padding:0 9px;border-radius:10px;border:0;background:var(--m-p);font:900 11px/1 "Doto",var(--mono);letter-spacing:.06em;color:var(--m-pt);cursor:pointer;transition:background .2s,color .2s}
#gm .bar button:hover{background:var(--m-h);color:var(--m-ht)}
#gm .bar button[aria-current="true"]{background:var(--m-on);color:var(--m-ont)}
#gm .bar button:focus{outline:none}
#gm .bar button:focus-visible{outline:1.5px solid var(--m-ar);outline-offset:2px}
#gm .bar button[aria-current="true"]::before{content:"";position:absolute;left:50%;top:-6px;margin-left:-6px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:4px solid var(--m-ar)}
#gm .bar .lbl{font:600 9px/1 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--m-l);margin-left:4px}
#gm{--m-bg:#dcdcde;--m-ey:#5f6066;--m-t:#2b2c31;--m-s:#45464c;--m-p:#ececee;--m-pt:#45464c;--m-h:#f6ff9a;--m-ht:#55565c;--m-on:#f0ff00;--m-ont:#3f4046;--m-ar:#d6e000;--m-l:#6f7076}
@media (max-width:760px){#gm{right:8px;bottom:96px;transform-origin:100% 100%;scale:.78}}
#gm{--m-bg:linear-gradient(to top,rgb(var(--a2,140 100 255) / .34),rgba(255,255,255,.1) 75%);--m-ey:#fff;--m-t:#fff;--m-s:rgba(255,255,255,.86);--m-p:rgba(255,255,255,.2);--m-pt:#fff;--m-h:rgba(255,255,255,.4);--m-ht:#fff;--m-on:#fff;--m-ont:var(--pg);--m-ar:#fff;--m-l:rgba(255,255,255,.7);
  right:var(--gutter);bottom:var(--gutter);z-index:3;opacity:1;transform:none;pointer-events:auto}
#gm .gmail{display:inline-block;font:500 14px/1.2 var(--sans);color:#fff;white-space:pre}
#gm .gmail .scr-g{color:#9b8cff}
#gm .gloc{margin-top:8px;font:400 12px/1 var(--sans);color:rgba(255,255,255,.8);font-variant-numeric:tabular-nums}
#gm .gloc .sep{opacity:.5}
.foot{display:none}
/* the lower strip: the drum's Face readout, ticks and turning angle (client) */
#gm .fbar{position:absolute;left:30px;top:76px;height:26px;display:flex;align-items:center;gap:12px;color:rgba(255,255,255,.86);font:600 9px/1 var(--sans);letter-spacing:.18em;text-transform:uppercase}
#gm .fbar .fticks{margin:0;height:12px}
#gm .fbar .deg{font:900 12px/1 "Doto",var(--sans);letter-spacing:.06em;color:#fff;font-variant-numeric:tabular-nums}   /* the email and city now live in the panel (client) */
#gm .fface{display:flex;justify-content:space-between;align-items:baseline;font:600 9.5px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.86)}
#gm .fface .deg{font:900 13px/1 "Doto",var(--sans);letter-spacing:.06em;color:#fff;font-variant-numeric:tabular-nums}
#gm .fticks{display:flex;gap:6px;align-items:flex-end;margin-top:12px;height:12px}
#gm .fticks i{width:1px;height:6px;background:rgba(255,255,255,.55);transition:height .3s var(--ease),background-color .3s}
#gm .fticks i.on{height:12px;background:#fff}
.dial{display:none!important}   /* its readout now lives in the panel's tab (client: no doubling) */

/* the portal glow, built the way sparkchat.so builds its hover glow: gradient layers, masked rings and a fixed blur, kept on the GPU;
   one pre-coloured stack per project, cross-faded by opacity as the drum turns, so nothing is repainted per frame (client: performance) */
#gstack{position:fixed;inset:0;z-index:0;pointer-events:none;mix-blend-mode:screen}
#gstack .gs{position:absolute;inset:0;opacity:0;will-change:opacity}
#gstack .rise{position:absolute;left:-15%;right:-15%;bottom:-6%;height:110%;
  background:radial-gradient(ellipse 70% 95% at 50% 100%,rgb(var(--g0)) 0%,rgb(var(--g0) / .95) 10%,rgb(var(--g1) / .9) 24%,rgb(var(--g2) / .8) 42%,rgb(var(--g2) / .35) 62%,transparent 82%)}
#gstack .orb{position:absolute;left:calc(var(--cx) - var(--r) * 1.3);top:calc(var(--cy) - var(--r) * 1.3);width:calc(var(--r) * 2.6);height:calc(var(--r) * 2.6)}
#gstack .lift{position:absolute;inset:11.54%;border-radius:50%;background:radial-gradient(circle at 50% 112%,rgb(var(--g0) / .7) 0%,rgb(var(--g1) / .4) 24%,rgb(var(--g2) / .15) 48%,transparent 72%)}
#gstack .ring{position:absolute;inset:0;border-radius:50%}
#gstack .soft{background:radial-gradient(circle closest-side,transparent 62%,rgb(var(--g2)) 73%,rgb(var(--g1)) 78%,rgb(var(--g2)) 82%,transparent 96%);filter:blur(24px);
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.12) 15%,#000 80%);mask-image:linear-gradient(to bottom,rgba(0,0,0,.12) 15%,#000 80%)}
#gstack .mid{background:radial-gradient(circle closest-side,transparent 71%,rgb(var(--g1)) 76%,rgb(var(--g1)) 77.6%,transparent 83%);filter:blur(5px);
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.3) 10%,#000 75%);mask-image:linear-gradient(to bottom,rgba(0,0,0,.3) 10%,#000 75%)}
#gstack .core{background:radial-gradient(circle closest-side,transparent 75.9%,rgb(var(--g0)) 76.6%,rgb(var(--g0)) 77.2%,transparent 77.9%);
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.55) 10%,#000 70%);mask-image:linear-gradient(to bottom,rgba(0,0,0,.55) 10%,#000 70%)}

/* the glow widens toward the bottom: each further ring is wider and blurrier and only shows lower down (client) */
#gstack .wide{inset:-8%;background:radial-gradient(circle closest-side,transparent 60%,rgb(var(--g1)) 70%,rgb(var(--g2)) 77%,transparent 100%);filter:blur(42px);
  -webkit-mask-image:linear-gradient(to bottom,transparent 38%,rgba(0,0,0,.6) 62%,#000 84%);mask-image:linear-gradient(to bottom,transparent 38%,rgba(0,0,0,.6) 62%,#000 84%)}
#gstack .huge{inset:-30%;background:radial-gradient(circle closest-side,transparent 40%,rgb(var(--g2)) 56%,rgb(var(--g1) / .85) 64%,rgb(var(--g2) / .5) 76%,transparent 100%);filter:blur(80px);
  -webkit-mask-image:linear-gradient(to bottom,transparent 42%,rgba(0,0,0,.75) 66%,#000 86%);mask-image:linear-gradient(to bottom,transparent 42%,rgba(0,0,0,.75) 66%,#000 86%)}
/* light pooling along the bottom edge */
#gstack .bloom{position:absolute;left:-6%;right:-6%;top:70%;height:42%;border-radius:50%;
  background:radial-gradient(ellipse 50% 45% at 50% 50%,#fff 0%,rgba(255,255,255,.95) 10%,rgb(var(--g0) / .9) 20%,rgb(var(--g1) / .8) 34%,rgb(var(--g2) / .55) 62%,transparent 100%);filter:blur(36px)}

/* the progressive glow: each layer is a crescent, a circle pushed down by --d and grown by --d with the orb cut out of it,
   so it is zero width at the top and widest at the bottom; each further layer is pushed further, blurred more and in the next colour band */
#gstack .cw{position:absolute;inset:0}
#gstack .cres{position:absolute;left:calc(var(--cx) - var(--r) - var(--d));top:calc(var(--cy) - var(--r));width:calc((var(--r) + var(--d)) * 2);height:calc((var(--r) + var(--d)) * 2);border-radius:50%;background:var(--cc);
  -webkit-mask-image:radial-gradient(circle var(--r) at calc(var(--r) + var(--d)) var(--r),transparent 99.4%,#000 100%);mask-image:radial-gradient(circle var(--r) at calc(var(--r) + var(--d)) var(--r),transparent 99.4%,#000 100%)}
#gstack .c0{--d:calc(var(--r) * .035);--cc:rgb(var(--g0));filter:blur(2px)}
#gstack .c1{--d:calc(var(--r) * .11);--cc:rgb(var(--g1) / .9);filter:blur(12px)}
#gstack .c2{--d:calc(var(--r) * .26);--cc:rgb(var(--g2) / .85);filter:blur(34px)}
/* a white-hot crescent on the bottom rim: the underside reads as glowing hotter (client) */
#gstack .cw4{--d:calc(var(--r) * .16);--cc:#fff;filter:blur(14px)}
#gstack .cw5{--d:calc(var(--r) * .05);--cc:#fff;filter:blur(3px)}
#gstack .c3{--d:calc(var(--r) * .5);--cc:rgb(var(--g2) / .6);filter:blur(80px)}
#gstack .gs[data-i="0"]{--g0:235 245 255;--g1:110 210 255;--g2:140 100 255}
#gstack .gs[data-i="1"]{--g0:235 240 255;--g1:120 200 255;--g2:190 90 255}
#gstack .gs[data-i="2"]{--g0:255 236 200;--g1:255 150 60;--g2:255 60 120}
#gstack .gs[data-i="3"]{--g0:255 238 246;--g1:255 140 200;--g2:214 80 255}

/* ===== portal look (client ref: Story / Rally orbs) ===== */
/* the inside glows in from the edge, mostly along the lower half; the centre and top stay dark */
#gstack .lift{background:radial-gradient(circle at 50% 34%,transparent 46%,rgb(var(--g2) / .22) 66%,rgb(var(--g2) / .55) 84%,rgb(var(--g1) / .75) 95%,rgb(var(--g0) / .9) 100%)!important}
/* a thin bright rim that changes colour as it goes round: the outer colour at the top, white on the sides, the middle colour at the bottom */
#gstack .core{background:linear-gradient(to bottom,rgb(var(--g2)) 0%,#fff 48%,#fff 58%,rgb(var(--g1)) 100%)!important;
  -webkit-mask-image:radial-gradient(circle closest-side,transparent 75.7%,#000 76.4%,#000 77.1%,transparent 77.8%)!important;mask-image:radial-gradient(circle closest-side,transparent 75.7%,#000 76.4%,#000 77.1%,transparent 77.8%)!important}
#gstack .core2{background:linear-gradient(to bottom,rgb(var(--g2)) 0%,rgb(var(--g0)) 50%,rgb(var(--g1)) 100%);filter:blur(6px);opacity:.9;
  -webkit-mask-image:radial-gradient(circle closest-side,transparent 72%,#000 76.2%,#000 77.4%,transparent 81%);mask-image:radial-gradient(circle closest-side,transparent 72%,#000 76.2%,#000 77.4%,transparent 81%)}
/* the outer glow hugs the edge: tighter and calmer than before */
#gstack .c3{opacity:.35}
#gstack .cw4{--d:calc(var(--r) * .08)!important;filter:blur(8px)!important;opacity:.7}
#gstack .bloom{opacity:.45}
#gstack .rise{opacity:.55}
#grain{display:none!important}   /* no grain (client) */

/* tone switch, top right: Dark or Current background colours */
#meshsw{position:fixed;top:var(--gutter);right:calc(var(--gutter) + 168px);z-index:5;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#meshsw span{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-right:6px}
#meshsw button{all:unset;cursor:pointer;width:24px;height:22px;display:grid;place-items:center;border-radius:999px;font:900 11px/1 "Doto",var(--sans);color:rgba(255,255,255,.85)}
#meshsw button[aria-pressed="true"]{background:#fff;color:var(--pg)}

/* a measuring line across the bottom of the background (client ref): a thin rule with small ticks and taller end ticks; it lives on the grid layer, behind everything */
#ruler{position:absolute;left:var(--gutter);right:var(--gutter);bottom:var(--gutter);height:14px;border-bottom:1px solid rgba(255,255,255,.18);
  background:repeating-linear-gradient(to right,rgba(255,255,255,.22) 0 1px,transparent 1px 64px) left bottom/100% 7px no-repeat}
#ruler::before,#ruler::after{content:"";position:absolute;bottom:0;width:1px;height:14px;background:rgba(255,255,255,.3)}
#ruler::before{left:0}
#ruler::after{right:0}

/* card corners switch: Round (as 59c) or Square, matching the left number block (client) */
#cornersw{position:fixed;top:var(--gutter);right:calc(var(--gutter) + 168px + 182px);z-index:5;display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#cornersw button{all:unset;cursor:pointer;padding:6px 12px;border-radius:999px;font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.8)}
#cornersw button[aria-pressed="true"]{background:#fff;color:var(--pg)}
html.sq .face,html.sq .face .media{border-radius:0}
html:not(.sq) .info .fplate{border-radius:var(--radius)}   /* Round mode: the left block is rounded too, like the cards (client) */
html.sq #gm .bg{clip-path:path('M 0 65 H 175 L 195 45 V 0 H 432 V 105 H 0 Z')!important}

/* mobile (client: the project description was missing): the left block sits above the card, under the banner, full width and compact */
@media (max-width:900px){
  .info{display:block;top:calc(var(--band-h,84px) + 10px);translate:none;left:var(--gutter);right:var(--gutter);width:auto;max-width:none;z-index:3;--nf:38px}
  .info .fplate{margin-bottom:6px}
  .info .fplate .pname{font-size:18px;bottom:11px}
  .info .psub{font-size:14px}
}
/* the compare switches (Round/Square, Mesh, Dark/Current) cover the logo at phone width: off on phones for now */
@media (max-width:760px){#meshsw,#cornersw,#layoutsw{display:none}}

/* layout switch (Cards / Cinema), under the top-right controls */
#layoutsw{position:fixed;top:calc(var(--gutter) + 38px);right:var(--gutter);z-index:5;display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#layoutsw button{all:unset;cursor:pointer;padding:6px 12px;border-radius:999px;font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.8)}
#layoutsw button[aria-pressed="true"]{background:#fff;color:var(--pg)}

/* Cinema (client): the project line runs under the front film: index left, name centred, description and arrow right; no plate */
@media (min-width:901px){
  html.cinema .info{left:50%;top:calc(50% + var(--h) / 2 + 26px);translate:-50% 0;width:var(--w);max-width:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline;column-gap:24px}
  html.cinema .info .fplate{display:contents}
  html.cinema .info .prow{grid-column:3;justify-self:end;display:flex;align-items:baseline;gap:8px}
  html.cinema .info .fplate > *{position:static!important}
  html.cinema .info .fplate b,html.cinema .info .fplate q,html.cinema .info .fplate s{display:none}
  html.cinema .info .idx{grid-column:1;justify-self:start;color:rgba(255,255,255,.6)}
  html.cinema .info .pname{grid-column:2;margin:0;max-width:none;font-size:clamp(20px,2.1vw,32px);letter-spacing:.06em;color:#fff}
  html.cinema .info .psub{font-size:14px;color:rgba(255,255,255,.75);white-space:nowrap}
  html.cinema .info .url{font-size:18px}
  html.cinema .face{border-radius:calc(var(--radius) * .7)}
  html.cinema:not([data-reel="1"]) .viewport{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%)!important;mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%)!important}   /* sideways reels fade out left and right */
  html.cinema .viewport{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 84%,transparent 100%)}   /* the reel fades out top and bottom */
  html.cinema:is([data-reel="1"],[data-reel="2"]) .face[tabindex="-1"]{opacity:.35!important}   /* the films behind stay quiet, so the front one reads as a single letterbox */
}

/* bottom line (client): no panel shape; one line on the ruler: the Face readout at the left (after the cube), city + time and the email at the right */
#gm{left:calc(var(--gutter) + 64px);right:var(--gutter);width:auto;height:28px;bottom:calc(var(--gutter) + 6px);display:flex;align-items:center;gap:28px;scale:none}
#gm .bg,#gm svg.ol{display:none}
#gm .fbar{position:static}
#gm .tab{position:static;margin-left:auto;width:auto;height:auto;display:flex;align-items:center;gap:28px}
#gm .tab .gmail{order:2;font-size:15px}
#gm .tab .gloc{order:1;margin-top:0;font-size:13px}
@media (max-width:760px){#gm{left:calc(var(--gutter) + 40px);bottom:calc(var(--gutter) + 6px);scale:none;right:var(--gutter)} #gm .fbar{display:none} #gm .tab{gap:14px} #gm .tab .gloc{font-size:11px} #gm .tab .gmail{font-size:13px}}
@media (max-width:760px){#layoutsw{display:none}}

/* Reel switch (Cinema only) */
#reelsw{position:fixed;right:var(--gutter);z-index:5;display:none;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
html.cinema #reelsw{display:flex}
#reelsw span{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-right:6px}
#reelsw button{all:unset;cursor:pointer;width:24px;height:22px;display:grid;place-items:center;border-radius:999px;font:900 11px/1 "Doto",var(--sans);color:rgba(255,255,255,.85)}
#reelsw button[aria-pressed="true"]{background:#fff;color:var(--pg)}
/* the test switches stack in one column at the top right, so they never run into the centred logo (client) */
#meshsw,#cornersw,#layoutsw,#reelsw{right:var(--gutter)!important;left:auto!important}
#cornersw{top:var(--gutter)!important}
#meshsw{top:calc(var(--gutter) + 38px)!important}
#layoutsw{top:calc(var(--gutter) + 76px)!important}
#reelsw{top:calc(var(--gutter) + 152px)!important}
@media (max-width:760px){#reelsw,html.cinema #reelsw{display:none}}
/* the email sits as far in from the right end of the ruler as the cube does from the left (client) */
#gm{right:calc(var(--gutter) + 15px)}

/* Banner switch: no shape mode hides the strip, tab and line, the logo floats on its own (client) */
html.nobanner #banner{display:none}
#layoutsw{top:calc(var(--gutter) + 76px)!important}
#reelsw{top:calc(var(--gutter) + 152px)!important}
html.nobanner .brand{translate:0 18px}   /* with no banner shape the logo sits a little lower (client) */

/* type scale (client: consistent sizes, clear hierarchy)
   1 project name (Nebula, as set)
   2 body: description + email, 14px Manrope, near-white
   3 meta: labels in spaced caps 10px, numbers in Doto 11px, both at 60% white (index, FACE, angle, city, time) */
#gm .tab .gmail{font:500 14px/1 var(--sans);color:rgba(255,255,255,.92)}
#gm .tab .gloc{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6)}
#gm .tab .gloc #gmClock{font:900 11px/1 "Doto",var(--sans);letter-spacing:.06em;text-transform:none}
#gm .fbar{font:600 10px/1 var(--sans);letter-spacing:.14em;color:rgba(255,255,255,.6)}
#gm .fbar .deg{font:900 11px/1 "Doto",var(--sans);letter-spacing:.06em;color:rgba(255,255,255,.6)}
.info .psub{font-size:14px;line-height:1.35;color:rgba(255,255,255,.92)}
@media (min-width:901px){
  html.cinema .info .idx{font:900 11px/1 "Doto",var(--sans);letter-spacing:.06em;color:rgba(255,255,255,.6)}
  html.cinema .info .psub{font-size:14px;color:rgba(255,255,255,.92)}
  html.cinema .info .url{font-size:16px}
}
@media (max-width:760px){#gm .tab .gmail{font-size:13px} #gm .tab .gloc{font-size:9px} #gm .tab .gloc #gmClock{font-size:10px}}
/* numbers in the logo font (client: try): index, Face angle and time use Electromagnetic Lungs, like the big project number */
html.numlogo #gm .tab .gloc #gmClock,html.numlogo #gm .fbar .deg{font:400 12px/1 "ELs",var(--sans);letter-spacing:.04em}
html.numlogo .info .idx,html.numlogo .info .fplate .idx{font:400 12px/1 "ELs",var(--sans);letter-spacing:.04em}
@media (min-width:901px){html.numlogo.cinema .info .idx{font:400 12px/1 "ELs",var(--sans);letter-spacing:.04em;color:rgba(255,255,255,.6)}}
@media (max-width:760px){html.numlogo #gm .tab .gloc #gmClock{font-size:11px}}
/* Numbers switch (Logo / Dots) */
#numsw{position:fixed;right:var(--gutter);top:calc(var(--gutter) + 114px);z-index:5;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#numsw span{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-right:6px}
#numsw button{all:unset;cursor:pointer;padding:6px 12px;border-radius:999px;font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.8)}
#numsw button[aria-pressed="true"]{background:#fff;color:var(--pg)}
#reelsw{top:calc(var(--gutter) + 152px)!important}
@media (max-width:760px){#numsw{display:none}}

/* the time / city swap: the city name reads as a label (spaced caps), the time as numbers */
#gmLoc{cursor:default}
#gmClock{display:inline-block;text-align:right}
#gm .tab .gloc #gmClock.is-city,html.numlogo #gm .tab .gloc #gmClock.is-city{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase}

/* Logo mode: the small labels (FACE, San Francisco) use the logo font too, so the whole meta level is one face (client) */
html.numlogo #gm .fbar > span:first-child{font:400 11px/1 "ELs",var(--sans);letter-spacing:.08em;text-transform:uppercase}
html.numlogo #gm .tab .gloc #gmClock.is-city{font:400 11px/1 "ELs",var(--sans);letter-spacing:.08em;text-transform:uppercase}
/* bottom line (client): every item the same size and sitting on one baseline */
#gm{align-items:baseline}
#gm .fbar,#gm .tab{align-items:baseline;height:auto}
#gm .fbar .fticks{align-self:baseline}
#gm .tab .gmail{font-size:14px;line-height:1}
#gm .fbar,#gm .fbar > span:first-child,#gm .fbar .deg,#gm .tab .gloc,#gm .tab .gloc #gmClock,#gm .tab .gloc #gmClock.is-city{font-size:12px!important;line-height:1!important}
@media (max-width:760px){#gm .tab .gloc,#gm .tab .gloc #gmClock,#gm .tab .gloc #gmClock.is-city{font-size:11px!important} #gm .tab .gmail{font-size:14px!important}}

/* phones: the project block sits a little lower too (client) */
@media (max-width:760px){.info{top:calc(var(--band-h,84px) + 34px)}}


/* phones: the email is 14px, so the city + time is kept on one line with a slightly tighter gap (client) */
@media (max-width:760px){#gm .tab{gap:10px} #gm .tab .gloc,#gmClock{white-space:nowrap}}

/* the ↗ glyph ends ~.07em above its baseline: nudge it down so it lines up with the bottom of the description text (client) */
.info .prow .url{translate:0 .07em}
/* the 01 / 03 index on the white plate reads lighter than the name (client) */
.info .fplate .idx{opacity:.5}


/* over white (the name plate, the Coming soon card) the cursor dot turns the dark page colour (client) */
@media (hover:hover) and (pointer:fine){.cursor.on-light{background:var(--pg);mix-blend-mode:normal}}

/* Intro switch (client: compare the globe draw-in styles) */
#grevsw{position:fixed;right:var(--gutter);top:calc(var(--gutter) + 152px);z-index:5;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#grevsw span{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-right:6px}
#grevsw button{all:unset;cursor:pointer;width:22px;height:22px;display:grid;place-items:center;border-radius:999px;font:600 10px/1 var(--sans);color:rgba(255,255,255,.8)}
#grevsw button[aria-pressed="true"]{background:#fff;color:var(--pg)}
#reelsw{top:calc(var(--gutter) + 190px)!important}
@media (max-width:760px){#grevsw{display:none}}

/* a phone held sideways is too short for the project block to sit above the card (it covered it): there it goes back to the
   left of the card, as on a desktop */
@media (max-width:900px) and (max-height:520px) and (orientation:landscape){
  .info{top:50%;translate:0 -50%;right:auto;width:min(300px,calc(50% - var(--w)/2 - var(--gutter) - 20px));--nf:34px}
}
/* city backgrounds to compare (js/city.js): the canvas sits above the colour layer, so signs keep their own colours, and under the orb */
#city{position:fixed;inset:0;z-index:0;pointer-events:none;-webkit-mask-image:radial-gradient(circle var(--r,40vh) at var(--cx,50vw) var(--cy,50vh),transparent 99.6%,#000 100%);mask-image:radial-gradient(circle var(--r,40vh) at var(--cx,50vw) var(--cy,50vh),transparent 99.6%,#000 100%)}   /* like the grid, the city runs behind the orb, not through it */
#citysw{position:fixed;top:calc(var(--gutter) + 190px);right:var(--gutter);z-index:5;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#citysw span{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-right:6px}
#citysw button{all:unset;cursor:pointer;min-width:24px;height:22px;padding:0 6px;box-sizing:border-box;display:grid;place-items:center;border-radius:999px;font:900 11px/1 "Doto",var(--sans);color:rgba(255,255,255,.85)}
#citysw button[aria-pressed="true"]{background:#fff;color:var(--pg)}
/* looks to compare (js/looks.js): whole-page variations, each with its own css/look-<name>.css */
#looksw{position:fixed;top:calc(var(--gutter) + 228px);right:var(--gutter);z-index:5;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
#looksw span{font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-right:6px}
#looksw button{all:unset;cursor:pointer;padding:6px 10px;border-radius:999px;font:600 10px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.8)}
#looksw button[aria-pressed="true"]{background:#fff;color:var(--pg)}
#reelsw{top:calc(var(--gutter) + 266px)!important}
/* a look is built on the Cards layout and brings its own page: the switches that steer the site's own parts are put away */
html[data-look] :is(#citysw,#layoutsw,#numsw,#grevsw,#reelsw){display:none!important}
@media (max-width:760px){#citysw,#looksw{display:none}}
/* the site shows no Look switch: it is there only when the address asks for it (?compare=1, set as html[data-compare] in js/looks.js), on a wide screen */
html:not([data-compare]) #looksw{display:none!important}
/* phones: the bottom line holds the time and "hello [at] digipals.app" (the address is written that way since Nov 23, the owner's call, and is five
   letters longer), so its two sizes follow the screen's width and the line stays inside its box on a narrow phone; they stop at the sizes set above */
@media (max-width:760px){#gm .tab .gmail{font-size:clamp(9.5px,3.1vw,14px)!important} #gm .tab .gloc,#gm .tab .gloc #gmClock,#gm .tab .gloc #gmClock.is-city{font-size:clamp(8px,2.5vw,11px)!important}}
