:root {
  --bg: #0a0b0a;
  --fg: #d7ddd8;
  --mute: #8b948d;
  --dim: #4f5751;
  --line: #1b201c;
  --acc: #7cffb2;
  --neg: #ff6b6b;
  --grid: #111512;
  --grid-hi: #22302a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 24px;
  --head: 48px;  /* 76px once the ticker row is showing */

  /* blueprint paper: 32px grid with a + mark every 4 cells */
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M64.5 59v11M59 64.5h11' stroke='%23252d27'/%3E%3C/svg%3E");
  --plus-hi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M64.5 57v15M57 64.5h15' stroke='%237cffb2' stroke-opacity='.55'/%3E%3C/svg%3E");
}
@media (max-width: 560px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  background-image:
    var(--plus),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 128px 128px, 32px 32px, 32px 32px;
  color: var(--fg);
  font: 400 14px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main, footer { position: relative; z-index: 1; }
::selection { background: var(--acc); color: var(--bg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px dashed var(--acc); outline-offset: 3px; }

.wrap { max-width: 960px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ps { color: var(--acc); }
.dim { color: var(--dim); }

.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* cursor spotlight: a brighter copy of the grid, masked to a circle around the pointer */
.spot {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    var(--plus-hi),
    linear-gradient(var(--grid-hi) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-hi) 1px, transparent 1px);
  background-size: 128px 128px, 32px 32px, 32px 32px;
  background-position: 0 var(--sy, 0px);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  opacity: 0; transition: opacity .4s;
}
.spot.on { opacity: 1; }
@media (hover: none) { .spot { display: none; } }

/* corner brackets */
.br {
  --c: var(--dim);
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 12px,
    linear-gradient(var(--c), var(--c)) top right / 12px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 12px,
    linear-gradient(var(--c), var(--c)) bottom left / 12px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 12px,
    linear-gradient(var(--c), var(--c)) bottom right / 12px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 12px,
    rgba(10, 11, 10, .78);
  background-repeat: no-repeat;
}
.br:hover, .br:focus-within { --c: var(--acc); }

/* ── header ──────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: rgba(10, 11, 10, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bar {
  height: 48px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.mark { width: 20px; height: 20px; flex: none; fill: var(--acc); margin-bottom: 2px; }
/* the bars settle in one after another, like the hero's pile; hovering replays it */
.mark rect { transform-box: fill-box; transform-origin: 50% 100%; animation: settle .7s cubic-bezier(.2, .8, .2, 1) both; }
.mark rect:nth-child(1) { animation-delay: .05s; }
.mark rect:nth-child(2) { animation-delay: .15s; }
.mark rect:nth-child(3) { animation-delay: .25s; }
.mark rect:nth-child(4) { animation-delay: .35s; }
.mark rect:nth-child(5) { animation-delay: .45s; }
.logo:hover .mark rect { animation-name: settle-again; }
@keyframes settle { from { transform: scaleY(0); } }
@keyframes settle-again { from { transform: scaleY(0); } }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--mute); transition: color .2s; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--fg); }
.bar nav a[aria-current] kbd { color: var(--acc); border-color: rgba(124, 255, 178, .3); }
kbd {
  font: inherit; font-size: 10px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 0 4px; margin-right: 6px;
}
.clock { display: flex; align-items: center; gap: 8px; color: var(--mute); font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.ticker {
  height: 28px; overflow: hidden;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 11px; font-variant-numeric: tabular-nums;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.track { display: flex; width: max-content; white-space: nowrap; animation: marquee 160s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.tk { margin-right: 40px; }
.tk b { font-weight: 400; color: var(--dim); margin-right: 8px; }
.tk i { font-style: normal; margin-left: 8px; }
.tk .up { color: var(--acc); }
.tk .dn { color: var(--neg); }
@keyframes marquee { to { transform: translateX(-25%); } }  /* track holds 4 copies */

/* ── hero ────────────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding-top: clamp(150px, 28vh, 320px); pointer-events: none; }
h1 {
  font-weight: 300;
  font-size: clamp(48px, 12.5vw, 136px);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 30px -.05em;
  white-space: nowrap;
}
.tag { font-size: clamp(15px, 1.9vw, 19px); }
.sub { margin-top: 6px; color: var(--mute); font-size: 13px; }
.sub span { white-space: nowrap; }

/* ── sections ────────────────────────────── */
.block { padding-top: clamp(88px, 15vh, 150px); scroll-margin-top: var(--head); }
.prose { max-width: 62ch; font-size: 15px; }
.prose p + p { margin-top: 1em; }
.prose em { font-style: normal; color: var(--acc); }
.lead {
  max-width: 26ch; margin-bottom: 28px; text-wrap: balance;
  font-size: clamp(22px, 3vw, 32px); font-weight: 300; line-height: 1.3; letter-spacing: -.02em;
}
.k { font-size: 12px; color: var(--dim); }
.k b { font-weight: 400; color: var(--acc); }

/* the density surface is drawn full-bleed behind the about copy (to its right; below it on phones) */
.about { position: relative; min-height: 820px; display: flex; align-items: center; padding-bottom: 88px; }
.about-text { position: relative; z-index: 1; width: 100%; }
#surface { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }

/* scroll-driven: the panel pins while the section scrolls past */
.process { position: relative; height: 320vh; margin-top: clamp(88px, 15vh, 150px); }
.pin {
  position: sticky; top: var(--head);
  height: calc(100vh - var(--head)); height: calc(100svh - var(--head));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
}
.stages { display: grid; gap: 30px; }
.stage { opacity: .3; transition: opacity .4s; }
.stage.on { opacity: 1; }
.stage h3 { margin: 6px 0 6px; font-size: 18px; font-weight: 500; }
.stage p:last-child { max-width: 44ch; color: var(--mute); font-size: 13px; }
.morph { position: relative; height: min(56vh, 440px); }
.morph canvas { display: block; width: 100%; height: 100%; }
.rail { position: absolute; top: 0; bottom: 0; right: -18px; width: 1px; background: var(--line); }
.rail i { position: absolute; left: -1px; top: 0; width: 3px; height: 32px; background: var(--acc); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillars article { padding: 26px 24px 28px; }
.pillars h3 { margin: 12px 0 10px; font-size: 16px; font-weight: 500; }
.pillars p:last-child { color: var(--mute); font-size: 13px; }

.rules { list-style: none; max-width: 72ch; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 56px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules li > span { color: var(--dim); }
.rules p { margin-top: 4px; color: var(--mute); font-size: 13px; }

.roles { list-style: none; max-width: 80ch; margin-top: 36px; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: 27ch 1fr; gap: 0 2ch; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roles .r::before { content: '→ '; color: var(--acc); }
.roles .d { color: var(--mute); font-size: 13px; }
.note { margin-top: 28px; max-width: 62ch; color: var(--mute); }

.kv div { display: grid; grid-template-columns: 10ch 1fr; padding: 3px 0; font-size: 15px; }
.kv dt { color: var(--dim); }

.kv a, .note a, .term a, .files a, footer a { color: var(--acc); border-bottom: 1px solid rgba(124, 255, 178, .3); transition: border-color .2s; }
.kv a:hover, .note a:hover, .term a:hover, .files a:hover, footer a:hover { border-color: var(--acc); }
.term {
  margin-top: 36px; height: 260px; overflow-y: auto;
  padding: 18px 20px;
  font-size: 13px; cursor: text;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.term p { white-space: pre-wrap; word-break: break-word; }
.prompt { display: flex; gap: 1ch; }
.prompt input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--fg); font: inherit; caret-color: var(--acc);
}

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 140px; padding-bottom: 40px;
  font-size: 11px; color: var(--dim);
}
#uptime { font-variant-numeric: tabular-nums; }

/* ── offices ─────────────────────────────── */
h1.lead { margin-left: 0; white-space: normal; }
.atlas { padding-top: 56px; }
.atlas canvas { display: block; width: 100%; height: clamp(240px, 36vw, 340px); cursor: crosshair; touch-action: pan-y; }

/* rows and the header above them share one grid; the last column is a 24h UTC axis */
.offices, .offices-head {
  --cols: 36px minmax(0, 1fr) 13ch 17ch minmax(0, 1.5fr);
  --areas: "n city when geo day";
}
.offices-head {
  display: grid; grid-template-columns: var(--cols); grid-template-areas: var(--areas); gap: 0 2ch;
  padding-bottom: 8px; color: var(--dim);
}
.offices-head > * { font-size: 11px; }  /* on the children, so the grid's ch units match the rows' */
.offices-head .day { position: relative; height: 1.7em; }
.offices-head .day i { position: absolute; top: 0; font-style: normal; transform: translateX(-50%); }
.offices-head .day i:nth-child(1) { left: 0; transform: none; }
.offices-head .day i:nth-child(2) { left: 25%; }
.offices-head .day i:nth-child(3) { left: 50%; }
.offices-head .day i:nth-child(4) { left: 75%; }
.offices-head .day i:nth-child(5) { right: 0; transform: none; }
.offices { list-style: none; border-top: 1px solid var(--line); }
.offices li {
  display: grid; grid-template-columns: var(--cols); grid-template-areas: var(--areas); gap: 4px 2ch; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.offices .n { grid-area: n; color: var(--dim); }
.offices .city, .offices-head .city { grid-area: city; }
.offices .when, .offices-head .when { grid-area: when; }
.offices .geo, .offices-head .geo { grid-area: geo; }
.offices .day, .offices-head .day { grid-area: day; }
.offices h2 { font-size: 15px; font-weight: 500; line-height: 1.5; transition: color .2s; }
.offices .city p { color: var(--mute); font-size: 12px; }
.offices time { display: block; font-size: 15px; font-variant-numeric: tabular-nums; transition: color .2s; }
.offices .off { display: block; color: var(--dim); font-size: 12px; }
.offices .geo { color: var(--dim); font-size: 12px; }
.offices li.on time { color: var(--acc); }
.offices li:hover, .offices li.hl { background-color: rgba(124, 255, 178, .025); }
.offices li:hover h2, .offices li.hl h2 { color: var(--acc); }

/* each office's working day on the shared UTC axis; the bright tick is now */
.offices .day { position: relative; height: 22px; }
.offices .day::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.offices .day i { position: absolute; top: 6px; bottom: 6px; background: rgba(124, 255, 178, .12); box-shadow: inset 1px 0 rgba(124, 255, 178, .4), inset -1px 0 rgba(124, 255, 178, .4); }
.offices li.on .day i { background: rgba(124, 255, 178, .32); }
.offices .day b { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--acc); box-shadow: 0 0 6px var(--acc); }

/* ── brand ───────────────────────────────── */
.sec { margin: 6px 0 32px; font-size: 18px; font-weight: 500; }
.spec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.spec .kv div { grid-template-columns: 11ch 1fr; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec .kv div:first-child { border-top: 1px solid var(--line); }

/* the mark drawn on its grid; sizes are in grid units */
.construct { padding: 28px 28px 18px; }
.construct svg { display: block; width: 100%; height: auto; }
.construct .fine { stroke: var(--line); stroke-width: .05; }
.construct .major { stroke: #28322b; stroke-width: .07; }
.construct .edge { fill: none; stroke: #3a453d; stroke-width: .08; }
.construct .base { stroke: var(--acc); stroke-opacity: .4; stroke-width: .08; stroke-dasharray: .3 .5; }
.construct .bars { fill: var(--acc); }
.construct text { font-family: var(--mono); text-anchor: middle; }
.construct .hi { fill: var(--fg); font-size: 1.3px; }
.construct .op, .construct .axis { fill: var(--dim); font-size: 1px; }
.construct figcaption { margin-top: 12px; font-size: 11px; color: var(--dim); }

.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.assets article { padding: 16px 16px 22px; }
.assets .tile { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.assets .tile.light { background: var(--fg); }
.assets img { display: block; width: 80px; height: 80px; }
.assets h3 { margin-bottom: 4px; font-size: 15px; font-weight: 500; }
.assets p { color: var(--mute); font-size: 13px; }
.files { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.assets .files { font-size: 12px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; align-items: start; }
.swatch { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.swatch i { display: block; height: 64px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px rgba(215, 221, 216, .12); }
.swatch b { display: block; font-size: 13px; font-weight: 500; }
.swatch .hex { display: block; font-size: 13px; }
.swatch .role { display: block; color: var(--dim); font-size: 12px; }
.swatch:hover .hex, .swatch:focus-visible .hex { color: var(--acc); }
.swatch.copied .hex::after { content: ' · copied'; color: var(--acc); }
.sw-acc i { background: var(--acc); }
.sw-bg i { background: var(--bg); }
.sw-fg i { background: var(--fg); }
.sw-mute i { background: var(--mute); }
.sw-dim i { background: var(--dim); }
.sw-line i { background: var(--line); }
.sw-neg i { background: var(--neg); }

/* the header's logo, scaled up: same mark-to-text ratio, gap and tracking */
.lockup { display: inline-flex; align-items: center; gap: .58em; font-size: clamp(32px, 7vw, 56px); font-weight: 500; letter-spacing: .02em; line-height: 1; }
.lockup .mark { width: 1.67em; height: 1.67em; margin-bottom: .17em; }
.weights { list-style: none; max-width: 80ch; margin-top: 36px; border-top: 1px solid var(--line); }
.weights li { display: grid; grid-template-columns: 13ch 1fr; gap: 4px 2ch; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.weights .w { color: var(--dim); font-size: 12px; }
.weights .s { font-size: clamp(16px, 2.2vw, 22px); letter-spacing: -.01em; }
.weights .w3 { font-weight: 300; }
.weights .w5 { font-weight: 500; }

/* ── venues ──────────────────────────────── */
/* one cell per order book; market tags keep fixed slots so they line up down each column */
.filters { display: none; flex-wrap: wrap; gap: 8px; }
.js .filters { display: flex; }
.filters button {
  font: inherit; font-size: 12px; color: var(--mute); cursor: pointer;
  background: rgba(10, 11, 10, .78); border: 1px solid var(--line); border-radius: 3px;
  padding: 2px 10px; transition: color .2s, border-color .2s;
}
.filters button span { margin-left: 1ch; color: var(--dim); }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--acc); border-color: rgba(124, 255, 178, .3); }
.venues {
  list-style: none; margin-top: 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.venues li {
  display: flex; flex-wrap: wrap; align-content: start; align-items: baseline; justify-content: space-between; gap: 0 1ch;
  padding: 10px 14px 11px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 10, .78);
}
.js .venues > li { transition: opacity .4s calc(var(--i, 0) * 12ms + .2s), box-shadow .2s; }  /* 84 cells: a much shorter stagger */
.venues li:hover { box-shadow: inset 0 0 0 1px rgba(124, 255, 178, .25); }
.venues b { font-weight: 500; transition: color .2s; }
.venues li:hover b { color: var(--acc); }
.venues .rg { color: var(--dim); font-size: 11px; transition: color .2s; }
.venues .mk { flex-basis: 100%; display: grid; grid-template-columns: repeat(5, 4ch); gap: 0 1ch; color: var(--mute); font-size: 11px; }
.venues .mk i { grid-row: 1; font-style: normal; transition: color .2s; }
.mk [data-k="spot"] { grid-column: 1; }
.mk [data-k="perp"] { grid-column: 2; }
.mk [data-k="futr"] { grid-column: 3; }
.mk [data-k="optn"] { grid-column: 4; }
.mk [data-k="pred"] { grid-column: 5; }
.venues[data-f="spot"] [data-k="spot"], .venues[data-f="perp"] [data-k="perp"], .venues[data-f="futr"] [data-k="futr"],
.venues[data-f="optn"] [data-k="optn"], .venues[data-f="pred"] [data-k="pred"] { color: var(--acc); }
.venues li.off b { color: var(--dim); }
.venues li.off .rg, .venues li.off .mk { color: #2a312c; }

/* ── entrance states (only when JS runs) ─── */
.js #word { visibility: hidden; }
.js #word.on { visibility: visible; }
.js .tag, .js .sub { opacity: 0; transform: translateY(6px); transition: opacity .7s, transform .7s; }
.hero.done .tag, .hero.done .sub { opacity: 1; transform: none; }
.hero.done .sub { transition-delay: .15s; }
.js .block { opacity: 0; transform: translateY(14px); transition: opacity .9s, transform .9s; }
.js .block.seen { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transition: opacity .4s calc(var(--i, 0) * 90ms + .2s); }
.js .seen .stagger > * { opacity: 1; }

/* ── small screens ───────────────────────── */
@media (max-width: 860px) {
  .about { display: block; min-height: 0; padding-bottom: 420px; }
  .pin { grid-template-columns: 1fr; align-content: center; gap: 20px; }
  .morph { order: -1; height: 32vh; }
  .stages { gap: 14px; }
  .stage h3 { font-size: 15px; margin: 2px 0; }
  .stage p:last-child { font-size: 12px; }
  .rail { display: none; }
  .offices, .offices-head { --cols: 36px minmax(0, 1fr) 13ch minmax(0, 1.5fr); --areas: "n city when day"; }
  .offices .geo, .offices-head .geo { display: none; }
  .spec { grid-template-columns: 1fr; gap: 32px; }
  .venues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  kbd { display: none; }
  .bar { gap: 12px; }
  /* five links don't fit beside the logo on a phone: the nav scrolls sideways instead */
  .bar nav {
    gap: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none;
    margin-right: -10px; padding: 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; }
  .mark { width: 18px; height: 18px; }
  .logo { gap: 6px; }
  .pillars { grid-template-columns: 1fr; }
  .assets { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .clock { display: none; }
  .roles li { grid-template-columns: 1fr; gap: 4px; }
  .rules li { grid-template-columns: 40px 1fr; }
  .term { padding: 14px; font-size: 12px; }
  .offices, .offices-head { --cols: 28px minmax(0, 1fr) auto; --areas: "n city when" ". day day"; }
  .offices .when, .offices-head .when { text-align: right; }
  .offices-head { row-gap: 4px; }
  .construct { padding: 20px 16px 14px; }
  .weights li { grid-template-columns: 1fr; }
  .venues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venues li { padding: 9px 10px 10px; }
  .venues .mk { font-size: 10px; gap: 0 .5ch; }
  .filters { gap: 6px; }
  .filters button { font-size: 11px; padding: 2px 8px; }
}
@media (max-width: 380px) {
  .bar { font-size: 11px; }
  .bar nav { gap: 10px; }
  /* five fixed slots no longer fit a cell: list just the markets each venue has */
  .venues .mk { display: flex; flex-wrap: wrap; gap: 0 1ch; }
}
@media (pointer: coarse) { .prompt input { font-size: 16px; } }

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

/* ── 404 ─────────────────────────────────── */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.nf h1 { margin-top: 18px; }
.nf .tag a { color: var(--acc); }
.nf .tag a:hover { text-decoration: underline; }
