/* Hacker Ascension - the website's one stylesheet.
   The tokens are the game's own (:root in src.html). Every page loads only this
   file and the two self-hosted JetBrains Mono weights: no script, no external
   request. Motion is CSS only and stops under prefers-reduced-motion. */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #0a0e14;
  --panel: #111824;
  --panel2: #0d131c;
  --edge: #1d2836;
  --edge2: #2a3a4f;
  --dim: #9aadc4;
  --txt: #d2dded;
  --bright: #f0f5fb;
  --cyan: #46d3cf;
  --green: #6bd08a;
  --red: #ff5d5d;
  --amber: #e6b25a;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gut: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% -10%, #0f1824 0%, rgba(10, 14, 20, 0) 60%),
    var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* CRT scanlines: the game's Settings > CRT scanlines, without its flicker. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0, rgba(0, 0, 0, .14) 1px, transparent 1px, transparent 4px);
}

main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--bright); }
a:focus-visible, .cta:focus-visible, .ghost:focus-visible, .strip:focus-visible, .packs:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

p { margin: 0 0 1em; }
b, strong { color: var(--bright); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--cyan);
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.top {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--edge);
  background: rgba(13, 19, 28, .88);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  white-space: nowrap;
}
.brand:hover { color: var(--bright); }
.brand svg { width: 30px; height: 30px; flex: 0 0 auto; }
.brand .b2 { color: var(--cyan); }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 8px;
  border-radius: 7px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); }
.nav .wide { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--edge); }
.hero-art {
  position: absolute;
  right: -10%;
  top: 0;
  width: 70%;
  max-width: 620px;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
}
.hero .wrap { position: relative; display: grid; gap: 34px; padding-top: 34px; padding-bottom: 48px; }

.boot { margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; color: var(--dim); }
.boot li { animation: boot .01s steps(1) both; }
.boot li:nth-child(1) { animation-delay: .05s; }
.boot li:nth-child(2) { animation-delay: .15s; }
.boot li:nth-child(3) { animation-delay: .25s; }
.boot li:nth-child(4) { animation-delay: .35s; color: var(--green); }
@keyframes boot { from { opacity: 0; } to { opacity: 1; } }

.lock { margin: 0; font-weight: 700; line-height: 1.08; animation: rise .5s ease-out .4s both; }
.lock .t1 { display: block; font-size: clamp(34px, 10.4vw, 70px); letter-spacing: .3em; color: var(--bright); }
.lock .t2 {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 6.9vw, 46px);
  letter-spacing: .42em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(70, 211, 207, .45);
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cursor {
  display: inline-block;
  width: .55em;
  height: .9em;
  margin-left: -.2em;
  vertical-align: -.08em;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tag { margin: 18px 0 0; font-size: 13px; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; }
.tag, .pitch, .cta-row, .specs { animation: rise .45s ease-out .55s both; }
.hero-vis { animation: rise .5s ease-out .65s both; }
.tag b { color: var(--cyan); font-weight: 700; }
.pitch { margin: 18px 0 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--txt); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 22px 10px 16px;
  border-radius: 12px;
  background: rgba(70, 211, 207, .09);
  box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 26px rgba(70, 211, 207, .16);
  color: var(--bright);
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.cta:hover { color: var(--bright); background: rgba(70, 211, 207, .16); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 36px rgba(70, 211, 207, .3); }
.cta svg { width: 30px; height: 30px; flex: 0 0 auto; }
.cta-txt { display: flex; flex-direction: column; line-height: 1.2; }
.cta-small { font-size: 11px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.cta-big { font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.ghost {
  color: var(--cyan);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 2px;
}
.ghost:hover { color: var(--bright); }
.specs { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--edge2);
  border-radius: 999px;
  padding: 4px 11px;
}

/* the network map window */
.term {
  position: relative;
  border: 1px solid var(--edge2);
  border-radius: 14px;
  background: var(--panel2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(70, 211, 207, .06);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.term-bar .ttl { color: var(--cyan); }
.term-bar .led { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); vertical-align: 0; }
.mapbox { background: radial-gradient(130% 90% at 50% 4%, #0e1622 0%, var(--bg) 72%); }
.netmap { width: 100%; height: auto; aspect-ratio: 120 / 80; }

/* map parts, drawn like drawMap() in src.html */
.netmap .grid { stroke: #122031; stroke-width: .25; }
.netmap .topo { stroke: var(--edge2); stroke-width: .35; opacity: .8; }
.netmap .link {
  fill: none;
  stroke: var(--cyan);
  stroke-width: .6;
  stroke-dasharray: 2 2;
  opacity: .85;
  animation: dash 1s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -8; } }
.netmap .pkt {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: .1 99.9;
  stroke-dashoffset: 100;
  animation: pkt 3.2s linear infinite;
}
@keyframes pkt { to { stroke-dashoffset: 0; } }
.netmap .trace {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 62;
  opacity: .95;
  animation: trace 9s ease-in-out infinite;
}
@keyframes trace { 0% { stroke-dashoffset: 96; } 70% { stroke-dashoffset: 58; } 100% { stroke-dashoffset: 96; } }
.netmap .ring { fill: #0c121b; stroke: var(--edge2); stroke-width: .6; }
.netmap .core { fill: var(--dim); }
.netmap .lbl { fill: var(--dim); font-family: var(--mono); font-size: 2.7px; text-anchor: middle; }
.netmap .sub { fill: var(--dim); font-family: var(--mono); font-size: 2px; text-anchor: middle; letter-spacing: .12em; }
.netmap .you .core { fill: var(--bright); }
.netmap .cracked .ring { stroke: var(--green); }
.netmap .cracked .core { fill: var(--green); }
.netmap .routed .ring { stroke: var(--amber); stroke-width: 1; }
.netmap .locked .ring { stroke: var(--red); stroke-dasharray: 1.4 1.2; }
.netmap .sel .ring { stroke: var(--cyan); stroke-width: 1; }
.netmap .sel .core { fill: var(--cyan); }
.netmap .sel .lbl { fill: var(--bright); }
.netmap .obj .sub { fill: var(--amber); }
.netmap .halo { fill: none; stroke: var(--cyan); stroke-width: .5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.netmap .diamond { fill: var(--amber); }

.hud { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; padding: 12px 14px 14px; border-top: 1px solid var(--edge); background: var(--panel2); }
.hud .k { display: block; font-size: 10px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; }
.hud .v { display: block; margin-top: 3px; font-size: 15px; color: var(--bright); }
.hud .v.ok { color: var(--green); }
.tbar { height: 7px; margin-top: 8px; border-radius: 4px; background: #16202c; border: 1px solid var(--edge); overflow: hidden; }
.tbar i { display: block; height: 100%; width: 34%; background: var(--cyan); animation: heat 9s ease-in-out infinite; }
@keyframes heat { 0% { width: 31%; background: var(--cyan); } 70% { width: 47%; background: var(--amber); } 100% { width: 31%; background: var(--cyan); } }

.hero-phone { display: none; }

/* --------------------------------------------------------------- shared */
section { position: relative; }
.band { padding: 64px 0; border-bottom: 1px solid var(--edge); }
.sec { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; }
.sec .no { color: var(--cyan); margin-right: .5em; }
.h2 { margin: 0 0 14px; font-size: clamp(24px, 6vw, 38px); line-height: 1.2; color: var(--bright); font-weight: 700; letter-spacing: .01em; }
.lede { max-width: 40em; color: var(--dim); font-size: 16px; }

/* stats strip */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 26px 0; list-style: none; }
.stats li { border: 1px solid var(--edge); background: var(--panel); border-radius: 12px; padding: 14px 14px 12px; }
.stats b { display: block; font-size: 30px; line-height: 1.1; color: var(--cyan); }
.stats span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; line-height: 1.5; color: var(--dim); text-transform: uppercase; }

/* screenshots */
.strip {
  display: flex;
  gap: 18px;
  margin: 28px 0 0;
  padding: 6px var(--gut) 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gut);
  scrollbar-width: thin;
  scrollbar-color: var(--edge2) transparent;
}
.strip li { flex: 0 0 64%; max-width: 250px; scroll-snap-align: start; }
.strip figure { margin: 0; }
.phone {
  position: relative;
  padding: 22px 9px 9px;
  border-radius: 28px;
  background: linear-gradient(160deg, #182232 0%, #0c1119 60%);
  border: 1px solid #263447;
  box-shadow: 0 0 0 1px rgba(70, 211, 207, .08), 0 22px 50px rgba(0, 0, 0, .6), 0 0 50px rgba(70, 211, 207, .07);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #05070a;
  box-shadow: 0 0 0 1px #1a2533;
}
.phone img { width: 100%; border-radius: 20px; background: var(--bg); }
.strip figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--dim); }
.strip figcaption b { display: block; margin-bottom: 2px; font-size: 12.5px; letter-spacing: .16em; color: var(--cyan); text-transform: uppercase; }

/* features */
.feats { display: grid; gap: 18px; margin-top: 30px; }
.feat {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.feat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge);
  background: var(--panel2);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--dim);
}
.feat-bar svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--cyan); }
.feat-body { padding: 18px 16px 18px; flex: 1 1 auto; }
.feat h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .12em; color: var(--bright); text-transform: uppercase; }
.feat p { margin: 0 0 14px; color: var(--txt); font-size: 15px; }
.feat p:last-child { margin-bottom: 0; }

.con {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #0a0f16;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--txt);
}
.con .p { color: var(--cyan); }
.con .ok { color: var(--green); }
.con .warn { color: var(--amber); }
.con .bad { color: var(--red); }
.con .sys { color: var(--dim); }
.con .cur { display: inline-block; width: .6em; height: 1.05em; vertical-align: -.2em; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }

/* two clocks */
.clocks { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 10px; background: #0a0f16; }
.clocks svg { width: 92px; height: 92px; flex: 0 0 auto; }
.clocks .rbg { fill: none; stroke: #16202c; }
.clocks .rhack { fill: none; stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 40; transform: rotate(-90deg); transform-origin: 50% 50%; animation: hackfill 6s ease-in-out infinite; }
.clocks .rtime { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 30; transform: rotate(-90deg); transform-origin: 50% 50%; animation: timedrain 6s ease-in-out infinite; }
@keyframes hackfill { 0% { stroke-dashoffset: 92; } 80%, 100% { stroke-dashoffset: 8; } }
@keyframes timedrain { 0% { stroke-dashoffset: 6; } 80%, 100% { stroke-dashoffset: 58; } }
.clocks dl { margin: 0; font-size: 12.5px; line-height: 1.5; }
.clocks dt { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; color: var(--dim); }
.clocks dd { margin: 0 0 8px; color: var(--bright); }
.clocks dd.g { color: var(--green); }
.clocks dd.c { color: var(--cyan); }
.clocks dd.r { color: var(--red); }

/* the rig */
.rig { margin: 0; padding: 12px 14px; list-style: none; border: 1px solid var(--edge); border-radius: 10px; background: #0a0f16; font-size: 12.5px; }
.rig li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.rig .n { color: var(--txt); letter-spacing: .08em; }
.dots { display: flex; gap: 4px; }
.dots i { width: 16px; height: 5px; border-radius: 3px; background: #1b2735; }
.dots i.on { background: var(--cyan); }
.kit { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.kit li { font-size: 12px; padding: 6px 10px; border: 1px solid var(--amber); color: var(--amber); border-radius: 8px; }

/* freelance readout */
.readout { margin: 0; padding: 6px 14px; border: 1px solid var(--edge); border-radius: 10px; background: #0a0f16; font-size: 13px; }
.readout div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--edge); }
.readout div:last-child { border-bottom: 0; }
.readout dt { color: var(--dim); }
.readout dd { margin: 0; color: var(--cyan); font-weight: 700; }

/* threat chips */
.threats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.threats li { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--edge2); color: var(--txt); background: var(--panel2); }
.threats li.r { border-color: rgba(255, 93, 93, .55); color: #ff8a8a; }
.threats li.a { border-color: rgba(230, 178, 90, .55); color: var(--amber); }

/* campaign and expansions */
.packs { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.pack {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--panel2);
  overflow: hidden;
  isolation: isolate;
}
.pack img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .62; }
.pack::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 20, .12) 0%, rgba(10, 14, 20, .55) 42%, rgba(10, 14, 20, .93) 72%, rgba(10, 14, 20, .97) 100%); }
.pack-in { display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 16px; }
.pack .cnt { align-self: flex-start; margin-bottom: auto; font-size: 11px; letter-spacing: .16em; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--amber); color: var(--amber); background: rgba(10, 14, 20, .7); text-transform: uppercase; }
.pack.main .cnt { border-color: var(--cyan); color: var(--cyan); }
.pack h3 { margin: 14px 0 4px; font-size: 18px; letter-spacing: .18em; color: var(--bright); text-transform: uppercase; }
.pack p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--txt); }
.unlock { margin-top: 22px; max-width: 46em; color: var(--dim); font-size: 14.5px; }

/* the fine print */
.facts { margin: 26px 0 0; padding: 0; list-style: none; border: 1px solid var(--edge); border-radius: 14px; background: var(--panel2); }
.facts li { display: grid; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--edge); }
.facts li:last-child { border-bottom: 0; }
.facts .k { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.facts .v { max-width: 66ch; font-size: 15px; color: var(--txt); }

/* final call */
.final { padding: 72px 0; text-align: left; }
.final .h2 { font-size: clamp(22px, 5.4vw, 34px); }
.final p { color: var(--dim); max-width: 36em; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--edge); background: var(--panel2); padding: 30px 0 34px; font-size: 13.5px; color: var(--dim); }
.foot .wrap { display: grid; gap: 14px; }
.foot .brand { font-size: 12px; }
.foot .brand svg { width: 24px; height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--cyan); }
.foot .brand, .foot .brand:hover { color: var(--bright); }
.foot p { margin: 0; }

/* ----------------------------------------------------------- legal pages */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 820px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .28em; color: var(--cyan); text-transform: uppercase; }
.doc h1 { margin: 0; font-size: clamp(28px, 7vw, 40px); line-height: 1.15; color: var(--bright); letter-spacing: .02em; }
.upd { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.readme { margin: 28px 0 0; padding: 0; border: 1px solid var(--edge2); border-radius: 14px; background: var(--panel); overflow: hidden; }
.readme h2 { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--edge); background: var(--panel2); font-size: 12px; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.readme ul { margin: 0; padding: 14px 16px 14px 34px; }
.readme li { margin: 0 0 8px; }
.readme li:last-child { margin-bottom: 0; }
.readme li::marker { color: var(--cyan); }
.toc { margin: 26px 0 0; padding: 14px 16px; border: 1px dashed var(--edge2); border-radius: 12px; font-size: 14px; }
.toc h2 { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 26px; columns: 1; }
.toc li { margin: 2px 0; }
.doc h2.s {
  margin: 42px 0 12px;
  padding-left: 10px;
  border-left: 2px solid var(--cyan);
  font-size: 16px;
  letter-spacing: .14em;
  color: var(--bright);
  text-transform: uppercase;
  scroll-margin-top: 16px;
}
.doc p, .doc li { font-size: 16px; line-height: 1.75; }
.doc a[href^="mailto:"], .foot .mail { overflow-wrap: anywhere; }
.doc ul.l { padding-left: 22px; }
.doc ul.l li { margin: 0 0 6px; }
.doc ul.l li::marker { color: var(--cyan); }
.note { padding: 12px 16px; border: 1px solid var(--edge); border-left: 2px solid var(--amber); border-radius: 10px; background: var(--panel2); }

/* discord coming soon and 404 */
.solo { position: relative; overflow: hidden; padding: 56px 0 72px; }
.solo .wrap { position: relative; max-width: 720px; }
.solo-art {
  position: absolute;
  top: 0;
  right: -40px;
  width: auto;
  max-width: none;
  height: 100%;
  opacity: .1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}
.solo .code { margin: 0 0 14px; font-size: 13px; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; }
.solo .code b { color: var(--red); }
.solo h1 { margin: 0 0 16px; font-size: clamp(28px, 7.4vw, 44px); line-height: 1.15; color: var(--bright); }
.solo p { font-size: 16.5px; }
.solo .small { font-size: 14px; color: var(--dim); }
.mailbtn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 8px 0 22px;
  padding: 12px 18px 12px 16px;
  border-radius: 12px;
  background: rgba(70, 211, 207, .09);
  box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 26px rgba(70, 211, 207, .14);
  color: var(--bright);
  text-decoration: none;
}
.mailbtn .mb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mailbtn .mb-small { font-size: 11px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.mailbtn .mb-big { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.mailbtn:hover { color: var(--bright); background: rgba(70, 211, 207, .16); }
.mailbtn svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--cyan); }
.backlinks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }

/* ----------------------------------------------------------- phones */
@media (max-width: 959px) {
  .hero .wrap { gap: 0; }
  .hero-copy { display: contents; }
  .boot { order: 1; }
  .lock { order: 2; }
  .tag { order: 3; }
  .pitch { order: 4; }
  .cta-row { order: 5; }
  .hero-vis { order: 6; margin-top: 30px; }
  .specs { order: 7; }
  .hero-art { opacity: .24; }
}
@media (max-width: 559px) {
  /* folded away, not display:none: a display change restarts the boot animation, so a
     phone turned to landscape would blank those lines again for a moment */
  .boot li:nth-child(2), .boot li:nth-child(3) { height: 0; overflow: hidden; }
  .pitch { font-size: 16px; }
  .netmap .lbl { font-size: 3.3px; }
  .netmap .sub, .netmap .diamond { display: none; }
  .hud .k, .clocks dt { font-size: 11px; }
  .stats span, .pack .cnt, .cta-small { font-size: 11.5px; }
  /* the expansions as a swipeable row, like the screenshots */
  .packs {
    display: flex;
    gap: 14px;
    margin-left: calc(-1 * var(--gut));
    margin-right: calc(-1 * var(--gut));
    padding: 0 var(--gut) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gut);
    scrollbar-width: thin;
    scrollbar-color: var(--edge2) transparent;
  }
  .pack { flex: 0 0 80%; scroll-snap-align: start; }
  .pack, .pack-in { min-height: 230px; }
  .doc p, .doc li { font-size: 15px; line-height: 1.7; }
  .readme ul { padding-left: 26px; }
  .toc a { display: inline-block; padding: 4px 0; }
}

/* ----------------------------------------------------------- wider views */
@media (min-width: 560px) {
  :root { --gut: 24px; }
  .nav .wide { display: inline; }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .strip li { flex-basis: 42%; }
  .packs { grid-template-columns: 1fr 1fr; }
  .facts li { grid-template-columns: 11em minmax(0, 66ch); gap: 16px; align-items: baseline; }
  .toc ol { columns: 2; column-gap: 30px; }
}

@media (min-width: 960px) {
  :root { --gut: 32px; }
  .brand { font-size: 14px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
  .hero-vis { position: relative; padding-bottom: 40px; padding-right: 112px; }
  .hero-phone {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 168px;
  }
  .hero-phone .phone { padding: 18px 7px 7px; border-radius: 24px; }
  .hero-phone .phone img { border-radius: 17px; }
  .hero-phone .phone::before { top: 6px; width: 6px; height: 6px; margin-left: -3px; }
  .hud { padding-right: 72px; }
  .specs li { letter-spacing: .1em; padding: 4px 10px; }
  .band { padding: 88px 0; }
  .strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 28px;
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }
  .strip li { max-width: none; }
  .feats { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .feat { grid-column: span 2; }
  .feat.w { grid-column: span 3; }
  .packs { grid-template-columns: repeat(4, 1fr); }
  .pack.main { grid-column: span 2; }
  .pack, .pack-in { min-height: 250px; }
  .final .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .final p { margin-bottom: 0; }
  .solo-art { right: 4%; opacity: .2; }
  .facts { max-width: 900px; }
  .facts li { grid-template-columns: 14em minmax(0, 66ch); }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .foot .meta { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
