@font-face {
  font-family: 'Departure Mono';
  src: url('../assets/fonts/DepartureMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0f0d1f;
  --night: #2a2150;
  --mauve: #9a64a8;
  --coral: #ef7b68;
  --peach: #ffb47c;
  --cream: #fff1d9;
  --ice: #aab9f0;
  --pix: 'Departure Mono', ui-monospace, monospace;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, sans-serif;
  --f-lead: var(--pix);
  --f-body: var(--mono);
  --z-hero: 22px;
  --z-xl: clamp(22px, 2.4vw, 33px);
  --z-l: 22px;
  --z-b: 16px;
  --z-s: 14px;
  --gut: clamp(16px, 2.5vw, 36px);
  --maxw: 1368px;
  color-scheme: dark;
}

html, body { margin: 0; background: var(--ink); }
body { color: var(--cream); font-family: var(--f-body); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--peach); text-decoration: none; }
a:hover { color: var(--cream); }
button { font: inherit; color: inherit; border: 0; margin: 0; padding: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
::selection { background: var(--peach); color: var(--ink); }
img { display: block; max-width: 100%; }
canvas { display: block; image-rendering: pixelated; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 70; padding: 10px 14px;
  background: var(--peach); color: var(--ink); font: 13px/1 var(--pix);
}
.skip:focus { top: 12px; color: var(--ink); }

/* ---------- type ---------- */
.px { font-family: var(--pix); }
.label { font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice); }
.lead { font-family: var(--f-lead); font-size: var(--z-l); line-height: 1.45; color: var(--cream); text-wrap: pretty; }
.lead-xl { font-family: var(--f-lead); font-size: var(--z-xl); line-height: 1.4; color: var(--cream); text-wrap: pretty; }
.body { font-family: var(--f-body); font-size: var(--z-b); line-height: 1.6; color: var(--ice); text-wrap: pretty; }
.small { font-family: var(--f-body); font-size: var(--z-s); line-height: 1.45; color: var(--ice); text-wrap: pretty; }
.h3 {
  font: 400 clamp(44px, 4.6vw, 66px)/1 var(--pix); letter-spacing: .01em; color: var(--cream);
  overflow-wrap: anywhere;
}
.h3--m { font-size: clamp(36px, 4.2vw, 60px); }
.h3--s { font-size: clamp(33px, 3.6vw, 44px); line-height: 1.1; text-wrap: balance; }
.c-cream { color: var(--cream); }
.c-ice { color: var(--ice); }
.c-peach { color: var(--peach); }
.c-coral { color: var(--coral); }
.c-mauve { color: var(--mauve); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; }
.sec { padding: 72px var(--gut) 120px; }
.cols { display: flex; flex-wrap: wrap; gap: 36px 48px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack--24 { gap: 24px; }
.stack--12 { gap: 12px; }
.mt-48 { margin-top: 48px; }
.mt-36 { margin-top: 36px; }

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px;
  padding-bottom: 18px; border-bottom: 2px solid var(--night);
}
.h2 {
  display: flex; align-items: center; gap: 18px;
  font: 400 clamp(33px, 3.6vw, 44px)/1 var(--pix); letter-spacing: .02em; color: var(--cream);
}
.h2 .num { font-size: 22px; line-height: 1; background: var(--peach); color: var(--ink); padding: 6px 10px; }

/* ---------- buttons, chips ---------- */

.btn {
  display: inline-flex; gap: 14px; align-items: center; padding: 13px 14px;
  background: var(--peach); color: var(--ink); font: 13px/1 var(--pix); letter-spacing: .08em;
}
.btn:hover { background: var(--cream); color: var(--ink); }
.btn--ghost { background: var(--night); color: var(--cream); }
.btn--ghost:hover { background: var(--peach); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px; }

.chip { font: 11px/1 var(--pix); letter-spacing: .08em; padding: 7px 9px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 11px/1 var(--pix); letter-spacing: .08em; }
.chips > span { background: var(--ink); color: var(--cream); padding: 7px 9px; }
.chips > .chips__k { background: none; color: var(--ice); padding: 7px 6px 7px 0; }

.seg { display: flex; }
.seg button, .seg span { padding: 7px 9px; letter-spacing: inherit; background: var(--ink); color: var(--cream); }
.seg [aria-pressed='true'] { background: var(--peach); color: var(--ink); }
.seg .seg__key { background: var(--night); color: var(--ice); }

/* ---------- windows, tables, tiles ---------- */
.win { display: flex; flex-direction: column; border: 2px solid var(--night); min-width: 0; }
.win__bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 10px 12px; background: var(--night); font: 11px/1.2 var(--pix); letter-spacing: .08em; color: var(--ice);
}
.win__bar > :first-child { color: var(--cream); }
.win__note { padding: 10px 12px; font: 11px/1.6 var(--pix); letter-spacing: .06em; color: var(--ice); }

.trow {
  display: grid; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--night);
  font: 13px/1.35 var(--pix); color: var(--cream); overflow-wrap: anywhere;
}
.trow:last-child { border-bottom: 0; }
.trow--head { font-size: 11px; letter-spacing: .08em; color: var(--ice); }

.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 2px;
  background: var(--night); border: 2px solid var(--night); margin-top: 6px;
}
.tiles--row { margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tile { background: var(--ink); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile__k { font: 22px/1 var(--pix); color: var(--peach); }
.tile__top { display: flex; justify-content: space-between; font: 11px/1 var(--pix); letter-spacing: .08em; color: var(--ice); }

.typer > * { white-space: pre; overflow: hidden; max-width: calc((var(--p, 9999) - var(--o, 0)) * 1ch); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--ink); --s: 3; }
.hero__cv { position: absolute; left: 0; top: 0; touch-action: pan-y; }
.hero__top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: calc(6px * var(--s)) calc(12px * var(--s));
  font: 11px/1.6 var(--pix); letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
}
.hero__top a { pointer-events: auto; color: var(--cream); }
.hero__top a:hover { color: var(--peach); }
.hero__readout { color: var(--ice); text-align: right; }
.hero__panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 24px;
  padding: 0 calc(12px * var(--s)) calc(8px * var(--s) + var(--hint-pad, 0px)); pointer-events: none;
}
.hero__lead { max-width: 640px; font-family: var(--f-lead); font-size: var(--z-hero); line-height: 1.5; color: var(--cream); text-wrap: pretty; }
.no-js .hero__status, .no-js .hero__readout { visibility: hidden; }

/* ---------- about ---------- */
.about { padding: 120px var(--gut) 108px; }
.about__grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.about__readme { flex: 7 1 560px; }
.about__side { flex: 4 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.dot-red { display: block; width: 10px; height: 10px; background: var(--coral); }
.win__title { display: flex; align-items: center; gap: 10px; }
.readme { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.checks {
  background: var(--ink); border: 1px solid var(--night); padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
  font: 13px/1.4 var(--pix); color: var(--cream);
}
.check { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.check > span { flex: 0 0 auto; }
.check__st { white-space: pre; color: var(--peach); }
.check__dots { flex: 1 1 0 !important; min-width: 12px; overflow: hidden; white-space: nowrap; color: var(--mauve); }
.check__by { color: var(--ice); }
.checks__sum { color: var(--peach); }
.toc__dots { flex: 1 1 0; min-width: 1ch; overflow: hidden; color: var(--mauve); }
.toc__dots.is-hot { color: var(--peach); }
.toc__tail { color: var(--ice); }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.inv > div {
  aspect-ratio: 1; background: var(--night); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px; font-family: var(--pix);
}
.inv > div:hover { background: var(--peach); color: var(--ink); }
.inv b { font-weight: 400; font-size: 33px; line-height: 1; }
.inv span { font-size: 11px; line-height: 1.2; letter-spacing: .06em; }

/* ---------- games ---------- */
.dio { position: relative; height: clamp(240px, 26vw, 348px); overflow: hidden; background: var(--ink); }
.dio canvas { position: absolute; left: 0; top: 0; }
.dio__ui {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px;
  padding: 12px; font: 11px/1 var(--pix); letter-spacing: .08em;
}
.dio__ui > span { background: var(--ink); color: var(--cream); padding: 7px 9px; }
.ladder { flex: 0 1 960px; min-width: 0; display: flex; flex-direction: column; }
.ladder canvas { width: 100%; aspect-ratio: 16 / 9; cursor: crosshair; touch-action: pan-y; background: var(--ink); }
.ladder__levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); font: 11px/1 var(--pix); letter-spacing: .06em; }
.ladder__levels span { padding: 10px 0 10px 8px; border-left: 1px solid var(--night); white-space: nowrap; overflow: hidden; color: var(--mauve); }
.ladder__levels span.is-ascii { color: var(--peach); }
.ladder__levels span.is-mid { color: var(--ice); }
.figcap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 8px;
  border-top: 2px solid var(--night); font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice);
}
.figcap .btn-row button { line-height: 1; padding: 7px 10px; background: var(--night); color: var(--cream); letter-spacing: inherit; }
.figcap .btn-row button:hover { background: var(--peach); color: var(--ink); }

.vox-art canvas { width: 100%; max-width: 528px; }
.sb { flex: 1.3 1 520px; }
.sb__prev { position: relative; }
.sb__prev canvas { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.sb__nocap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.sb__nocap span { background: var(--ink); color: var(--cream); padding: 10px 14px; font: 13px/1 var(--pix); letter-spacing: .08em; }
.sb__cap { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--ice); padding: 7px 10px; font: 11px/1.2 var(--pix); letter-spacing: .08em; }
.sb__list { display: flex; flex-direction: column; font: 13px/1 var(--pix); }
.sb__row { display: flex; gap: 12px; width: 100%; text-align: left; border-bottom: 1px solid var(--night); padding: 9px 12px; color: var(--cream); }
.sb__row:hover { background: var(--night); }
.sb__row[aria-pressed='true'] { background: var(--peach); color: var(--ink); }
.sb__row--head { color: var(--ice); font-size: 11px; letter-spacing: .08em; padding: 10px 12px; }
.sb__row--head:hover { background: none; }
.sb__row > :first-child { flex: 1 1 auto; }

.hud { display: flex; flex-wrap: wrap; border: 2px solid var(--night); font: 11px/1 var(--pix); letter-spacing: .08em; }
.hud > span { padding: 11px 12px; color: var(--cream); }
.hud .bar { letter-spacing: 0; color: var(--peach); }
.fan { flex: 1 1 360px; min-width: 0; position: relative; height: 360px; }
.card {
  position: absolute; left: 50%; top: 24px; width: 200px; height: 296px; margin-left: -100px;
  background: var(--cream); color: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 10px;
  transform-origin: 50% 100%; box-shadow: 6px 6px 0 var(--night);
}
.card__top { display: flex; justify-content: space-between; font: 11px/1.2 var(--pix); letter-spacing: .08em; }
.card__art { height: 150px; background: var(--night); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.card__art img.sprite { width: 96px; height: 96px; }
.card__name { font: 22px/1 var(--pix); }
.card__foot { margin-top: auto; font: 11px/1.3 var(--pix); letter-spacing: .08em; }
.receipt {
  flex: 0 0 auto; width: calc(32ch + 36px); max-width: 100%; position: relative; background: var(--cream); color: var(--ink);
  padding: 18px 18px 22px; font: 13px/1.55 var(--pix);
}
.receipt::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background-image: linear-gradient(135deg, var(--cream) 50%, transparent 50%), linear-gradient(225deg, var(--cream) 50%, transparent 50%);
  background-size: 12px 8px; background-repeat: repeat-x;
}

/* ---------- playslice ---------- */
.dither { display: flex; flex-direction: column; }
.dither > div { height: 6px; background-color: var(--ink); background-size: 6px 6px; }
.dither .d1 { background-image: conic-gradient(var(--night) 0 25%, transparent 0); }
.dither .d2 { background-image: conic-gradient(var(--night) 0 25%, transparent 0 50%, var(--night) 0 75%, transparent 0); }
.dither .d3 { background-image: conic-gradient(var(--night) 0 75%, transparent 0); }
.ps { background: var(--night); }
.ps .sec-head { border-bottom-color: var(--ink); }
.ps__cta {
  align-self: flex-start; display: flex; align-items: center; gap: 14px; background: var(--peach); color: var(--ink);
  padding: 18px 22px; font: 22px/1 var(--pix);
}
.ps__cta:hover { background: var(--cream); color: var(--ink); }
.curve { background: var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.curve__bars { font: clamp(14px, 4.2vw, 44px)/1 var(--pix); letter-spacing: 0; color: var(--peach); white-space: pre; }
.curve__mark { font: clamp(14px, 4.2vw, 44px)/.7 var(--pix); letter-spacing: 0; color: var(--coral); white-space: pre; }
.curve__axis { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice); }
.hood { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.hood li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ink); font-family: var(--f-body); font-size: var(--z-s); line-height: 1.5; color: var(--cream); }
.hood li::before { content: '►'; font-family: var(--pix); color: var(--peach); }
.feed { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.slice { background: var(--ink); }
.slice__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px; font-family: var(--pix); }
.slice__top b { font-weight: 400; font-size: 13px; color: var(--cream); }
.slice__top span { font-size: 11px; letter-spacing: .08em; color: var(--ice); }
.slice__shot { aspect-ratio: 16 / 10; background: var(--night); overflow: hidden; }
.slice__shot img { width: 100%; height: 100%; object-fit: cover; }
.slice__note { padding: 10px 12px 0; font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--coral); }
.slice__acts { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; font: 11px/1 var(--pix); letter-spacing: .08em; }
.slice__acts span { background: var(--night); color: var(--cream); padding: 7px 10px; }
.slice__acts span:first-child { background: var(--peach); color: var(--ink); }

/* ---------- ai ---------- */
.ai-claim { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; max-width: 1000px; }
.ai-claim p:first-child { font: clamp(28px, 3.4vw, 44px)/1.15 var(--pix); color: var(--cream); text-wrap: balance; }
.ai-claim p:last-child { font-family: var(--f-lead); font-size: var(--z-hero); line-height: 1.5; color: var(--ice); }
.term { padding: 14px 12px 16px; font: 13px/1.7 var(--pix); color: var(--cream); }
.term .p { color: var(--peach); }
.term .o { color: var(--ice); }
.term .e { color: var(--coral); }
.term .d { color: var(--ice); }

.amap { position: relative; height: clamp(260px, 26vw, 348px); overflow: hidden; background: var(--ink); border: 2px solid var(--night); }
.amap__ascii { position: absolute; inset: 0; font: 13px/15px var(--pix); white-space: pre; }
.amap__ascii div { height: 15px; }
.pin { position: absolute; display: flex; align-items: center; gap: 6px; font: 11px/1 var(--pix); letter-spacing: .08em; }
.pin i { width: 12px; height: 12px; background: var(--peach); }
.pin span { background: var(--ink); border: 1px solid var(--peach); color: var(--cream); padding: 5px 7px; white-space: nowrap; }
.pin--bad { flex-direction: row-reverse; }
.pin--bad i { background: var(--coral); }
.pin--bad span { border-color: var(--coral); color: var(--coral); text-decoration: line-through; }
.amap__ui {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px;
  padding: 12px; font: 11px/1 var(--pix); letter-spacing: .08em;
}
.amap__ui > span { background: var(--ink); color: var(--cream); padding: 7px 9px; }
.amap__foot { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 4px; font: 11px/1 var(--pix); letter-spacing: .08em; }
.amap__foot span { background: var(--ink); color: var(--cream); padding: 7px 9px; }
.amap__foot .amap__verdict { background: var(--peach); color: var(--ink); }

.chat__tabs { display: flex; flex-wrap: wrap; font: 11px/1 var(--pix); letter-spacing: .08em; background: var(--night); }
.chat__tabs span { padding: 10px 12px; color: var(--ice); }
.chat__tabs .on { background: var(--ink); color: var(--peach); }
.chat__tabs .role { margin-left: auto; }
.chat__log { display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg__who { font: 11px/1 var(--pix); letter-spacing: .08em; color: var(--ice); }
.msg p { padding: 10px 12px; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: var(--z-s); line-height: 1.5; text-wrap: pretty; }
.msg--me p { background: var(--night); color: var(--cream); }
.msg__src { align-self: flex-start; font: 11px/1.3 var(--pix); letter-spacing: .08em; border: 1px solid var(--peach); color: var(--peach); padding: 5px 7px; }
.tool { display: flex; gap: 10px; padding: 9px 12px; font: 13px/1.35 var(--pix); overflow-wrap: anywhere; border: 1px dashed var(--ice); color: var(--ice); }
.tool--deny { border-color: var(--coral); color: var(--coral); }
.chat__input { display: flex; gap: 10px; align-items: center; margin-top: auto; padding: 12px 14px; border-top: 2px solid var(--night); font: 13px/1 var(--pix); color: var(--ice); }
.chat__input i { width: 8px; height: 15px; background: var(--peach); }
.tline { display: grid; grid-template-columns: 36px 36px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 12px; border-bottom: 1px solid var(--night); font: 13px/1.4 var(--pix); color: var(--cream); }
.tline > :nth-child(1) { color: var(--mauve); }
.tline > :nth-child(2) { color: var(--ice); }
.tline > :nth-child(3) { font-family: var(--f-body); font-size: var(--z-s); overflow-wrap: anywhere; }
.mark { font-size: 11px; letter-spacing: .08em; padding: 4px 6px; white-space: nowrap; background: var(--peach); color: var(--ink); }
.mark--fail { background: var(--coral); }
.mark--mask { background: var(--ice); }
.masked { font-family: var(--pix); background: var(--peach); color: var(--ink); padding: 0 4px; }
.heat { display: grid; grid-template-columns: 88px repeat(5, minmax(0, 1fr)); gap: 4px; padding: 14px 12px; font: 11px/1 var(--pix); letter-spacing: .08em; color: var(--ice); }
.heat > span { text-align: center; }
.heat > .who { text-align: left; align-self: center; color: var(--cream); }
.heat > i { height: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 12px 12px; font: 11px/1 var(--pix); letter-spacing: .08em; color: var(--ice); }
.legend span { display: flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; }
.h-a { background: var(--peach); }
.h-b { background: var(--coral); }
.h-c { background: var(--mauve); }
.h-d { background: var(--night); }

/* ---------- contact ---------- */
.contact { padding: 96px var(--gut) 48px; border-top: 2px solid var(--night); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 72px; align-items: end; width: 100%; }
.contact__title { margin: 0; font: 400 clamp(30px, 3.6vw, 48px)/1.1 var(--pix); color: var(--cream); text-wrap: balance; }
.links { display: flex; flex-direction: column; align-items: stretch; font: clamp(14px, 1.5vw, 20px)/1 var(--pix); text-align: left; }
.links a { display: flex; white-space: pre; padding: 10px 0; color: var(--cream); }
.links a:hover { color: var(--peach); }
.links .dots { color: var(--mauve); }
.links .val { color: var(--ice); }
.foot {
  width: 100%; margin: 72px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 18px;
  border-top: 2px solid var(--night); font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice);
}

/* ---------- overlays ---------- */
.dissolve { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }
.crt-lines { position: fixed; inset: 0; z-index: 55; pointer-events: none; background-image: repeating-linear-gradient(to bottom, rgba(15, 13, 31, .35) 0 2px, transparent 2px 4px); }
.crt-badge {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 56; background: var(--coral); color: var(--ink);
  padding: 8px 12px; font: 11px/1 var(--pix); letter-spacing: .08em; white-space: nowrap;
}
.page.is-crt { filter: url(#px240); }
[hidden] { display: none !important; }

/* ---------- additions: real-data panels ---------- */
.hero__fallback { display: none; position: absolute; left: 36px; top: 96px; margin: 0; font: clamp(64px, 14vw, 180px)/1 var(--pix); color: var(--peach); }
.no-js .hero__fallback { display: block; }
.pin--rec i { background: var(--ice); }
.pin--rec span { border-color: var(--ice); }
.pin--bad { display: none; }
.amap.is-lie .pin--bad { display: flex; }
.amap.is-lie .amap__verdict { background: var(--coral); }
.amap__credit { position: absolute; right: 12px; bottom: 44px; font: 11px/1 var(--pix); letter-spacing: .06em; color: var(--ice); background: var(--ink); padding: 4px 6px; }
.trow em.tag { display: inline; margin: 0 0 0 6px; font-size: 11px; letter-spacing: .08em; color: var(--ink); background: var(--ice); padding: 1px 5px; }
.trow em, .tline em { display: block; margin-top: 4px; font: normal 11px/1.4 var(--pix); letter-spacing: .06em; color: var(--ice); }
.g-trace { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); }
.g-ev { grid-template-columns: 28px minmax(0, 1fr) 76px; font-family: var(--f-body); font-size: var(--z-s); }
.g-ev > :first-child, .g-ev > :last-child { font-family: var(--pix); font-size: 13px; }
.g-acl { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.g-dig { grid-template-columns: minmax(0, 1fr) auto 64px; }
.ps .chips > .chips__more { background: none; color: var(--ice); padding: 7px 3px; }
.dither--up { }
.sb__row > .c-m { flex: 0 0 72px; opacity: .75; }
.sb__row > .c-r { flex: 0 0 150px; opacity: .75; }
.sb__row[aria-pressed='true'] > * { opacity: 1; }
.heat { grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
.heat > i { height: 28px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: var(--ink); }
.heat > i.h-d { color: var(--cream); }
.legend i { font-size: 0; }

.room { position: relative; background: #141218; border: 2px solid var(--night); border-top: 0; display: flex; justify-content: center; align-items: center; padding: 24px 12px 120px; overflow: hidden; }
.room img { width: min(480px, 100%); height: auto; image-rendering: pixelated; }
.dlg {
  position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; background: var(--ink); border: 2px solid var(--cream);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font: 13px/1.45 var(--pix); color: var(--cream);
}
.dlg__who { font-size: 11px; letter-spacing: .08em; color: var(--ice); }
.dlg__line { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; min-height: 1.45em; }
.dlg__line b { font-weight: 400; color: var(--peach); }
.dlg__reply b { color: var(--ice); }
.dlg__you::after { content: ''; display: inline-block; width: .6em; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--peach); opacity: 0; }
.dlg.is-typing .dlg__you::after { opacity: 1; }

.card__art .strip { display: block; width: 160px; height: 90px; background-size: 640px 90px; background-repeat: no-repeat; image-rendering: pixelated; animation: strip 1.2s steps(4) infinite; }
@keyframes strip { to { background-position: -640px 0; } }

.slice__shot { position: relative; }
.slice__shot img { position: absolute; inset: 0; }
.slice__shot .alt { opacity: 0; transition: opacity .2s steps(3); }
.slice__shot:hover .alt { opacity: 1; }
.no-js canvas, .no-js .dio, .no-js .vox-art { display: none; }

@media (prefers-reduced-motion: reduce) {
  .card__art .strip { animation: none; }
  .slice__shot .alt { transition: none; }
}

@media (max-width: 719px) {
  :root { --z-hero: 17px; }
  .links { font-size: 14px; }
  .sb__row > .c-r, .sb__row--head > .c-r { display: none; }
  .amap { height: 400px; }
  .amap__credit { display: none; }
  .chat__tabs span:not(.on):not(.role) { display: none; }
  .tline { grid-template-columns: 30px 32px minmax(0, 1fr); }
  .tline .mark { grid-column: 3; justify-self: start; }
  .room { padding-bottom: 150px; }
}

/* ============================== multi-page ============================== */
/* calm register: home and case studies read in a grotesk; headings, labels and buttons stay pixel */
body.calm { --f-lead: var(--sans); --f-body: var(--sans); --z-hero: 20px; --z-xl: clamp(22px, 2.3vw, 30px); --z-l: 22px; --z-b: 17px; --z-s: 15px; }
.calm .lead, .calm .lead-xl, .calm .body, .calm .small { letter-spacing: -.005em; }
[id] { scroll-margin-top: 112px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.topbar { position: sticky; top: 0; z-index: 30; background: var(--ink); border-bottom: 2px solid var(--night); padding: 0 var(--gut); }
.topbar__in { display: flex; align-items: center; gap: 8px 20px; min-height: 58px; }
.topbar__logo { display: flex; align-items: baseline; gap: 8px; color: var(--cream); white-space: nowrap; }
.topbar__logo b { font: 400 24px/1 var(--pix); letter-spacing: .04em; }
.topbar__logo span { font: 11px/1 var(--pix); letter-spacing: .08em; color: var(--ice); }
.topbar__logo:hover b { color: var(--peach); }
.topbar__nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; font: 15px/1 var(--pix); }
.topbar__nav a { padding: 11px 12px; color: var(--cream); letter-spacing: .02em; }
.topbar__nav a:hover, .topbar__nav a[aria-current='page'] { background: var(--peach); color: var(--ink); }
.topbar__ctas { display: flex; gap: 4px; }
.topbar__cta { display: flex; align-items: center; gap: 8px; font: 13px/1 var(--pix); letter-spacing: .08em; padding: 11px 12px; background: var(--peach); color: var(--ink); white-space: nowrap; }
.topbar__cta:hover { background: var(--cream); color: var(--ink); }
.topbar__cta--ghost { background: var(--night); color: var(--cream); }
.topbar__cta--ghost:hover { background: var(--peach); color: var(--ink); }
.ico { display: block; flex: 0 0 auto; }
.toc-bar { position: sticky; top: 60px; z-index: 29; background: var(--ink); border-bottom: 2px solid var(--night); padding: 0 var(--gut); }
.toc-bar__in { display: flex; gap: 2px 4px; overflow-x: auto; scrollbar-width: none; font: 11px/1 var(--pix); letter-spacing: .08em; }
.toc-bar__in::-webkit-scrollbar { display: none; }
.toc-bar a { flex: 0 0 auto; padding: 11px 10px; color: var(--ice); white-space: nowrap; }
.toc-bar a:first-child { margin-left: -10px; }
.toc-bar a:hover { color: var(--cream); }
.toc-bar a[aria-current='true'] { color: var(--ink); background: var(--ice); }

/* home hero */
.hero--home { height: calc(100vh - 96px); height: calc(100svh - 96px); min-height: 600px; }
.hero__title { margin: 0; font: 400 clamp(30px, 3.8vw, 52px)/1.05 var(--pix); letter-spacing: .01em; color: var(--cream); }
.hero__title small { display: block; margin-top: 12px; font-size: 13px; line-height: 1.4; letter-spacing: .08em; color: var(--peach); }
.hero--home .hero__lead { max-width: 680px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 4px; pointer-events: auto; }

/* home sections */
.home-sec { padding: 96px var(--gut); }
.home-sec + .home-sec { padding-top: 24px; }
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--night); }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--night); }
.facts dt { font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice); }
.facts dd { margin: 0; font-family: var(--f-body); font-size: var(--z-s); line-height: 1.5; color: var(--cream); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 2px; background: var(--night); border: 2px solid var(--night); margin-top: 36px; }
.svc { background: var(--ink); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc__head { display: flex; align-items: center; gap: 14px; }
.svc__head b {
  flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--peach); color: var(--ink);
  font: 400 16px/1 var(--pix); box-shadow: inset -4px -4px 0 var(--coral);
}
.svc h3 { margin: 0; font: 400 20px/1.15 var(--pix); color: var(--cream); }
.svc__proof { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice); }
.svc__proof a { color: var(--peach); }
.svc__proof a:hover { color: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; margin-top: 36px; }
.wcard { display: flex; flex-direction: column; border: 2px solid var(--night); min-width: 0; }
.wcard__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); border-bottom: 2px solid var(--night); }
.wcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.wcard__body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.wcard h3 { margin: 0; font: 400 26px/1 var(--pix); color: var(--cream); }
.wcard h3 a { color: inherit; }
.wcard h3 a:hover { color: var(--peach); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; font: 11px/1 var(--pix); letter-spacing: .08em; }
.tags span { background: var(--night); color: var(--cream); padding: 6px 8px; }
.wcard .btn-row { margin-top: auto; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2px; background: var(--night); border: 2px solid var(--night); margin-top: 36px; }
.proj { background: var(--ink); display: flex; flex-direction: column; color: var(--cream); min-width: 0; }
.proj:hover { color: var(--cream); background: #16132b; }
.proj__shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.proj__shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.proj__shot img.smooth { image-rendering: auto; }
.proj__body { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.proj__body b { font: 400 20px/1.1 var(--pix); }
.proj:hover .proj__body b { color: var(--peach); }
.note { margin-top: 18px; max-width: 820px; font-family: var(--f-body); font-size: var(--z-s); line-height: 1.55; color: var(--ice); }
.note code, .case-sec code { font-family: var(--mono); font-size: .92em; color: var(--cream); }

/* case studies */
.case-head { padding: 64px var(--gut) 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 11px/1.6 var(--pix); letter-spacing: .08em; color: var(--ice); }
.crumbs a { color: var(--ice); }
.crumbs a:hover { color: var(--peach); }
.case-head h1 { margin: 18px 0 0; font: 400 clamp(44px, 5.6vw, 84px)/1 var(--pix); letter-spacing: .01em; color: var(--cream); overflow-wrap: anywhere; }
.case-head .lead-xl { margin-top: 18px; max-width: 900px; }
.case-head .tags, .case-head .btn-row { margin-top: 24px; }
.case-visual { padding: 0 var(--gut); }
.case-body { padding: 56px var(--gut) 96px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 56px; align-items: start; }
.case-text { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.case-sec { display: flex; flex-direction: column; gap: 14px; }
.case-sec h2 { margin: 0; display: flex; align-items: center; gap: 12px; font: 400 13px/1 var(--pix); letter-spacing: .1em; color: var(--peach); }
.case-sec h2::before { content: ''; width: 10px; height: 10px; background: var(--coral); }
.case-sec p { font-family: var(--f-body); font-size: var(--z-b); line-height: 1.6; color: var(--ice); text-wrap: pretty; }
.case-sec p strong { color: var(--cream); font-weight: 500; }
.case-list { display: flex; flex-direction: column; gap: 10px; }
.case-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-family: var(--f-body); font-size: var(--z-b); line-height: 1.55; color: var(--ice); }
.case-list li::before { content: '►'; font: 13px/1.9 var(--pix); color: var(--peach); }
.case-list li strong { color: var(--cream); font-weight: 500; }
.case-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 56px; }
.gallery figure:only-child { max-width: 900px; }
.case-side .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.gallery figure { display: flex; flex-direction: column; border: 2px solid var(--night); min-width: 0; }
.gallery img { width: 100%; height: auto; border-bottom: 2px solid var(--night); }
.gallery figcaption { padding: 10px 12px; font-family: var(--f-body); font-size: var(--z-s); line-height: 1.5; color: var(--ice); }
.run { margin-top: 56px; }
.case-next { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 2px solid var(--night); font: 13px/1.4 var(--pix); letter-spacing: .08em; }


.game { padding-top: 72px; }
.game + .game { margin-top: 72px; border-top: 2px solid var(--night); }

@media (max-width: 959px) {
  .case-grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .topbar__in { min-height: 52px; gap: 6px 8px; }
  .topbar__logo span, .topbar__cta span { display: none; }
  .topbar__cta { padding: 0 9px; min-height: 44px; }
  .toc-bar { top: 54px; }
  .topbar__nav { font-size: 13px; gap: 0; }
  .topbar__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 5px; }
  .hero--home { height: auto; min-height: calc(100svh - 90px); }
  .home-sec { padding: 64px var(--gut); }
  .facts > div { grid-template-columns: 92px minmax(0, 1fr); }
  .case-head { padding-top: 40px; }
  .btn, .figcap .btn-row button { min-height: 44px; }
}
.case-side figure img, .ps__live img { width: 100%; height: auto; }
.ps__live { margin-top: 36px; }
.tool--deny > span:first-child { flex: 0 0 auto; white-space: nowrap; align-self: flex-start; background: var(--coral); color: var(--ink); padding: 1px 5px; font-size: 11px; letter-spacing: .08em; }
.marks { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 719px) { .marks { flex-direction: row; flex-wrap: wrap; align-items: flex-start; grid-column: 3; } }
.dio__clock { background: var(--ink); color: var(--ice); padding: 7px 9px; }
.dio__clock b { font-weight: 400; color: var(--cream); }
@media (max-width: 380px) {
  .topbar__logo b { font-size: 20px; }
  .topbar__nav { font-size: 12px; }
}
@media (max-width: 340px) {
  .topbar__logo { display: none; }
  .topbar__nav { margin-left: 0; }
  .links { font-size: 12px; }
}
