/* soldermask -- Slipspace's page, since 18 Nov 2026.

   The product pages' system (system.css) and its parts: the title in the
   name's face and size, the console, the flow, the tiles, the slogan, the
   dock. One colour of its own, red: Slipspace's pip, and the tear the hero
   goes through. Copper keeps its two colours. The hero centres on the axis
   the channel runs down. Motion is eased and slow; nothing blinks. */

body.sys.slip{--blood:#ff2340}

/* ---- tags: every word in the legend face on this page sits in one, filled
   like the menu's Coming tag but solid. Grey for a label, ink for a value,
   red for Slipspace, wine for what is charted, green for a pass. A
   paragraph in the legend face gets the same fill line by line (.tags). */
body.slip .tag{
  display:inline-block;padding:5px 8px 4px;background:#1a1c20;color:#b4b9c0;
  font:500 12px/1.15 var(--mono);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  font-variant-numeric:tabular-nums;vertical-align:middle;
}
body.slip .tag.ink{background:#2a2d33;color:var(--ink)}
body.slip .tag.red{background:var(--blood);color:#fff}
body.slip .tag.wine{background:#55091a;color:#ffc8d0}
body.slip .tag.pass{background:var(--pass);color:#03140a}
body.slip a.tag,body.slip button.tag{border:0;cursor:pointer;text-decoration:none;transition:background .15s,color .15s}
body.slip a.tag:hover,body.slip a.tag:focus-visible,body.slip button.tag:hover,body.slip button.tag:focus-visible{background:var(--ink);color:#000}
body.slip .tags{
  background:#16181b;color:#9aa0a8;padding:4px 8px;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
/* the fill's cloned padding hangs past a full line: room for it */
body.slip .s-cap p,body.slip .s-note{line-height:2.05;padding-right:10px}

/* ---- the hero: the jump behind a centred name ----------------------------- */
.sl-hero{
  position:relative;overflow:hidden;isolation:isolate;
  height:calc(100svh - var(--bar));min-height:600px;
  display:grid;place-items:center;text-align:center;background:#000;
}
.sl-hero canvas.warp{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;transition:opacity .5s ease}
/* the hero runs into the page instead of ending on a line */
.sl-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:22%;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,transparent,#000);
}
.sl-hero.fading canvas.warp,.sl-hero.fading .sl-lockup,.sl-hero.fading .sl-hud{opacity:0}

.sl-lockup{position:relative;z-index:2;padding:0 var(--g);transition:opacity .5s ease}
/* a dark well behind the words, so the routes never cross them */
.sl-lockup::before{
  content:"";position:absolute;z-index:-1;left:50%;top:50%;width:min(100vw,1500px);height:150%;
  transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(closest-side,rgb(0 0 0 / .55) 0%,rgb(0 0 0 / .28) 48%,transparent 100%);
  opacity:0;transition:opacity 2s ease .2s;
}
.arrived .sl-lockup::before{opacity:1}
/* the words rise and fade as the hero scrolls away (--away, set by the warp) */
.sl-float{transform:translate3d(0,calc(var(--away,0) * -110px),0);opacity:calc(1 - var(--away,0) * 1.6)}

/* the title, in the wordmark's face: FIGlet's ANSI Shadow, set in box-drawing
   characters as the bar's SOLDERMASK is, and resolved out of block static by
   slipspace.js (SLP-01 first, then the name). The words stay readable to a
   screen reader through .vh; the figures are drawn, not read. */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sl-fig{
  display:block;margin:0 auto;white-space:pre;font-family:var(--mono-draw);font-weight:400;
  line-height:1.15;letter-spacing:0;-webkit-font-smoothing:antialiased;
}
.sl-fig .o{color:var(--blood)}
.sl-fig .n{color:rgb(255 35 64 / .72)}
.sl-title{margin:0;color:var(--ink);cursor:default}
.sl-name{font-size:clamp(6px,1.44vw,22px);min-height:calc(6 * 1.15em)}
.sl-name.is-code{color:var(--blood)}
.sl-coming{margin:clamp(26px,4.6vh,46px) 0 0;color:var(--blood)}
.sl-coming .sl-fig{font-size:clamp(3px,.4vw,6px);min-height:calc(6 * 1.15em)}
.sl-sub{margin:clamp(16px,2.6vh,26px) 0 0;color:#d6d8db}
.sl-sub .sl-fig{font-size:clamp(2.6px,.33vw,5px);min-height:calc(6 * 1.15em)}
.sl-sub .two{display:none}
.sl-sub .two + .two{margin-top:.9em}

/* the one corner left: a way to see the jump again */
.sl-hud{position:absolute;inset:0;z-index:2;pointer-events:none;transition:opacity .5s ease;opacity:0;animation:sl-fade 1.2s ease-out .2s forwards}
.sl-hud .corner{position:absolute;margin:0}
.sl-hud .br{bottom:24px;right:var(--g)}
.sl-hud .replay{pointer-events:auto}
.sl-down{position:absolute;z-index:2;left:50%;bottom:22px;width:30px;height:30px;margin-left:-15px;color:var(--ink)}
.sl-down:hover{color:var(--blood)}
.sl-down svg{width:100%;height:100%;display:block}
@media (max-width:760px){
  .sl-hud .br{bottom:20px}
  .sl-name{font-size:calc((100vw - 40px) / 41)}
  .sl-coming .sl-fig{font-size:calc((100vw - 40px) / 78)}
  .sl-sub .one{display:none}
  .sl-sub .two{display:block;font-size:calc((100vw - 40px) / 67)}
}

@keyframes sl-fade{to{opacity:1}}
@keyframes sl-breathe{0%,100%{opacity:.45}50%{opacity:1}}

/* ---- the console: its live dot is Slipspace's ---------------------------- */
.s-console.slip canvas{cursor:default}
/* the clock and the phase, top left; what the board is, top right */
.sl-clock,.sl-facts{display:flex;gap:6px;align-items:center}
.sl-facts{justify-content:flex-end}
.sl-clock .tag:first-child{font-size:15px;padding:7px 10px 6px;min-width:6.4em;text-align:center}
.sl-clock .tag + .tag{padding:7px 10px 6px}
.sl-clock{flex-wrap:wrap;max-width:100%}
@media (max-width:760px){.sl-facts{display:none}.sl-clock .tag:first-child{font-size:13px}.sl-clock .tag + .tag{font-size:11px}}
.s-cap a{color:var(--dim);border-bottom:1px solid currentColor}
.s-cap a:hover{color:var(--ink)}

/* ---- coordinates: the request itself beside the steps -------------------- */
.s-flow .pic.sl-coords{
  aspect-ratio:auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center;
  padding:28px clamp(22px,3vw,44px);border:1px solid var(--hair);
}
.sl-coords .lg{margin:0 0 18px}
.s-flow li .n.tag{justify-self:start;align-self:start;margin-top:3px}
.sl-coords pre{margin:0;overflow-x:auto}
.sl-coords code{font:400 clamp(13px,1.15vw,16px)/1.7 var(--mono-code);color:#d6d8db;white-space:pre}
@media (max-width:520px){.s-flow .pic.sl-coords{padding:22px 16px}.sl-coords code{font-size:11px}}
@media (max-width:1060px){
  .s-flow .pic.sl-coords{grid-column:1 / -1;margin-bottom:32px}
  .s-flow ol{grid-column:1 / -1}
}

/* ---- the vision: four legs of one route ------------------------------------ */
.sl-route{
  list-style:none;margin:0 var(--g);padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--col);
  position:relative;--node:10px;
}
/* the route, and a light that runs along it */
.sl-route::before{
  content:"";position:absolute;left:0;right:0;top:calc(var(--node) / 2);height:1px;
  background:linear-gradient(90deg,var(--blood) 0%,var(--blood) 40%,var(--hair) 72%,var(--hair) 100%);
}
.sl-route::after{
  content:"";position:absolute;left:0;top:calc(var(--node) / 2 - 1px);height:3px;width:22%;
  background:linear-gradient(90deg,transparent,rgb(255 214 206 / .9),transparent);
  animation:sl-run 6.5s cubic-bezier(.45,0,.55,1) infinite;
}
/* the light stays on the line: 22% wide, it travels the other 78% */
@keyframes sl-run{0%{transform:translateX(0);opacity:0}15%{opacity:1}82%{opacity:1}100%{transform:translateX(354%);opacity:0}}
.sl-route li{position:relative;padding:0 clamp(8px,1.4vw,22px) 0 0}
.sl-route .node{display:block;width:var(--node);height:var(--node);margin:0 0 28px;position:relative;z-index:1;background:#000;border:1px solid var(--blood)}
.sl-route [data-state=transit] .node{background:var(--blood);box-shadow:0 0 12px rgb(255 35 64 / .7)}
.sl-route [data-state=horizon] .node{border-color:var(--dimmer)}
/* each leg's picture: a point cloud in the panel the index's research cards use */
.sl-route .pic{aspect-ratio:4/3;background:var(--panel);position:relative;overflow:hidden;margin:0 0 20px}
.sl-route .pic canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:pan-y}
.sl-route .pic canvas:active{cursor:grabbing}
.sl-route .leg{display:flex;gap:6px;align-items:center;margin:0 0 16px}
.sl-route h3{margin:0 0 12px;font:500 22px/1.15 var(--sans);letter-spacing:-.02em;color:var(--ink)}
.sl-route p.body{margin:0;font-size:15px;line-height:1.5;color:var(--dim);max-width:30em}
.sl-route p.proof{margin:16px 0 0}
.sl-route p.proof .tag{white-space:normal}
@media (max-width:1060px){
  .sl-route{grid-template-columns:1fr 1fr;gap:48px var(--col)}
  .sl-route::before,.sl-route::after{display:none}
}
@media (max-width:620px){
  .sl-route{grid-template-columns:1fr;gap:40px;padding-left:28px}
  .sl-route::before{display:block;left:4px;right:auto;top:6px;bottom:6px;width:1px;height:auto;
    background:linear-gradient(180deg,var(--blood),var(--blood) 45%,var(--hair))}
  .sl-route .node{position:absolute;left:-28px;top:2px;margin:0}
}

/* ---- where it stands: the tiles, four across ------------------------------ */
.s-tiles.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.s-tiles a{color:var(--dim);border-bottom:1px solid currentColor}
.s-tiles a:hover{color:var(--ink)}
@media (max-width:1060px){
  .s-tiles.four{grid-template-columns:1fr 1fr}
  .s-tiles.four > div:nth-child(3){padding-left:0;border-left:0}
  .s-tiles.four > div:nth-child(n+3){padding-top:30px}
}
@media (max-width:620px){
  .s-tiles.four{grid-template-columns:1fr}
  .s-tiles.four > div{padding-left:0 !important;border-left:0 !important;padding-top:24px}
}

/* ---- the slogan, and the way in under it ---------------------------------- */
/* the site's slogan, sized so 'coordinates.' fits a phone */
.sl-slogan{padding-bottom:clamp(36px,6vh,60px);font-size:clamp(34px,10.4vw,190px)}
.sl-cta{margin:0 0 clamp(110px,18vh,200px);text-align:center}

/* ---- reveals: up and in, once (the site's sweep, for words) ------------- */
.rv{opacity:0;transform:translateY(18px);transition:opacity 1s ease,transform 1.2s cubic-bezier(.16,1,.3,1)}
.rv.in{opacity:1;transform:none}
.sl-route li.rv:nth-child(2),.s-tiles .rv:nth-child(2){transition-delay:.1s}
.sl-route li.rv:nth-child(3),.s-tiles .rv:nth-child(3){transition-delay:.2s}
.sl-route li.rv:nth-child(4),.s-tiles .rv:nth-child(4){transition-delay:.3s}

@media (prefers-reduced-motion:reduce){
  .sl-hud{animation:none;opacity:1}
  .sl-lockup::before{transition:none}
  .sl-route::after{animation:none}
  .rv{opacity:1;transform:none;transition:none}
}

/* ---- footnotes: a red marker in the text, the note under its section ---- */
sup.fn{font:500 10px/1 var(--mono);vertical-align:super;margin-left:2px}
sup.fn a{color:var(--blood);text-decoration:none;padding:1px 3px;background:#2a0a10;transition:background .15s,color .15s}
sup.fn a:hover,sup.fn a:focus-visible{background:var(--blood);color:#fff}
.sl-fn{list-style:none;margin:12px var(--g) 0;padding:0 10px 0 0;max-width:110ch;line-height:2.05}
.sl-fn b{color:var(--blood);font-weight:500;margin-right:6px}
.sl-fn a{color:var(--ink);border-bottom:1px solid currentColor}
.sl-fn li:target .tags{background:#2a0a10}

/* ---- the intro plays with the bar out of the way ------------------------- */
/* slipspace.js sets body.intro while the reconstruction and the jump run,
   and takes it off as the name settles, or as soon as the page is scrolled */
body.slip header.sysbar{transition:opacity .8s ease,transform .9s cubic-bezier(.16,1,.3,1),visibility 0s linear 0s}
body.slip.intro header.sysbar{
  opacity:0;transform:translateY(-100%);visibility:hidden;
  transition:opacity .5s ease,transform .5s ease,visibility 0s linear .5s;
}
