/* ozdc.us software solutions · cyberpunk corporate theme. Original design, no scripts. */

:root {
  --bg: #05060a;
  --bg2: #0a0c14;
  --panel: rgba(13, 16, 28, 0.86);
  --panel2: #0f1322;
  --line: #1c2238;
  --line2: #2b3354;
  --fg: #e7ecff;
  --hi: #ffffff;
  --dim: #8f98bd;
  --cyan: #00e5ff;
  --pink: #ff2a6d;
  --yellow: #fcee0a;
  --violet: #8a5cff;
  --ok: #2bffa8;
  --warn: #ffb020;
  --wa: #25d366;
  --tg: #2aabee;
  /* Roboto everywhere (owner's choice), loaded from Google Fonts */
  --head: 'Roboto', system-ui, 'Segoe UI', Arial, sans-serif;
  --body: 'Roboto', system-ui, 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto', system-ui, 'Segoe UI', Arial, sans-serif;
  --cut: 14px;
  --wrap: 1240px;
  color-scheme: dark;
}
html[dir='rtl'] {
  /* Roboto has no Arabic letters: Latin words stay in Roboto, the rest uses the system font */
  --head: 'Roboto', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --body: 'Roboto', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --mono: 'Roboto', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
/* letter-spacing breaks the joined letters of Arabic and Persian */
html[dir='rtl'] * {
  letter-spacing: 0 !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--body);
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 42, 109, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(0, 229, 255, 0.12), transparent 60%),
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}
/* scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--hi);
}
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--head);
  color: var(--hi);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(36px, 5.2vw, 68px);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(27px, 3.1vw, 40px);
}
h3 {
  font-size: 20px;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(820px, 100% - 40px);
}
.dim {
  color: var(--dim);
}
.center {
  text-align: center;
  margin-top: 34px;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  background: var(--yellow);
  color: #000;
  padding: 8px 14px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------- buttons */

.btn {
  --c: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--c);
  color: #05060a;
  font: 700 15px/1 var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover {
  color: #05060a;
  filter: brightness(1.12) drop-shadow(0 0 14px var(--c));
  transform: translateY(-1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[dir='rtl'] .btn svg[viewBox] path[d^='M5 12h14'] {
  transform: scaleX(-1);
  transform-origin: center;
}
.btn.wa {
  --c: var(--wa);
}
.btn.tg {
  --c: var(--tg);
}
.btn.ghost {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
  clip-path: none;
}
.btn.ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--hi);
}
.btn.sm {
  padding: 10px 14px;
  font-size: 13px;
  --cut: 9px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 8px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 14px/1 var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
html[dir='rtl'] .more svg,
html[dir='rtl'] .btn svg:last-child:not(:first-child) {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--pink) 70%, transparent);
  opacity: 0.6;
}
.bar {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  direction: ltr;
}
.logo .mark {
  font: 700 27px/1 var(--head);
  color: var(--hi);
  letter-spacing: 0.02em;
  text-shadow: 2px 0 rgba(255, 42, 109, 0.7), -2px 0 rgba(0, 229, 255, 0.7);
}
.logo .mark b {
  color: var(--cyan);
  text-shadow: none;
}
.logo .sub {
  margin-top: 5px;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.32em !important;
  color: var(--dim);
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.main-nav a,
.burger nav a {
  color: var(--fg);
  text-decoration: none;
  font: 600 14.5px/1 var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--cyan);
  border-color: var(--cyan);
}
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
.lang,
.burger {
  position: relative;
}
.lang summary,
.burger summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line2);
  font: 700 13px/1 var(--mono);
  color: var(--fg);
}
.lang summary:hover,
.burger summary:hover,
.lang[open] summary,
.burger[open] summary {
  border-color: var(--cyan);
  color: var(--cyan);
}
.lang svg,
.burger svg,
.btn.sm svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.lang ul,
.burger nav {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.08);
  padding: 8px;
  z-index: 60;
}
.lang ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 330px;
  max-height: 70vh;
  overflow: auto;
}
.lang li a {
  display: block;
  padding: 8px 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
}
.flag {
  flex: none;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.lang summary .flag {
  width: 26px;
  height: 17px;
}
.lang li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.lang li a:hover,
.lang li a[aria-current] {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
}
.burger {
  display: none;
}
.burger nav {
  display: flex;
  flex-direction: column;
}
.burger nav a {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 70px 0 0;
  overflow: hidden;
}
.hgrid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font: 600 13.5px/1.3 var(--mono);
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
}
.kicker span {
  color: var(--pink);
}
.hero h1 {
  margin-bottom: 22px;
}
.hi {
  position: relative;
  display: inline-block;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(0, 229, 255, 0.45);
}
.hi::before,
.hi::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hi::before {
  color: var(--pink);
  transform: translate(3px, 0);
  clip-path: inset(0 0 62% 0);
  animation: glitch 3.8s infinite steps(1);
  opacity: 0.85;
}
.hi::after {
  color: var(--yellow);
  transform: translate(-3px, 0);
  clip-path: inset(68% 0 0 0);
  animation: glitch 3.8s 0.25s infinite steps(1) reverse;
  opacity: 0.65;
}
@keyframes glitch {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); }
  90% { clip-path: inset(10% 0 60% 0); }
  92% { clip-path: inset(55% 0 20% 0); }
  94% { clip-path: inset(30% 0 45% 0); }
  96% { clip-path: inset(75% 0 5% 0); }
}
.lede {
  font-size: clamp(18px, 1.5vw, 20px);
  color: #c9d1f2;
  max-width: 60ch;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 15px;
}
.badges li,
.ticks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.badges svg,
.ticks svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
}
.hvis {
  position: relative;
}
/* under the photo, overlapping only its bottom edge: never over a face */
.hvis .mock.float {
  position: relative;
  z-index: 2;
  width: 82%;
  margin: -44px 0 0;
  margin-inline-start: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 42, 109, 0.18);
  animation: hover 7s ease-in-out infinite;
}
@keyframes hover {
  50% { transform: translateY(-10px); }
}
.ticker {
  margin-top: 70px;
  border-block: 1px solid var(--line);
  background: rgba(255, 42, 109, 0.06);
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
}
.ticker p {
  display: inline-flex;
  gap: 0;
  margin: 0;
  padding: 16px 0;
  animation: marquee 50s linear infinite;
}
.ticker span {
  font: 700 18px/1 var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0 28px;
}
.ticker span::after {
  content: '◆';
  color: var(--pink);
  margin-inline-start: 56px;
  font-size: 11px;
  vertical-align: 3px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- photos */

.ph {
  position: relative;
  margin: 0;
  background: var(--panel2);
  border: 1px solid var(--line2);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  overflow: hidden;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  filter: saturate(1.08) contrast(1.04);
}
.ph.eager img {
  aspect-ratio: 16 / 11;
}
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  /* a light neon edge only: faces must stay clearly visible */
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 30%, transparent 70%, rgba(255, 42, 109, 0.2));
  mix-blend-mode: screen;
  pointer-events: none;
}
.ph.hud::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 26px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 2px 26px no-repeat,
    linear-gradient(var(--pink), var(--pink)) bottom right / 26px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) bottom right / 2px 26px no-repeat;
}
.ph.empty {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(255, 42, 109, 0.12)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px),
    var(--panel2);
}
.ph.empty span {
  font: 600 13px var(--mono);
  color: var(--dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ph.wide {
  margin: 10px 0 34px;
}

/* --------------------------------------------------------------- mockups */

.mock {
  background: linear-gradient(180deg, #0d1120, #090c17);
  border: 1px solid var(--line2);
  font: 11px/1.3 var(--mono);
  color: var(--dim);
  overflow: hidden;
  direction: ltr;
  text-align: left;
}
.mbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.mbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line2);
}
.mbar i:first-child {
  background: var(--pink);
}
.mbar i:nth-child(2) {
  background: var(--yellow);
}
.mbar i:nth-child(3) {
  background: var(--cyan);
}
.mbar span {
  margin-left: 8px;
  color: var(--fg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mbody {
  display: flex;
  gap: 12px;
  padding: 12px;
  min-height: 210px;
}
.mside {
  width: 22%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.mmain {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ln {
  display: block;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(143, 152, 189, 0.38), rgba(143, 152, 189, 0.16));
}
.w15 { width: 15%; } .w20 { width: 20%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; }
.w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kpi {
  border: 1px solid var(--line);
  padding: 8px;
  background: rgba(0, 229, 255, 0.04);
}
.kpi small {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kpi b {
  display: block;
  color: var(--hi);
  font-size: 15px;
  margin: 3px 0;
}
.kpi em {
  font-style: normal;
  font-size: 9.5px;
}
.up {
  color: var(--ok);
}
.dn {
  color: var(--pink);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 70px;
  padding: 6px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 14px);
}
.bars i {
  flex: 1;
  background: linear-gradient(0deg, var(--cyan), rgba(138, 92, 255, 0.9));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.bars i:nth-child(3n) {
  background: linear-gradient(0deg, var(--pink), rgba(138, 92, 255, 0.9));
}
.b1 { height: 10%; } .b2 { height: 20%; } .b3 { height: 30%; } .b4 { height: 40%; } .b5 { height: 50%; }
.b6 { height: 60%; } .b7 { height: 70%; } .b8 { height: 80%; } .b9 { height: 90%; } .b10 { height: 100%; }
.rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.row code {
  color: var(--cyan);
}
.row span {
  white-space: nowrap;
}
.row .chip,
.mock .chip {
  margin-left: auto;
}
.chip {
  display: inline-block;
  padding: 3px 7px;
  font: 700 9.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
}
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.chip.pink { color: var(--pink); }
.mmain.full {
  width: 100%;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.kanban .col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.kanban small {
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kanban .col:last-child small {
  color: var(--ok);
}
.mock .card,
.phone .card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line2);
  background: #11162a;
  clip-path: none;
}
.mock .card::before,
.phone .card::before {
  display: none;
}
.shop {
  display: grid;
  grid-template-columns: 1fr 34%;
  gap: 10px;
  width: 100%;
}
.grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
}
.tile .img {
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 42, 109, 0.25));
}
.tile b {
  color: var(--yellow);
}
.cart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line2);
  background: #11162a;
}
.cart small {
  color: var(--fg);
  text-transform: uppercase;
}
.cart .chip {
  margin: auto 0 0;
  align-self: flex-start;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 100%;
}
.cal i {
  aspect-ratio: 1.5;
  border: 1px solid var(--line);
}
.cal i.on {
  background: rgba(0, 229, 255, 0.35);
  border-color: var(--cyan);
}
.cal i.alt {
  background: rgba(255, 42, 109, 0.35);
  border-color: var(--pink);
}
.shifts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 8px;
}
.srow {
  display: grid;
  grid-template-columns: 18% 1fr;
  gap: 10px;
  align-items: center;
}
.srow .ln {
  width: 100%;
}
.track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 18px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%);
}
.track i {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}
.srow:nth-child(2n) .track i {
  background: linear-gradient(90deg, var(--pink), var(--violet));
}
.s0 { grid-column-start: 1; } .s1 { grid-column-start: 2; } .s2 { grid-column-start: 3; } .s3 { grid-column-start: 4; } .s4 { grid-column-start: 5; }
.e4 { grid-column-end: 5; } .e5 { grid-column-end: 6; } .e6 { grid-column-end: 7; } .e8 { grid-column-end: 9; }
.phone {
  width: 230px;
  margin: 0 auto;
  padding: 12px;
  border: 2px solid var(--line2);
  border-radius: 30px;
  background: #080a12;
  box-shadow: 0 0 0 6px #0d1120, 0 0 40px rgba(0, 229, 255, 0.18);
  direction: ltr;
  font: 11px/1.3 var(--mono);
  color: var(--dim);
}
.notch {
  width: 80px;
  height: 16px;
  margin: 0 auto 12px;
  border-radius: 0 0 12px 12px;
  background: #0d1120;
}
.screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 330px;
}
.screen .row b {
  color: var(--hi);
}
.scan {
  margin-top: auto;
  padding: 10px;
  text-align: center;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------- sections */

.band {
  padding: 96px 0;
  position: relative;
}
.band.alt {
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.92), rgba(10, 12, 20, 0.6));
  border-block: 1px solid var(--line);
}
.shead {
  max-width: 760px;
  margin-bottom: 44px;
}
.shead p {
  color: var(--dim);
  font-size: 18px;
}
.cards {
  display: grid;
  gap: 18px;
}
.c1 { grid-template-columns: 1fr; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c5 { grid-template-columns: repeat(5, 1fr); }
.cards.tight {
  gap: 12px;
}
.card {
  position: relative;
  padding: 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 46px;
  height: 2px;
  background: var(--cyan);
}
.card:hover {
  border-color: var(--line2);
  background: rgba(17, 21, 38, 0.92);
}
.card p {
  color: var(--dim);
  margin: 0;
}
.card h3 {
  margin-bottom: 10px;
}
.card.mini {
  padding: 20px;
}
.card.mini h3 {
  font-size: 17px;
}
.card.mini p {
  font-size: 15px;
}
.sol .glyph {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 8px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.35));
}
.sol:nth-child(3n + 2) .glyph {
  stroke: var(--pink);
  border-color: rgba(255, 42, 109, 0.4);
  background: rgba(255, 42, 109, 0.06);
  filter: drop-shadow(0 0 8px rgba(255, 42, 109, 0.35));
}
.sol:nth-child(3n) .glyph {
  stroke: var(--yellow);
  border-color: rgba(252, 238, 10, 0.35);
  background: rgba(252, 238, 10, 0.05);
  filter: none;
}
.ticks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.ticks.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card .ticks li {
  color: var(--fg);
  font-size: 15px;
}
.n {
  font: 700 14px/1 var(--mono);
  color: var(--pink);
  letter-spacing: 0.1em;
}
.why .n {
  display: block;
  margin-bottom: 18px;
  font-size: 30px;
  font-family: var(--head);
  color: transparent;
  -webkit-text-stroke: 1px var(--pink);
}
.stack {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px dashed var(--line2);
}
.stack h3 {
  font-size: 14px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.stack ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack li {
  padding: 8px 14px;
  border: 1px solid var(--line2);
  font: 600 14px var(--mono);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.rev > :first-child {
  order: 0;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 26px 0 40px;
  counter-reset: s;
}
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child {
  border-top: 1px solid var(--line);
}
.steps .n {
  padding-top: 5px;
  font-size: 22px;
  font-family: var(--head);
  color: var(--cyan);
}
.steps h3 {
  margin-bottom: 4px;
}
.steps p {
  color: var(--dim);
  margin: 0;
}
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.work:hover {
  color: var(--fg);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.12);
}
.work .mock {
  margin-bottom: 18px;
}
.work p {
  color: var(--dim);
  margin: 0;
}
.tag {
  display: inline-block;
  margin-bottom: 10px;
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
.repair-band {
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.05), transparent 60%);
}
.cta-box {
  position: relative;
  padding: 56px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 42, 109, 0.12)), var(--panel2);
  border: 1px solid var(--line2);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}
.cta-box p {
  color: #c9d1f2;
  max-width: 60ch;
  margin-inline: auto;
  font-size: 18px;
}
.cta-box .ctas {
  justify-content: center;
}

/* ------------------------------------------------------------ inner pages */

.phead {
  padding: 84px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 42, 109, 0.06), transparent);
}
.phead h1 {
  max-width: 22ch;
}
.phead.done h1 {
  color: var(--ok);
}
.phead .meta {
  font: 13px var(--mono);
  color: var(--dim);
  letter-spacing: 0.06em;
}
.pf {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.pf-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 54px;
  align-items: center;
  scroll-margin-top: 110px;
}
.pf-item.rev .pf-vis {
  order: 2;
}
.pf-vis .mock {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(0, 229, 255, 0.08);
}
.pf-vis .mock .mbody {
  min-height: 260px;
}
.pf-copy h3 {
  margin-top: 24px;
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.pf-copy p {
  color: #c9d1f2;
}
.sol {
  scroll-margin-top: 110px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font: 600 19px/1.35 var(--head);
  color: var(--hi);
}
html[dir='rtl'] .faq summary {
  padding: 20px 0 20px 40px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 4px;
  top: 16px;
  font: 400 26px/1 var(--mono);
  color: var(--cyan);
}
.faq details[open] summary::after {
  content: '−';
  color: var(--pink);
}
.faq p {
  color: var(--dim);
  padding-bottom: 18px;
}
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}
.areas li {
  padding: 7px 12px;
  border: 1px solid var(--line2);
  font-size: 15px;
  background: rgba(37, 211, 102, 0.04);
}
.prose {
  font-size: 18px;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: 30px;
}
.prose p {
  color: #cfd6f3;
}
.prose strong {
  color: var(--hi);
}
.article .phead h1 {
  max-width: none;
  font-size: clamp(32px, 4.2vw, 54px);
}
.article .prose {
  padding: 50px 0 90px;
}
.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.mvc {
  padding: 40px;
}
.mvc .big {
  font: 500 clamp(21px, 2vw, 27px) / 1.4 var(--head);
  color: var(--hi);
}
.c5 .card h3 {
  font-size: 18px;
}
@media (max-width: 880px) {
  .mv {
    grid-template-columns: 1fr;
  }
}
.founder {
  margin-top: 30px;
  padding: 22px 24px;
  border-inline-start: 3px solid var(--pink);
  background: rgba(255, 42, 109, 0.05);
}
.founder h2 {
  font-size: 14px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pink);
  margin: 0 0 8px;
}
.founder p {
  margin: 0;
}

/* ----------------------------------------------------------------- forms */

.form-split {
  align-items: start;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font: 600 14px var(--head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  background: #070912;
  color: var(--fg);
  border: 1px solid var(--line2);
  font: 16px/1.4 var(--body);
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}
.form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font: 14.5px/1.5 var(--body);
  text-transform: none;
  letter-spacing: 0;
}
.form .check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--cyan);
}
.form .btn {
  align-self: flex-start;
}
.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.direct h2 {
  font-size: 26px;
}
.clist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clist li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.clist svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
}
.clist.big li {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.clist.big svg {
  width: 28px;
  height: 28px;
}
.clist.big small {
  display: block;
  font: 600 12px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.clist.big a,
.clist.big span {
  font: 600 19px var(--head);
  word-break: break-all;
}
.clist.big li:first-child svg {
  stroke: var(--wa);
}
.clist.big li:nth-child(2) svg {
  stroke: var(--tg);
}

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: 40px;
  padding: 70px 0 30px;
  border-top: 1px solid var(--line);
  background: #04050a;
}
.fgrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr 1.2fr;
  gap: 40px;
}
.foot h2 {
  font: 700 13px var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.foot p {
  color: var(--dim);
  font-size: 15px;
}
.foot .logo {
  margin-bottom: 16px;
}
.foot ul li {
  margin-bottom: 8px;
  font-size: 15px;
}
.foot a {
  color: var(--fg);
  text-decoration: none;
}
.foot a:hover {
  color: var(--cyan);
}
.langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.langs a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}
.legal {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px !important;
}
.legal a {
  color: var(--dim) !important;
  text-decoration: underline !important;
}
.fab {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--wa);
  color: #05060a;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}
.fab svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.fab:hover {
  color: #05060a;
  filter: brightness(1.1);
}
.consent {
  position: fixed;
  inset-inline: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--panel2);
  border: 1px solid var(--cyan);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.2);
}
.consent p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg);
}
.consent div {
  display: flex;
  gap: 8px;
  flex: none;
}
body:has(.consent) .fab {
  bottom: 120px;
}

/* ------------------------------------------------------------ responsive */

/* With the donate link the top menu needs 1200px to stay on one line in every language (measured:
   German, Russian, Ukrainian and Dutch wrap below that); narrower windows get the menu button. */
@media (max-width: 1199px) {
  .main-nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .tools {
    margin-inline-start: auto;
  }
}
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .tools {
    margin-inline-start: auto;
  }
  .c5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .c4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 880px) {
  body {
    font-size: 16px;
  }
  .hgrid,
  .split,
  .pf-item {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pf-item.rev .pf-vis {
    order: 0;
  }
  .hero {
    padding-top: 44px;
  }
  /* below the photo, never over a face */
  .hvis {
    padding-bottom: 0;
  }
  .hvis .mock.float {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 16px;
    animation: none;
  }
  .c3,
  .works {
    grid-template-columns: 1fr 1fr;
  }
  .band {
    padding: 70px 0;
  }
  .cta-box {
    padding: 38px 22px;
  }
}
@media (max-width: 620px) {
  .tools .btn.wa span {
    display: none;
  }
  .lang summary span:not(.vh) {
    display: none;
  }
  .lang ul {
    min-width: 260px;
    inset-inline-end: -60px;
  }
  .c3,
  .c4,
  .c5,
  .works,
  .fgrid,
  .ticks.two,
  .form .row2 {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 22px;
  }
  .consent {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    padding: 13px 18px;
  }
  .logo .mark {
    font-size: 23px;
  }
  .logo .sub {
    letter-spacing: 0.2em !important;
  }
  .mside {
    display: none;
  }
}
/* =====================================================================
   Tactical theme (2026-11-30): dark, hard-edged, "classified file" mood.
   Original design: no game logos, fonts or artwork. Overrides the rules above.
   ===================================================================== */
:root {
  --bg: #0b0b0b;
  --bg2: #111111;
  --panel: rgba(20, 20, 20, 0.94);
  --panel2: #151515;
  --line: #262626;
  --line2: #3b3b3b;
  --fg: #e9e7e2;
  --hi: #ffffff;
  --dim: #9b9891;
  --cyan: #ff6b1a; /* the one accent: signal orange */
  --pink: #8f8c85;
  --yellow: #ff6b1a;
  --violet: #4a4a4a;
  --ok: #ff6b1a;
  --cut: 0px;
}
::selection {
  background: var(--cyan);
  color: #000;
}
body {
  background-image:
    radial-gradient(1100px 600px at 75% -10%, rgba(255, 107, 26, 0.07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}
body::after {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 2px);
  mix-blend-mode: normal;
}
a {
  color: var(--hi);
  text-decoration-color: var(--cyan);
}
a:hover {
  color: var(--cyan);
}
h1,
h2 {
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-weight: 700;
}
h1 {
  font-size: clamp(32px, 4.3vw, 58px);
  line-height: 1.04;
}
h3 {
  letter-spacing: 0.01em;
}
.top::after {
  background: var(--line2);
  opacity: 1;
}
.logo .mark {
  text-shadow: none;
  letter-spacing: 0.01em;
}
.logo .mark b {
  color: var(--cyan);
}
.logo .sub {
  letter-spacing: 0.34em !important;
}
.main-nav a {
  font-weight: 500;
  letter-spacing: 0.12em;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--hi);
  border-color: var(--cyan);
}
.kicker {
  border: 0;
  background: none;
  padding: 0;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 12.5px;
}
.kicker span {
  display: none;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 4px;
  background: var(--cyan);
}
.hi {
  display: inline;
  color: var(--cyan);
  text-shadow: none;
}
.hi::before,
.hi::after {
  display: none;
}
.btn {
  clip-path: none;
  border-radius: 0;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.btn:hover {
  filter: none;
  transform: none;
  background: var(--hi);
  color: #000;
}
.btn.wa {
  --c: #e9e7e2;
}
.btn.tg,
.btn.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.btn.tg:hover,
.btn.ghost:hover {
  background: transparent;
  color: var(--hi);
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.ph {
  clip-path: none;
  border: 1px solid var(--line2);
}
.ph img {
  filter: grayscale(1) contrast(1.12) brightness(0.96);
}
.ph::after {
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
  mix-blend-mode: normal;
}
.ph.hud::before {
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 30px 3px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 3px 30px no-repeat,
    linear-gradient(var(--hi), var(--hi)) bottom right / 30px 3px no-repeat,
    linear-gradient(var(--hi), var(--hi)) bottom right / 3px 30px no-repeat;
}
.card {
  clip-path: none;
  border: 1px solid var(--line);
  background: var(--panel);
}
.card::before {
  width: 28px;
  height: 3px;
  background: var(--cyan);
}
.card:hover {
  border-color: var(--line2);
  background: #181818;
}
.why .n {
  -webkit-text-stroke: 0;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.24em;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps .n {
  color: var(--cyan);
}
.band.alt {
  background: #0f0f0f;
}
.phead {
  background: none;
}
.cta-box {
  clip-path: none;
  background: #121212;
  border: 1px solid var(--line2);
  border-top: 3px solid var(--cyan);
}
.repair-band {
  background: none;
}
.fab {
  clip-path: none;
  background: var(--cyan);
  color: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.consent {
  border: 1px solid var(--line2);
  border-top: 3px solid var(--cyan);
}
.lang summary:hover,
.burger summary:hover,
.lang[open] summary,
.burger[open] summary {
  border-color: var(--cyan);
  color: var(--hi);
}
.tag {
  color: var(--cyan);
}
.founder {
  border-inline-start-color: var(--cyan);
  background: rgba(255, 107, 26, 0.05);
}
.founder h2 {
  color: var(--cyan);
}
.mvc {
  border-top: 3px solid var(--cyan);
}
.mvc::before {
  display: none;
}

/* ----------------------------------------------------- military illustrations */
.ill {
  display: block;
  width: 100%;
  height: auto;
}
.hero {
  position: relative;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.phead.has-art .wrap {
  position: relative;
}
/* centred with "translate", not "transform": the header's rise-in animation sets transform, and
   would otherwise drop the picture half its height and slide it up on every page load */
.phead-art {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  translate: 0 -50%;
  width: 190px;
  opacity: 0.9;
  pointer-events: none;
}
.phead.has-art h1,
.phead.has-art .lede {
  max-width: calc(100% - 240px);
}
.desk {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 50px;
  align-items: end;
  max-width: 760px;
  margin-top: 54px;
}
.nf-art {
  width: 130px;
  margin-bottom: 24px;
}
@media (max-width: 880px) {
  .phead-art {
    display: none;
  }
  .phead.has-art h1,
  .phead.has-art .lede {
    max-width: none;
  }
  .desk {
    gap: 20px;
  }
}
/* flags keep the official 3:2 shape, and the menu's line-icon rule (.lang svg: 18x18, stroke)
   must not reach them: it squeezed them into squares and drew a thick outline round the
   crescent and the star */
.flag,
.lang svg.flag,
.langs svg.flag {
  width: 27px;
  height: 18px;
  border-radius: 2px;
  stroke: none;
}
.lang summary svg.flag {
  width: 27px;
  height: 18px;
}

/* ---------------------------------------------------------- personal blog */
.blog-hero .hgrid {
  align-items: stretch;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  text-decoration: none;
  color: var(--fg);
  border-top: 3px solid var(--cyan);
}
.feature:hover {
  color: var(--fg);
}
.feature::before {
  display: none;
}
.ftitle {
  font: 700 clamp(24px, 2.4vw, 32px) / 1.15 var(--head);
  color: var(--hi);
  text-transform: uppercase;
}
.feature .more {
  margin-top: auto;
  color: var(--cyan);
}
.pdate {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.pdesc {
  color: #c4c1ba;
  font-size: 16px;
}
.lang-tag {
  color: var(--cyan);
}
.post-list {
  border-top: 1px solid var(--line);
}
.post-row a {
  display: grid;
  gap: 6px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
}
.post-row a:hover {
  background: #121212;
  color: var(--fg);
}
.post-row strong {
  font: 700 21px/1.25 var(--head);
  color: var(--hi);
}
.post-row a:hover strong {
  color: var(--cyan);
}
.narrow-l {
  width: min(920px, 100% - 40px);
  margin-inline: auto;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  padding: 4px 10px;
  border: 1px solid var(--line2);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.toc {
  margin: 0 0 34px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--cyan);
  background: #101010;
}
.toc ol {
  list-style: decimal;
  padding-inline-start: 20px;
  display: grid;
  gap: 6px;
  font-size: 15.5px;
}
.toc a {
  color: var(--fg);
  text-decoration: none;
}
.toc a:hover {
  color: var(--cyan);
}
.post-body h2 {
  scroll-margin-top: 100px;
}
.post-body h3 {
  margin-top: 1.4em;
  font-size: 21px;
}
.post-body ul,
.post-body ol {
  list-style: disc;
  padding-inline-start: 24px;
  margin: 0 0 1.1em;
  color: #cfd6f3;
}
.post-body ol {
  list-style: decimal;
}
.post-body li {
  margin-bottom: 6px;
  color: #d3d0c9;
}
.post-body p {
  color: #d3d0c9;
}
.post-body blockquote {
  margin: 0 0 1.2em;
  padding: 10px 18px;
  border-inline-start: 3px solid var(--cyan);
  background: #121212;
  color: var(--hi);
}
.post-body blockquote p {
  margin: 0;
  color: var(--hi);
}
.post-body figure {
  margin: 0 0 1.4em;
}
.post-body .src,
.post-body .art {
  border: 1px solid var(--line2);
  background: #0e0e0e;
  overflow: hidden;
}
.post-body .src-h {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.post-body pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font: 14px/1.55 'Roboto Mono', ui-monospace, Consolas, monospace;
  color: #e3e0d8;
  direction: ltr;
  text-align: left;
}
.post-body .ln {
  display: inline-block;
  width: 0;
}
.post-body .k-kw {
  color: var(--cyan);
}
.post-body .k-nu,
.post-body .k-st {
  color: #e8c48a;
}
.post-body .k-cm {
  color: #7d7a73;
}
.post-body .k-fn {
  color: #ffffff;
}
.post-body .table {
  overflow-x: auto;
  margin: 0 0 1.4em;
}
.post-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.post-body th,
.post-body td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.post-body th {
  color: var(--hi);
  font-weight: 700;
  border-bottom-color: var(--line2);
}
.post-body code {
  font-family: 'Roboto Mono', ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 60px;
}
.pager a {
  max-width: 48%;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}
.pager a:hover {
  color: var(--cyan);
}
.pager a:last-child {
  text-align: end;
}
@media (max-width: 880px) {
  .feature {
    padding: 24px;
  }
}

/* ------------------------------------------------------------ space backdrop */
/* The whole site sits on a dark starfield; the sections float over it. */
body {
  background-color: #07080b;
  background-image: linear-gradient(rgba(8, 8, 8, 0.3), rgba(8, 8, 8, 0.3)), url(/assets/img/topo.svg);
  background-size: auto, cover;
  background-position: center, center top;
  background-attachment: fixed;
}
body::after {
  display: none;
}
.band.alt {
  background: rgba(10, 11, 14, 0.72);
}

/* ------------------------------------------------- home: slider + the Earth */
/* The photos lie on top of each other. Each fades in, slowly zooms out, and fades away while
   the next one comes in: 7 seconds each. How many there are, which picture each one shows, when
   each starts and the keyframes (slide, develop, cap, word, tear) all depend on the number of
   photos, so src/build.mjs (sliderCss) writes them after this file and sets --round, the length
   of one round, on .space-hero. Nothing in this file needs to change when a photo is added. */
.space-hero {
  isolation: isolate;
  min-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 120px;
  border-bottom: 1px solid var(--line);
  background: #050608 url(/assets/img/ice.jpg) center / cover;
}
.slides {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.slides .sl {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  animation: slide var(--round, 42s) linear infinite;
}
/* darker on the text side so the words stay readable on every photo */
.slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #07080b 0%, rgba(7, 8, 11, 0) 30%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.88) 0%, rgba(6, 7, 10, 0.55) 40%, rgba(6, 7, 10, 0.08) 75%, rgba(6, 7, 10, 0.22) 100%);
}
html[dir='rtl'] .slides::after {
  background:
    linear-gradient(0deg, #07080b 0%, rgba(7, 8, 11, 0) 30%),
    linear-gradient(270deg, rgba(6, 7, 10, 0.88) 0%, rgba(6, 7, 10, 0.55) 40%, rgba(6, 7, 10, 0.08) 75%, rgba(6, 7, 10, 0.22) 100%);
}
.space-hero h1,
.space-hero .lede {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65);
}
.space-hero .lede {
  color: var(--fg);
}
/* what the current photo shows, bottom corner, changing with the slides */
.slide-caps {
  position: absolute;
  inset-inline: 0;
  bottom: 30px;
  width: min(var(--wrap), 100% - 40px);
  height: 22px;
  margin-inline: auto;
  font-size: 13.5px;
  color: var(--dim);
}
.slide-caps li {
  position: absolute;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: cap var(--round, 42s) linear infinite;
}
.slide-caps li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--dim);
}

/* The headline follows the photos: the lines lie on top of each other, one per photo. Each
   comes in word by word, turning up from below, stays while its photo is shown and leaves
   just before the next one. The first line is the one people who turn motion off see. */
.roles .rls {
  display: grid;
}
.roles .rl {
  grid-area: 1 / 1;
  align-self: end;
  perspective: 700px;
}
.roles .w {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
  animation: word var(--round, 42s) cubic-bezier(0.2, 0.7, 0.2, 1) infinite both;
  animation-delay: calc(var(--s, 0s) + var(--k, 0) * 75ms);
}
.roles .r1 .w {
  opacity: 1;
}
.roles .w:nth-child(2) {
  --k: 1;
}
.roles .w:nth-child(3) {
  --k: 2;
}
.roles .w:nth-child(4) {
  --k: 3;
}
.roles .w:nth-child(5) {
  --k: 4;
}
.roles .w:nth-child(6) {
  --k: 5;
}
.roles .w:nth-child(n + 7) {
  --k: 6;
}

/* The Earth: a real map of the planet (NASA) slides behind a round window, tilted like
   the real axis. Light from the upper left, night on the right, a thin blue atmosphere. */
.planet {
  --e: min(380px, 70vw);
  position: relative;
  justify-self: center;
  width: var(--e);
  height: var(--e);
  margin: 30px 0;
  transform-style: preserve-3d;
}
.earth {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0b1d3a url(/assets/img/earth.jpg) 0 50% / auto 100% repeat-x;
  transform: rotate(-23.4deg);
  animation: earth-spin 80s linear infinite;
  box-shadow:
    0 0 0 1px rgba(150, 200, 255, 0.16),
    0 0 46px 4px rgba(90, 150, 255, 0.3),
    0 0 150px 16px rgba(60, 110, 255, 0.13);
}
/* west to east, the way it really turns; one turn = the map's width (twice the height) */
@keyframes earth-spin {
  to {
    background-position: calc(var(--e) * 2) 50%;
  }
}
.planet::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 66%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(112deg, rgba(0, 0, 0, 0) 40%, rgba(2, 4, 10, 0.86) 80%);
  box-shadow: inset 10px 8px 26px rgba(150, 200, 255, 0.28);
}
/* a small satellite on a tilted orbit: it passes in front of the planet and behind it */
.orbit {
  position: absolute;
  inset: -17%;
  border-radius: 50%;
  border: 1px dashed rgba(233, 231, 226, 0.3);
  transform: rotate(-16deg) rotateX(74deg);
  transform-style: preserve-3d;
}
.orbit i {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: orbit 16s linear infinite;
}
.orbit i::before {
  content: '';
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 14px 2px rgba(255, 107, 26, 0.7);
  animation: face 16s linear infinite;
}
@keyframes orbit {
  to {
    transform: rotateZ(360deg);
  }
}
/* keeps the satellite turned towards us while it goes round */
@keyframes face {
  from {
    transform: rotateZ(0deg) rotateX(-74deg) rotate(61deg);
  }
  to {
    transform: rotateZ(-360deg) rotateX(-74deg) rotate(61deg);
  }
}
@media (max-width: 880px) {
  .space-hero {
    min-height: 0;
    padding: 50px 0 90px;
  }
  .planet {
    --e: min(250px, 62vw);
    margin: 10px auto 20px;
  }
}

/* ------------------------------------------------------ home: the polar map */
.polar-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 50px;
  align-items: center;
}
.polar-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: radial-gradient(ellipse at 52% 50%, #131a22 0%, #0a0d11 72%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.polar-map .arctic {
  width: 100%;
}
.polar-copy .post-list {
  margin-top: 26px;
}
/* two layers of falling snow over the map */
.snow {
  position: absolute;
  inset: -40px -20px 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 64% 46%, rgba(255, 255, 255, 0.7) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 38% 82%, rgba(255, 255, 255, 0.8) 0 1.3px, transparent 2px),
    radial-gradient(circle at 88% 70%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px);
  background-size: 170px 170px;
  animation: snow 10s linear infinite, sway 4s ease-in-out infinite alternate;
}
.snow.far {
  background-size: 85px 85px;
  opacity: 0.45;
  animation-duration: 17s, 5.5s;
}
@keyframes snow {
  to {
    background-position: 0 170px;
  }
}
@keyframes sway {
  from {
    transform: translateX(-7px);
  }
  to {
    transform: translateX(7px);
  }
}
.arctic .sweep {
  transform-box: view-box;
  transform-origin: 420px 250px;
  animation: turn 7s linear infinite;
}
.arctic .route {
  animation: route 1.8s linear infinite;
}
.arctic .stn {
  animation: blink 1.4s steps(2, jump-none) infinite;
}
.arctic .s1 {
  animation-delay: 0.35s;
}
.arctic .s2 {
  animation-delay: 0.7s;
}
.arctic .s3 {
  animation-delay: 1.05s;
}
.arctic .ping {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ping 2.8s ease-out infinite;
}
.arctic .p1 {
  animation-delay: 0.7s;
}
.arctic .p2 {
  animation-delay: 1.4s;
}
.arctic .p3 {
  animation-delay: 2.1s;
}
@keyframes ping {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.3);
  }
}
.arctic .floe {
  transform-box: view-box;
  transform-origin: 430px 250px;
  animation: floe 26s ease-in-out infinite alternate;
}
@keyframes floe {
  to {
    transform: rotate(5deg) translate(8px, -5px);
  }
}
.arctic .pass {
  animation: pass 18s linear infinite;
}
@keyframes pass {
  from {
    transform: translate(-20px, 70px);
  }
  to {
    transform: translate(820px, 430px);
  }
}
@media (max-width: 880px) {
  .polar-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ------------------------------------------------- page headers with a photo */
.phead.has-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 110px;
}
.phead.has-bg::before,
.phead.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.phead.has-bg::before {
  background: var(--pic) center / cover no-repeat;
  opacity: 0.6;
  animation: breathe 40s ease-in-out infinite alternate;
}
.phead.has-bg::after {
  background:
    linear-gradient(0deg, #07080b 0%, rgba(7, 8, 11, 0) 55%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.5) 65%, rgba(7, 8, 11, 0.25));
}
html[dir='rtl'] .phead.has-bg::after {
  background:
    linear-gradient(0deg, #07080b 0%, rgba(7, 8, 11, 0) 55%),
    linear-gradient(270deg, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.5) 65%, rgba(7, 8, 11, 0.25));
}
@keyframes breathe {
  to {
    transform: scale(1.08);
  }
}
.bg-ice {
  --pic: url(/assets/img/ice.jpg);
}
.bg-iceedge {
  --pic: url(/assets/img/iceedge.jpg);
}
.bg-earthnight {
  --pic: url(/assets/img/earthnight.jpg);
}
.bg-galaxy {
  --pic: url(/assets/img/galaxy.jpg);
}
.bg-isles {
  --pic: url(/assets/img/isles.jpg);
}
.bg-palms {
  --pic: url(/assets/img/palms.jpg);
}

/* ------------------------------------------- end of a page: a signed note */
.signoff {
  padding-top: 40px;
}
.note {
  position: relative;
  padding: 34px 36px 26px;
  background: rgba(16, 17, 20, 0.9);
  border: 1px solid var(--line2);
  transform: rotate(-0.6deg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
/* a strip of tape holding it up */
.note::before {
  content: '';
  position: absolute;
  top: -13px;
  left: calc(50% - 56px);
  width: 112px;
  height: 26px;
  background: rgba(233, 231, 226, 0.13);
  transform: rotate(2.5deg);
}
.note-h {
  font: 700 27px/1.2 var(--head);
  color: var(--hi);
  margin-bottom: 10px;
}
.note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 20px 0 4px;
  font-size: 16px;
}
.note-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration-color: rgba(255, 107, 26, 0.6);
}
.note-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note-links span {
  color: var(--dim);
}
html[dir='rtl'] .note-links a:last-child svg {
  transform: scaleX(-1);
}
.sig {
  width: fit-content;
  margin: 14px 0 0;
  margin-inline-start: auto;
  font: 500 30px/1 var(--head);
  color: var(--cyan);
  transform: rotate(-4deg);
}
@media (max-width: 620px) {
  .note {
    padding: 30px 22px 22px;
    transform: none;
  }
}

/* ------------------------------------------------- less like a template */
/* sentence-case headings, no label above every title, no numbered boxes, no corner marks */
h1,
h2 {
  text-transform: none;
  letter-spacing: -0.012em;
}
.kicker {
  display: none;
}
.btn,
.more,
.main-nav a,
.burger nav a {
  text-transform: none;
  letter-spacing: 0.01em;
}
.btn {
  font-weight: 500;
  font-size: 15.5px;
}
.ph.hud::before,
.card::before {
  display: none;
}
.shead {
  margin-bottom: 30px;
}

/* ------------------------------------------------------- moving drawings */
@keyframes blink {
  50% {
    opacity: 0.15;
  }
}
.ill .blink {
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.compass .needle {
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: needle 7s ease-in-out infinite;
}
@keyframes needle {
  0%,
  100% {
    transform: rotate(-16deg);
  }
  30% {
    transform: rotate(11deg);
  }
  55% {
    transform: rotate(-6deg);
  }
  78% {
    transform: rotate(4deg);
  }
}
.dogtags .swing {
  transform-box: view-box;
  transform-origin: 112px 34px;
  animation: swing 5s ease-in-out infinite;
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-3.5deg);
  }
  50% {
    transform: rotate(3.5deg);
  }
}
.radio .dial {
  transform-box: view-box;
  transform-origin: 138px 132px;
  animation: dial 6s ease-in-out infinite;
}
@keyframes dial {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(130deg);
  }
}
.floppy .shutter {
  animation: shutter 6s ease-in-out infinite;
}
@keyframes shutter {
  0%,
  55%,
  100% {
    transform: translateX(0);
  }
  70%,
  88% {
    transform: translateX(-42px);
  }
}
.server .led {
  animation: blink 1.6s steps(2, jump-none) infinite;
}
.server .d1 {
  animation-duration: 1.1s;
  animation-delay: 0.4s;
}
.server .d2 {
  animation-duration: 2.3s;
  animation-delay: 0.8s;
}
.satellite .wave {
  opacity: 0;
  animation: wave 2.4s ease-out infinite;
}
.satellite .w2 {
  animation-delay: 0.35s;
}
.satellite .w3 {
  animation-delay: 0.7s;
}
@keyframes wave {
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.cassette .reel {
  transform-box: fill-box;
  transform-origin: center;
  animation: turn 3.2s linear infinite;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.chip .pulse {
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.topo .route {
  animation: route 1.8s linear infinite;
}
@keyframes route {
  to {
    stroke-dashoffset: -28;
  }
}
.topo .wp {
  transform-box: fill-box;
  transform-origin: center;
  animation: grow 2s ease-in-out infinite;
}
@keyframes grow {
  50% {
    transform: scale(1.3);
  }
}

/* ------------------------------------------------- repair page: 3D scenes */
/* Flat layers placed in 3D space (markup: src/scenes3d.mjs). The computer in the header turns
   and its parts float apart and back; the laptop opens, runs a check and closes. */
@property --gap {
  syntax: '<length>';
  inherits: true;
  initial-value: 22px;
}
.x3 {
  position: relative;
  perspective: 1100px;
  pointer-events: none;
}
.x3 svg {
  display: block;
  width: 100%;
  height: 100%;
}
.x3-shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4%;
  height: 14%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
}
.x3 .led {
  animation: led 2.8s ease-in-out infinite;
}
@keyframes led {
  50% {
    opacity: 0.35;
  }
}
.x3 .blades {
  transform-origin: 72px 100px;
  animation: x3-spin 1.1s linear infinite;
}
@keyframes x3-spin {
  to {
    transform: rotate(360deg);
  }
}

/* a computer taken apart */
.rig {
  width: 300px;
  height: 300px;
}
.rig-in {
  position: absolute;
  left: 40px;
  top: 62px;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  animation:
    rig-turn 36s linear infinite,
    rig-open 10s ease-in-out infinite;
}
@keyframes rig-turn {
  to {
    transform: rotateX(58deg) rotateZ(322deg);
  }
}
@keyframes rig-open {
  0%,
  14% {
    --gap: 3px;
  }
  46%,
  76% {
    --gap: 30px;
  }
  100% {
    --gap: 3px;
  }
}
.ly {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--gap)));
}
.ly0 {
  --i: 0;
}
.ly1 {
  --i: 1;
}
.ly2 {
  --i: 2;
}
.ly3 {
  --i: 3;
}
.ly4 {
  --i: 4;
}
.rig .core {
  animation: led 2s ease-in-out infinite;
}
/* memory sticks stand up from the board */
.ram {
  position: absolute;
  width: 78px;
  height: 24px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, #121418 0 11px, transparent 11px 15px) 5px 4px / calc(100% - 10px) 11px no-repeat,
    #0d3b36;
  box-shadow:
    inset 0 -4px 0 #c9a03d,
    inset 0 0 0 1px #1d4e49;
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}
.ly2 .m1 {
  left: 128px;
  top: 50px;
}
.ly2 .m2 {
  left: 128px;
  top: 74px;
}
.p-repair .phead-art {
  width: 300px;
  opacity: 1;
}
.p-repair .phead.has-art h1,
.p-repair .phead.has-art .lede {
  max-width: calc(100% - 330px);
}
@media (max-width: 880px) {
  .p-repair .phead-art {
    display: block;
    position: relative;
    inset: auto;
    top: auto;
    translate: none;
    width: 300px;
    margin: 6px auto -30px;
  }
  .p-repair .phead.has-art h1,
  .p-repair .phead.has-art .lede {
    max-width: none;
  }
}

/* a laptop that opens, runs a check and closes */
.lt-stage {
  display: grid;
  place-items: center;
}
.lt {
  width: 420px;
  height: 420px;
}
.lt-in {
  position: absolute;
  left: 50px;
  top: 40px;
  width: 320px;
  height: 210px;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-30deg);
  animation: lt-turn 18s ease-in-out infinite alternate;
}
@keyframes lt-turn {
  from {
    transform: rotateX(-24deg) rotateY(-34deg);
  }
  to {
    transform: rotateX(-16deg) rotateY(24deg);
  }
}
.lt-base,
.lt-lid {
  position: absolute;
  left: 0;
  width: 320px;
  height: 210px;
  transform-style: preserve-3d;
}
.lt-base {
  top: 210px;
  transform-origin: 50% 0;
  transform: rotateX(90deg);
}
.lt-lid {
  top: 0;
  transform-origin: 50% 100%;
  transform: rotateX(10deg);
  animation: lid 12s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}
@keyframes lid {
  0%,
  9% {
    transform: rotateX(-89deg);
  }
  27%,
  79% {
    transform: rotateX(10deg);
  }
  95%,
  100% {
    transform: rotateX(-89deg);
  }
}
.lt-screen,
.lt-shell {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
}
.lt-shell {
  transform: rotateY(180deg);
}
.lt-screen {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px 18px;
  overflow: hidden;
  background: #0b0d11;
  border: 9px solid #1a1c21;
  box-shadow: inset 0 0 0 1px #2e323a;
  animation: glow 12s ease-in-out infinite;
}
@keyframes glow {
  0%,
  14% {
    filter: brightness(0.15);
  }
  28%,
  82% {
    filter: brightness(1);
  }
  94%,
  100% {
    filter: brightness(0.15);
  }
}
.lt-dots {
  display: flex;
  gap: 6px;
}
.lt-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3f48;
}
.lt-dots i:first-child {
  background: var(--cyan);
}
.lt-lines {
  display: grid;
  gap: 7px;
}
.lt-lines i {
  width: 82%;
  height: 7px;
  border-radius: 4px;
  background: #262a31;
}
.lt-lines i:nth-child(2) {
  width: 60%;
}
.lt-lines i:nth-child(3) {
  width: 71%;
}
.lt-bar {
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #1d2026;
}
.lt-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #ffb27a);
  transform-origin: 0 50%;
  animation: bar 12s linear infinite;
}
html[dir='rtl'] .lt-bar i {
  transform-origin: 100% 50%;
}
@keyframes bar {
  0%,
  30% {
    transform: scaleX(0);
  }
  68%,
  100% {
    transform: scaleX(1);
  }
}
.lt-tick {
  position: relative;
  justify-self: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  animation: tick 12s ease-out infinite;
}
.lt-tick::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  width: 10px;
  height: 20px;
  border: solid var(--cyan);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
@keyframes tick {
  0%,
  68% {
    opacity: 0;
    transform: scale(0.5);
  }
  73%,
  86% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
  }
}
.lt .x3-shadow {
  bottom: 12%;
}
/* spare parts floating next to the laptop */
.lt-part {
  position: absolute;
  animation: float 7s ease-in-out infinite;
}
.lt-part.p1 {
  width: 60px;
  height: 60px;
  left: -34px;
  top: 330px;
}
.lt-part.p2 {
  right: -40px;
  top: 6px;
  animation-delay: -3.5s;
}
.lt-part .ram {
  position: relative;
  display: block;
  transform: rotate(-24deg);
}
@keyframes float {
  50% {
    translate: 0 -16px;
    rotate: 0 1 0 28deg;
  }
}
@media (max-width: 520px) {
  .lt,
  .rig {
    scale: 0.8;
  }
  .lt {
    scale: 0.74;
    margin: -50px -60px;
  }
  /* on a phone the turning laptop must not make the page wider than the screen */
  .lt-stage {
    overflow: hidden;
  }
}

/* service cards tip up into place as they scroll in, and lean towards you under the pointer */
.tilt {
  perspective: 1100px;
}
.tilt .card {
  transform-origin: 50% 100%;
  transition:
    translate 0.35s,
    rotate 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
}
.tilt .card:hover {
  translate: 0 -6px;
  rotate: 1 -1 0 8deg;
  border-color: var(--cyan);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
}
@supports (animation-timeline: view()) {
  .tilt .card {
    animation-name: reveal3d;
  }
}
@keyframes reveal3d {
  from {
    opacity: 0;
    transform: rotateX(50deg) translateY(30px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rig-in {
    --gap: 26px;
  }
}

/* ---------------------------------------------------------- page motion */
.top::after {
  background: linear-gradient(90deg, var(--line2) 0 40%, var(--cyan) 50%, var(--line2) 60% 100%);
  background-size: 300% 100%;
  animation: scan 7s linear infinite;
}
@keyframes scan {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.hcopy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hcopy > :nth-child(2) {
  animation-delay: 0.1s;
}
.hcopy > :nth-child(3) {
  animation-delay: 0.2s;
}
.hcopy > :nth-child(4) {
  animation-delay: 0.3s;
}
.phead .wrap > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.planet {
  animation: appear 1.4s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
}
.kicker::before {
  animation: blink 2.2s steps(2, jump-none) infinite;
}
/* sections slide in as they scroll into view (browsers that support it; others just show them) */
@supports (animation-timeline: view()) {
  .shead,
  .post-row,
  .card,
  .polar-map,
  .faq details,
  .note,
  .desk .ill {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* ================================================================ black ops
   A harder, darker look (owner, 2026-11-30: "really like Black Ops 6"): near black, one signal
   colour, condensed capital headings, typewriter labels, film grain and scan lines, landscape
   photos (arctic ice, tropical islands, one galaxy) graded to black and the signal colour, text
   that comes out from under redaction bars. All of it is drawn here; no game logo, lettering or
   artwork is copied. Rules in this block override the older layers above. */
:root {
  --bg: #080808;
  --bg2: #0d0d0d;
  --panel: rgba(13, 13, 13, 0.93);
  --panel2: #111111;
  --line: #232323;
  --line2: #38352f;
  --yellow: var(--cyan);
  --ok: var(--cyan);
  --tint: 255, 107, 26; /* the signal colour as r, g, b, for washes */
  --disp: 'Roboto Condensed', 'Roboto', 'Arial Narrow', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', sans-serif;
  --code: 'Roboto Mono', ui-monospace, Consolas, 'Segoe UI', Tahoma, monospace;
}
/* the pill a visitor took changes the signal colour (the server marks <html>) */
html[data-pill='red'] {
  --cyan: #ff2e2e;
  --tint: 255, 46, 46;
}
html[data-pill='blue'] {
  --cyan: #4aa3ff;
  --tint: 74, 163, 255;
}

/* the ground: contour lines of a survey map, made by the build (src/textures.mjs) */
body {
  background-color: var(--bg);
  background-image: url(/assets/img/topo.svg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.band.alt {
  background: rgba(11, 11, 11, 0.8);
  border-block: 1px solid var(--line);
}
/* film grain, scan lines and dark corners over everything; clicks pass through */
.fx {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: url(/assets/img/grain.png);
  opacity: 0.5;
  animation: grain 0.9s steps(1) infinite;
}
.fx::before,
.fx::after {
  content: '';
  position: absolute;
  inset: 0;
}
.fx::before {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
}
.fx::after {
  background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.45) 100%);
}
@keyframes grain {
  0% {
    background-position: 0 0;
  }
  17% {
    background-position: -37px 21px;
  }
  34% {
    background-position: 29px -48px;
  }
  51% {
    background-position: -61px -17px;
  }
  68% {
    background-position: 43px 55px;
  }
  85% {
    background-position: -18px 33px;
  }
}

/* ---- lettering */
h1,
h2,
.note-h,
.btn,
.more,
.main-nav a,
.burger nav a,
.logo .mark,
.post-row strong,
.card h3,
.prose h3,
.pill strong,
.arc-tab {
  font-family: var(--disp);
}
h1,
h2 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.004em;
}
h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.98;
}
h2 {
  font-size: clamp(27px, 3.1vw, 42px);
  line-height: 1.02;
}
.band h2::after,
.phead h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--cyan);
}
.phead h1 {
  font-size: clamp(38px, 5vw, 74px);
  max-width: 17ch;
}
.p-post .phead h1 {
  font-size: clamp(31px, 3.9vw, 54px);
  max-width: 24ch;
}
.prose h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}
.prose h3,
.card h3 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.kicker,
.pdate,
.cam,
.planet .tag,
.slide-caps,
.legal,
.tags span,
.arc-bar,
.meta {
  font-family: var(--code);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker::before {
  width: 9px;
  height: 9px;
  margin: 0;
}
.kicker::after {
  content: '';
  flex: 0 0 46px;
  height: 1px;
  background: var(--line2);
}
html[dir='rtl'] :is(h1, h2, h3, .btn, .more, .kicker, .pdate, .main-nav a, .burger nav a, .pill strong, .arc-tab, .post-row strong) {
  letter-spacing: 0;
}

/* ---- header: a hazard strip on top, capital links */
.top::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--cyan) 0 9px, #000 9px 18px);
}
.main-nav a,
.burger nav a {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
}
/* the donate link, last in the menu, in the signal colour so that it is found */
.main-nav a.give,
.burger nav a.give {
  color: var(--cyan);
}
.logo .mark {
  font-weight: 800;
  letter-spacing: 0;
}
.lang ul {
  border-top: 3px solid var(--cyan);
  background: #0c0c0c;
}
.lang li a {
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 0.03em;
  border-inline-start: 3px solid transparent;
}
.lang li a:hover,
.lang li a[aria-current] {
  background: rgba(var(--tint), 0.09);
  border-inline-start-color: var(--cyan);
  color: var(--hi);
}
/* When the language menu is open. The list sits beside its button, not inside it.
   Touch screen: a tap on the button opens the list and a second tap closes it (the <details>
   keeps that state). Mouse: the list is open while the pointer is over the button or the list
   and closes shortly after the pointer leaves (the owner's request); a click changes nothing
   there. Keyboard: open while the focus is on the button or in the list. No script. */
.lang > ul {
  display: none;
}
.lang > details[open] + ul {
  display: grid;
}
.lang details[open] summary {
  border-color: var(--cyan);
  color: var(--hi);
}
@media (hover: hover) and (pointer: fine) {
  .lang > ul,
  .lang > details[open] + ul {
    display: grid;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.12s ease, visibility 0s linear 0.25s;
  }
  .lang:hover > ul,
  .lang:has(:focus-visible) > ul {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  /* a strip over the gap between the button and the list, so the pointer can cross it; as wide
     as the list while the list is open */
  .lang::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 100%;
    width: 100%;
    height: 10px;
  }
  .lang:hover::after {
    width: 330px;
  }
  .lang:hover summary,
  .lang details[open] summary {
    border-color: var(--cyan);
    color: var(--hi);
  }
  .lang:not(:hover) details[open] summary {
    border-color: var(--line2);
    color: var(--fg);
  }
}
/* browsers that cannot ask "is the keyboard focus inside" open the list for any focus inside */
@supports not selector(:has(a)) {
  .lang:focus-within > ul {
    visibility: visible;
    opacity: 1;
  }
}

/* ---- buttons: cut corners */
.btn {
  font-weight: 700;
  font-size: 15.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}
.btn.sm {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
/* outlined buttons keep a square frame and get a small corner mark instead */
.btn.tg,
.btn.ghost {
  position: relative;
  clip-path: none;
}
.btn.tg::after,
.btn.ghost::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(225deg, var(--cyan) 0 50%, transparent 50%);
}
html[dir='rtl'] .btn.tg::after,
html[dir='rtl'] .btn.ghost::after {
  background: linear-gradient(135deg, var(--cyan) 0 50%, transparent 50%);
}
.more {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---- cards: file folders with a cut corner and a sweep of light on hover */
.card {
  position: relative;
  overflow: hidden;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
html[dir='rtl'] .card {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}
.card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  background: var(--cyan);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(var(--tint), 0.1), transparent);
  transition: left 0.6s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--cyan);
}
.card:hover::after {
  left: 115%;
}
.card h3 {
  font-weight: 700;
  font-size: 19px;
}
.form.card {
  clip-path: none;
  overflow: visible;
}
.form.card::after {
  display: none;
}

/* ---- the form: neutral dark fields, the signal colour when one is in use */
.form input,
.form select,
.form textarea {
  background: #0b0b0b;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--tint), 0.18);
}
.form label {
  font-family: var(--code);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
html[dir='rtl'] .form label {
  letter-spacing: 0;
}

/* ---- photos: black and white, corner brackets */
.ph.hud::before {
  content: '';
  display: block;
}
.ph img {
  filter: grayscale(1) contrast(1.2) brightness(0.9);
}

/* ---- the article list: numbered files, text under a bar until it scrolls in */
.post-list {
  counter-reset: file;
  border-top: 1px solid var(--line2);
}
.post-row a {
  position: relative;
  grid-template-columns: 54px 1fr;
  column-gap: 14px;
  padding: 22px 14px;
  transition: background 0.25s;
}
.post-row a > * {
  grid-column: 2;
}
.post-row a::before {
  counter-increment: file;
  content: counter(file, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  font: 700 26px/1 var(--code);
  color: var(--line2);
  transition: color 0.25s;
}
.post-row a::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.25s;
}
.post-row a:hover {
  background: rgba(var(--tint), 0.06);
}
.post-row a:hover::before {
  color: var(--cyan);
}
.post-row a:hover::after {
  transform: scaleY(1);
}
.post-row strong {
  font-weight: 700;
  font-size: 23px;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.pdate {
  font-size: 12px;
  letter-spacing: 0.16em;
}
.pdesc {
  position: relative;
  width: fit-content;
}
@supports (animation-timeline: view()) {
  .pdesc::after {
    content: '';
    position: absolute;
    inset: 0 -4px;
    background: #1c1b19;
    transform-origin: 100% 50%;
    animation: unredact linear both;
    animation-timeline: view();
    animation-range: entry 20% entry 90%;
  }
  html[dir='rtl'] .pdesc::after {
    transform-origin: 0 50%;
  }
}
@keyframes unredact {
  to {
    transform: scaleX(0);
  }
}
@media (max-width: 620px) {
  .post-row a {
    grid-template-columns: 38px 1fr;
    padding-inline: 4px;
  }
  .post-row a::before {
    font-size: 19px;
  }
  .post-row strong {
    font-size: 20px;
  }
}

/* ---- the home hero: a camera frame, and the signal colour as the slider's change-over.
   Each photo arrives in black and the signal colour, like a picture still being processed;
   then a line of light travels down it and behind the line its true colours come out. Two
   layers on every slide do it: one takes the colour out, one lays the signal colour over;
   both are cut away from the top as the line passes (same clock as the slides: 42 s). */
.slides .sl {
  filter: contrast(1.1) brightness(0.8) saturate(0.9);
}
.slides .sl::before,
.slides .sl::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: develop var(--round, 42s) linear infinite;
  animation-delay: inherit;
}
.slides .sl::before {
  background: #808080;
  mix-blend-mode: saturation;
}
.slides .sl::after {
  background: rgb(var(--tint));
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.phead.has-bg::before {
  filter: grayscale(1) contrast(1.2) brightness(0.8) sepia(1) saturate(4.2) hue-rotate(-18deg);
  opacity: 0.5;
}
html[data-pill='red'] .phead.has-bg::before {
  filter: grayscale(1) contrast(1.2) brightness(0.8) sepia(1) saturate(5.5) hue-rotate(-42deg);
}
html[data-pill='blue'] .phead.has-bg::before {
  filter: grayscale(1) contrast(1.1) brightness(0.85) sepia(1) saturate(3.4) hue-rotate(172deg);
}
.cam {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(233, 231, 226, 0.72);
}
/* the frame's corners */
.cam::before {
  content: '';
  position: absolute;
  inset: 22px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 34px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 2px 34px no-repeat,
    linear-gradient(var(--fg), var(--fg)) top right / 34px 2px no-repeat,
    linear-gradient(var(--fg), var(--fg)) top right / 2px 34px no-repeat,
    linear-gradient(var(--fg), var(--fg)) bottom left / 34px 2px no-repeat,
    linear-gradient(var(--fg), var(--fg)) bottom left / 2px 34px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 34px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 2px 34px no-repeat;
  opacity: 0.8;
}
/* the line of light: once per photo (7 s), from 1.8 s to 4.2 s, exactly where the colour changes */
.cam::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 110px;
  translate: 0 -100%;
  background: linear-gradient(180deg, transparent, rgba(var(--tint), 0.1) 72%, rgba(var(--tint), 0.35) 96%, rgba(255, 255, 255, 0.7) 99.2%, transparent);
  opacity: 0;
  animation: cam-scan 7s linear infinite;
}
@keyframes cam-scan {
  0%,
  25.7% {
    top: 0%;
    opacity: 0;
  }
  26% {
    top: 0%;
    opacity: 1;
  }
  60% {
    top: 100%;
    opacity: 1;
  }
  60.5%,
  100% {
    top: 100%;
    opacity: 0;
  }
}
.cam > span {
  position: absolute;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cam-file {
  inset-inline-start: 44px;
}
.cam-file b {
  position: relative;
  display: inline-block;
  width: 2.4ch;
  height: 1em;
  font-weight: 700;
  color: var(--cyan);
}
.cam-file i {
  position: absolute;
  inset: 0;
  font-style: normal;
  line-height: 1;
  opacity: 0;
  animation: cap var(--round, 42s) linear infinite;
}
.cam-sig {
  inset-inline-end: 44px;
  gap: 3px;
}
.cam-sig i {
  width: 4px;
  height: 6px;
  margin-inline-start: 1px;
  background: var(--cyan);
  animation: sig 2.6s steps(1) infinite;
}
.cam-sig i:nth-of-type(1) {
  margin-inline-start: 8px;
}
.cam-sig i:nth-of-type(2) {
  height: 9px;
}
.cam-sig i:nth-of-type(3) {
  height: 12px;
  animation-delay: 0.4s;
}
.cam-sig i:nth-of-type(4) {
  height: 15px;
  animation-delay: 0.9s;
}
@keyframes sig {
  70% {
    opacity: 0.25;
  }
  85% {
    opacity: 1;
  }
}
/* The hero fills the screen under the header exactly, so the whole picture is in view at once:
   the frame's four corners, the headline, the buttons and the caption, with no scrolling.
   (--top is the height of the sticky header; svh is the screen height with a phone's bars shown.)
   The lettering shrinks on low screens so it still fits; only a very long text makes it taller. */
.space-hero {
  --top: 75px;
  min-height: max(430px, calc(100svh - var(--top)));
  padding: clamp(58px, 9.5svh, 104px) 0 clamp(60px, 9.5svh, 104px);
  justify-content: center;
}
.space-hero .hgrid {
  grid-template-columns: minmax(0, 60rem);
}
.space-hero .lede {
  max-width: 44ch;
  font-size: clamp(16px, 2.5svh, 18.5px);
}
.space-hero .ctas {
  margin-top: clamp(14px, 3svh, 26px);
}
/* the headline: capitals; a short tear of red and blue right after each line arrives */
.roles {
  font-size: clamp(34px, min(5.6vw, 9.4svh), 84px);
}
.roles .rl {
  animation: tear var(--round, 42s) steps(1) infinite both;
  animation-delay: var(--s, 0s);
}
/* the Earth: a ring of ticks and two read-outs */
.planet .ring {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(233, 231, 226, 0.5) 0 0.6deg, transparent 0.6deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  animation: turn 90s linear infinite reverse;
  opacity: 0.6;
}
.planet .tag {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(233, 231, 226, 0.75);
  white-space: nowrap;
}
.planet .tag::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-inline-end: 8px;
  vertical-align: middle;
  background: var(--cyan);
}
.planet .t1 {
  top: -9%;
  inset-inline-start: 62%;
}
.planet .t2 {
  bottom: -9%;
  inset-inline-end: 62%;
}
.slide-caps {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .cam > .cam-file,
  .cam > .cam-sig {
    display: none;
  }
  .cam::before {
    inset: 12px;
  }
}

/* ---- two pills */
.pills {
  padding-block: 54px;
  background: rgba(10, 10, 10, 0.82);
  border-block: 1px solid var(--line);
}
.pills-head {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}
.pills-head p {
  max-width: 62ch;
  color: var(--dim);
}
.pill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pill {
  --p: #2f7de1;
  --p2: #9cc8ff;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 22px;
  align-items: center;
  padding: 24px 26px;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.25s,
    background 0.25s,
    translate 0.25s;
}
.pill.red {
  --p: #e02b2b;
  --p2: #ff9a8f;
}
.pill:hover {
  border-color: var(--p);
  background: color-mix(in srgb, var(--p) 9%, #0e0e0e);
  color: var(--fg);
  translate: 0 -3px;
}
.pill strong {
  font-size: 25px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--hi);
}
.pill > span:last-child {
  grid-column: 2;
  color: #c4c1ba;
  font-size: 15.5px;
}
/* the capsule: two halves, a soft shine, a slow float */
.capsule {
  grid-row: 1 / span 2;
  width: 96px;
  height: 40px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%),
    linear-gradient(90deg, var(--p2) 0 50%, var(--p) 50% 100%);
  box-shadow:
    inset 0 -7px 10px rgba(0, 0, 0, 0.35),
    0 10px 26px color-mix(in srgb, var(--p) 45%, transparent);
  rotate: -18deg;
  animation: floaty 5s ease-in-out infinite;
}
.pill.red .capsule {
  animation-delay: -2.5s;
}
.pill:hover .capsule {
  animation-duration: 1.6s;
}
@keyframes floaty {
  50% {
    translate: 0 -7px;
    rotate: -12deg;
  }
}
/* the pill already taken */
html[data-pill='blue'] .pill.blue,
html[data-pill='red'] .pill.red {
  border-color: var(--p);
  box-shadow: inset 0 0 0 1px var(--p);
}
html[data-pill='blue'] .pill.blue strong::after,
html[data-pill='red'] .pill.red strong::after {
  content: ' ✓';
  color: var(--p2);
}
.pill-reset {
  margin-top: 16px;
  font: 500 12.5px/1.4 var(--code);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html:not([data-pill]) .pill-reset {
  display: none;
}
@media (max-width: 760px) {
  .pill-row {
    grid-template-columns: 1fr;
  }
  .capsule {
    width: 76px;
    height: 32px;
  }
  .pill {
    padding: 20px 18px;
    gap: 4px 16px;
  }
}
/* blue pill: calm. No grain, no scan lines, no tearing; cooler pictures, plain headings. */
html[data-pill='blue'] .fx,
html[data-pill='blue'] .cam::after {
  display: none;
}
html[data-pill='blue'] .roles .rl {
  animation: none;
}
html[data-pill='blue'] :is(h1, h2, .post-row strong) {
  text-transform: none;
}
html[data-pill='blue'] :is(.polar-map .arctic, .desk .ill) {
  filter: hue-rotate(186deg);
}
/* red pill: everything a notch harder */
html[data-pill='red'] .fx {
  opacity: 0.8;
}
html[data-pill='red'] .roles .rl {
  animation-duration: calc(var(--round, 42s) / 2);
}

/* ---- footer */
.foot {
  position: relative;
  background: rgba(8, 8, 8, 0.9);
}
.foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--cyan) 0 12px, #000 12px 24px);
  opacity: 0.85;
}
.foot h2 {
  font-family: var(--code);
  font-weight: 500;
}
.foot h2::after {
  display: none;
}
.legal {
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---- the games page */
.arcade {
  max-width: 760px;
  margin-inline: auto;
  --arc: #0a0a0a;
}
.arc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.arc-tab {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--line2);
  background: #0d0d0d;
  color: var(--dim);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.arc-tab:hover {
  color: var(--hi);
  border-color: var(--cyan);
}
.arc-tab[aria-selected='true'] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
}
.arc-screen {
  position: relative;
  border: 1px solid var(--line2);
  background: var(--arc);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.arc-screen canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  touch-action: none;
  cursor: crosshair;
}
.arc-screen canvas[hidden],
.arc-code[hidden],
.arc-over[hidden],
.arc-pad[hidden] {
  display: none;
}
.arc-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: rgba(8, 8, 8, 0.74);
}
.arc-msg {
  font: 800 clamp(26px, 5vw, 44px) / 1 var(--disp);
  text-transform: uppercase;
  color: var(--hi);
  text-align: center;
}
.arc-msg:empty {
  display: none;
}
.arc-start {
  border: 0;
  cursor: pointer;
  font-size: 18px;
  padding: 14px 34px;
}
.arc-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.arc-score {
  color: var(--hi);
}
.arc-pad {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-template-areas: '. u .' 'l . r' '. d .';
  gap: 6px;
  justify-content: center;
  margin: 6px 0 14px;
}
.arc-pad button {
  height: 54px;
  border: 1px solid var(--line2);
  background: #0f0f0f;
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
  touch-action: manipulation;
}
.arc-pad button:active {
  background: var(--cyan);
  color: #000;
}
.arc-pad button:nth-child(1) {
  grid-area: u;
}
.arc-pad button:nth-child(2) {
  grid-area: l;
}
.arc-pad button:nth-child(3) {
  grid-area: r;
}
.arc-pad button:nth-child(4) {
  grid-area: d;
}
@media (pointer: fine) {
  .arc-pad {
    display: none;
  }
}
.arc-how {
  margin-top: 8px;
  padding: 16px 18px;
  border-inline-start: 3px solid var(--cyan);
  background: rgba(14, 14, 14, 0.9);
  color: #c4c1ba;
}
.arc-how strong {
  color: var(--hi);
  text-transform: uppercase;
  font-family: var(--disp);
  letter-spacing: 0.04em;
}
.arc-note,
.arc-noscript {
  margin-top: 18px;
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}
.arc-noscript {
  color: var(--cyan);
}
/* Code: eight rows of four figures, with the answer dots at the side */
.arc-code {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 26px 16px;
  aspect-ratio: 3 / 2;
  align-content: center;
}
.code-rows {
  display: grid;
  gap: 6px;
}
.code-row {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
}
.code-row.now,
.code-row:has(.full, .half),
.code-row:has(.code-cell:not(:empty)) {
  opacity: 1;
}
.code-cell {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line2);
  background: #101010;
  font: 700 19px/1 var(--code);
  color: var(--hi);
}
.code-row.now .code-cell {
  border-color: var(--cyan);
}
.code-fb {
  display: grid;
  grid-template-columns: repeat(4, 11px);
  gap: 5px;
  margin-inline-start: 10px;
}
.code-fb i {
  width: 11px;
  height: 11px;
  border: 1px solid var(--line2);
  border-radius: 50%;
}
.code-fb .half {
  border: 2px solid var(--cyan);
}
.code-fb .full {
  border-color: var(--cyan);
  background: var(--cyan);
}
.code-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.code-keys button {
  min-width: 46px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  background: #0f0f0f;
  color: var(--fg);
  font: 700 17px/1 var(--code);
  cursor: pointer;
}
.code-keys button:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--hi);
}
.code-keys .code-check {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
  font-family: var(--disp);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.code-keys button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 520px) {
  .arc-code {
    aspect-ratio: auto;
  }
  .code-cell {
    width: 34px;
    height: 30px;
  }
}

/* ---- the donate page: one card per address, its QR code on a white tile (a code needs light
   around it to scan), the address in full beside it. The cards are written by the server from
   the addresses the owner entered in the panel. */
.dn-list {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.dn-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--cyan);
}
/* the code sits above the film grain that covers the rest of the page (.fx, z-index 45), so a
   phone's camera sees clean black and white */
.dn-qr {
  position: relative;
  z-index: 46;
  background: #fff;
  line-height: 0;
}
.dn-qr svg {
  width: 100%;
  height: auto;
}
.dn-text h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 28px);
}
/* the coins' own marks: the network's beside its name, and one chip for each coin the address takes */
.dn-text h2 .coin {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-inline-end: 10px;
  vertical-align: -6px;
}
.dn-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.dn-coins li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  background: #0b0b0b;
  border: 1px solid var(--line2);
  font: 700 13px/1 var(--code);
  letter-spacing: 0.06em;
  color: var(--hi);
}
.dn-coins .coin {
  width: 20px;
  height: 20px;
}
.dn-text p {
  margin: 0 0 10px;
  color: #c4c1ba;
}
.dn-addr {
  margin: 0 !important;
  padding: 10px 12px;
  background: #060606;
  border: 1px solid var(--line2);
}
.dn-addr code {
  font: 500 15px/1.5 var(--code);
  color: var(--hi);
  overflow-wrap: anywhere;
  user-select: all;
}
.dn-how,
.dn-check {
  max-width: 62ch;
  color: #c4c1ba;
}
.dn-check {
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--line2);
  font-size: 15.5px;
}
@media (max-width: 560px) {
  .dn-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .dn-qr {
    width: min(220px, 70%);
    margin-inline: auto;
  }
}

/* ---- back to top: a link to #top, no script.
   A rail runs down the side of the page content. The button begins a screen and a bit below the
   rail's start (its top margin) and is sticky just above the bottom edge of the screen, so it is
   out of sight until that much has been scrolled, then rides up into view, stays while reading
   and leaves with the end of the content, above the footer. On a page too short for that, the
   button falls outside the rail and is cut off: no button there, and no extra scrolling.
   Browsers that cannot cut it off (no overflow: clip) get no button at all. */
main {
  position: relative;
  /* moving decorations (the flying parts of the 3D scenes) must never make the page wider than
     a small phone's screen; clip does this without turning main into a scrolling box */
  overflow-x: clip;
}
.toprail {
  display: none;
}
@supports (overflow: clip) {
  .toprail {
    display: block;
    position: absolute;
    inset-block: 0;
    inset-inline-end: 18px;
    z-index: 40;
    width: 46px;
    overflow: clip;
    pointer-events: none;
  }
}
/* the cookie question sits in the same corner on a phone: it goes first */
body:has(.consent) .toprail {
  display: none;
}
.totop {
  position: sticky;
  top: calc(100vh - 64px);
  top: calc(100svh - 64px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: calc(100vh + 420px);
  background: rgba(12, 12, 12, 0.94);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--line2);
  pointer-events: auto;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.totop::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 9px;
  height: 9px;
  background: linear-gradient(225deg, var(--cyan) 0 50%, transparent 50%);
}
html[dir='rtl'] .totop::after {
  background: linear-gradient(135deg, var(--cyan) 0 50%, transparent 50%);
}
.totop svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}
.totop:hover,
.totop:focus-visible {
  background: var(--cyan);
  color: #000;
  box-shadow: inset 0 0 0 1px var(--cyan);
}
@media (max-width: 760px) {
  .toprail {
    inset-inline-end: 12px;
  }
}

/* A single word longer than a phone's line (German and its neighbours build very long ones:
   "Computerreparaturservice") breaks instead of pushing the page wider than the screen. */
@media (max-width: 480px) {
  h1,
  h2,
  h3 {
    overflow-wrap: anywhere;
  }
}
/* the narrowest phones: a slightly smaller headline, so that a line with a very long word
   (now broken instead of cut off) still leaves the whole slider on the screen */
@media (max-width: 340px) {
  .roles {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .fx {
    animation: none;
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  /* nothing may stay hidden under a bar or wait for a motion that will not come */
  .pdesc::after {
    display: none;
  }
  .cam-file .c1 {
    opacity: 1;
  }
}

/* ---- the slider's clock: written by src/build.mjs (sliderCss) for 8 photos, 7 s each */
.space-hero { --round: 56s; }
.slides .sl1 { background-image: url(/assets/img/ice.jpg); }
.slides .sl2 { background-image: url(/assets/img/palms.jpg); animation-delay: 7s; }
.slide-caps .c2, .cam-file .c2 { animation-delay: 7s; }
.roles .r2 { --s: 7s; }
.slides .sl3 { background-image: url(/assets/img/galaxy.jpg); animation-delay: 14s; }
.slide-caps .c3, .cam-file .c3 { animation-delay: 14s; }
.roles .r3 { --s: 14s; }
.slides .sl4 { background-image: url(/assets/img/shore.jpg); animation-delay: 21s; }
.slide-caps .c4, .cam-file .c4 { animation-delay: 21s; }
.roles .r4 { --s: 21s; }
.slides .sl5 { background-image: url(/assets/img/isles.jpg); animation-delay: 28s; }
.slide-caps .c5, .cam-file .c5 { animation-delay: 28s; }
.roles .r5 { --s: 28s; }
.slides .sl6 { background-image: url(/assets/img/earthnight.jpg); animation-delay: 35s; }
.slide-caps .c6, .cam-file .c6 { animation-delay: 35s; }
.roles .r6 { --s: 35s; }
.slides .sl7 { background-image: url(/assets/img/iceedge.jpg); animation-delay: 42s; }
.slide-caps .c7, .cam-file .c7 { animation-delay: 42s; }
.roles .r7 { --s: 42s; }
.slides .sl8 { background-image: url(/assets/img/island.jpg); animation-delay: 49s; }
.slide-caps .c8, .cam-file .c8 { animation-delay: 49s; }
.roles .r8 { --s: 49s; }
@keyframes slide { 0% { opacity: 0; transform: scale(1.12); } 3.214%, 12.5% { opacity: 1; } 15.714%, 100% { opacity: 0; transform: scale(1.02); } }
@keyframes develop { 0%, 3.214% { clip-path: inset(0 0 0 0); } 7.5%, 100% { clip-path: inset(100% 0 0 0); } }
@keyframes cap { 0%, 2.25% { opacity: 0; transform: translateY(6px); } 4.5%, 11.625% { opacity: 1; transform: none; } 13.125%, 100% { opacity: 0; } }
@keyframes word { 0% { opacity: 0; transform: translateY(0.5em) rotateX(-75deg); filter: blur(7px); } 1.275%, 11.25% { opacity: 1; transform: none; filter: blur(0); } 12.15%, 100% { opacity: 0; transform: translateY(-0.25em) rotateX(35deg); filter: blur(5px); } }
@keyframes tear { 0%, 1.725% { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65); transform: none; } 1.8% { text-shadow: -4px 0 rgba(255, 30, 60, 0.85), 4px 0 rgba(40, 190, 255, 0.85); transform: translateX(-3px) skewX(-4deg); } 2.025% { text-shadow: 3px 0 rgba(255, 30, 60, 0.85), -3px 0 rgba(40, 190, 255, 0.85); transform: translateX(3px); } 2.25%, 7.2% { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65); transform: none; } 7.275% { text-shadow: -3px 0 rgba(255, 30, 60, 0.8), 3px 0 rgba(40, 190, 255, 0.8); transform: translateX(2px) skewX(3deg); } 7.463%, 100% { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65); transform: none; } }
