/* Setwise · direction « Gravure » (see DA.md). Black ink on warm paper, engravings as
   plates with crop marks, and an ink plate for the trading desk. No colour but the
   ink; green and red only mark the side of an order. Hairlines, no drop shadows. */

:root {
  --paper: #f0e7d8;
  --card: #f6f0e5;
  --rule: #d5c9b3;
  --ink: #1a1714;
  --ink2: #3b352c;
  --muted: #6c6353;
  --faint: #978d7b;
  --buy: #2f6b47;           /* order side only */
  --sell: #a3402c;
  /* the ink plate (trading desk) */
  --night: #17140f;
  --night2: #201c16;
  --nrule: #363128;
  --ntext: #f0e7d8;
  --nmuted: #a2988a;
  --nbuy: #7fb894;
  --nsell: #e38c76;
  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --col: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink2);
  font: 400 16px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--mono); }
.dim { color: var(--faint); }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons: ink pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1 var(--display);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: rgba(26, 23, 20, 0.06); }
.btn.lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn.xs { height: 30px; padding: 0 14px; font-size: 12.5px; }
.btn.full { width: 100%; height: 56px; font-size: 16.5px; }
.btn:disabled { cursor: not-allowed; transform: none; background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--rule); }
.link { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link:hover { border-bottom-width: 2px; padding-bottom: 1px; }
.btn:focus-visible, .tab:focus-visible, .presets button:focus-visible, .nav a:focus-visible, summary:focus-visible, .link:focus-visible, .addr button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- top bar ---------- */

.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s; }
.top.stuck { background: var(--paper); border-bottom-color: var(--rule); }
.top-in { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 20px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
/* the wordmark is the logo; its box keeps the 133.4 × 31.4 ratio of scripts/make-logo.py */
.wm { display: block; width: 110px; height: 26px; color: var(--ink); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: 15px; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.wallet { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#wallet-info { color: var(--muted); font-size: 12.5px; }
#wallet-info:empty { display: none; }

/* ---------- labels ---------- */

.kicker, .label { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font: 400 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- hero: title left, case right, the plate below ---------- */

.hero { padding-top: 64px; }
.lost { margin-top: 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: end; }
h1 { margin: 0; color: var(--ink); font: 600 clamp(54px, 8.4vw, 132px)/0.9 var(--display); letter-spacing: -0.05em; }
h1 span { display: block; text-wrap: balance; }
.hero-side { padding-bottom: 10px; }
/* the chain and the venue, as their own marks */
.built { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.built-k { color: var(--faint); font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.built a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 21px/1 var(--display); letter-spacing: -0.02em; transition: opacity 0.15s; }
.built a:hover { opacity: 0.65; }
.lg-sol { width: 25px; height: 20px; }
.lg-met { width: 28px; height: 28px; }
.lead { margin: 20px 0 0; color: var(--muted); font-size: 18.5px; line-height: 1.55; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* plates: engravings framed by printer's crop marks */
.plate-fig { margin: 0; }
.crop {
  --m: var(--ink);
  --k: 16px;
  position: relative;
  padding: 18px;
  background:
    linear-gradient(var(--m), var(--m)) left top / var(--k) 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left top / 1px var(--k) no-repeat,
    linear-gradient(var(--m), var(--m)) right top / var(--k) 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right top / 1px var(--k) no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / var(--k) 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left bottom / 1px var(--k) no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / var(--k) 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right bottom / 1px var(--k) no-repeat;
}
.crop.sm { --k: 10px; padding: 10px; }
.plate-fig figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 10px; color: var(--muted); font-size: 14px; }
.plate-fig figcaption .mono { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }

.hero-art { margin-top: 48px; }
.hero-art .crop { overflow: hidden; }
.hero-media { width: 100%; aspect-ratio: 2400 / 1029; object-fit: cover; }
#hero-video { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }

/* live strip: printed under the plate */
.strip { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; margin-top: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.strip .cell { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 20px 24px 22px 0; }
.strip .cell + .cell { padding-left: 24px; border-left: 1px solid var(--rule); }
.strip small { color: var(--faint); font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.strip b { color: var(--ink); font: 500 26px/1.1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on { display: inline-flex; align-items: center; gap: 12px; }
.strip .on { flex-direction: row; justify-content: flex-start; color: var(--ink); font: 500 21px/1 var(--display); }
.on i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--buy); animation: pulse 2s ease-in-out infinite; }
.on[data-state="soon"] i { background: var(--faint); animation: none; }
.on[data-state="done"] i { background: var(--ink); animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- the rules, scrolling on an ink band ---------- */

.marquee { margin-top: 96px; overflow: hidden; background: var(--ink); color: var(--paper); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; padding: 22px 0; animation: scroll 46s linear infinite; }
.marquee span { font: 500 clamp(24px, 2.6vw, 34px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.marquee .mark { width: 26px; height: 26px; color: var(--paper); opacity: 0.7; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.sec { position: relative; padding: 128px 0; }
.sec-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.sec-head.left { margin: 0; text-align: left; }
h2 { margin: 20px 0 0; color: var(--ink); font: 300 clamp(38px, 5vw, 66px)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.sec-head p { margin: 22px auto 0; max-width: 600px; color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* 1 · plates, alternating */
.plates { display: flex; flex-direction: column; gap: 104px; }
.plate { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.plate.flip .plate-fig { order: 2; }
.plate-copy { position: relative; }
.plate-n { display: block; margin-bottom: 22px; color: var(--ink); font: 200 clamp(84px, 9vw, 136px)/0.8 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.plate h3 { margin: 16px 0 0; color: var(--ink); font: 500 clamp(30px, 3.2vw, 42px)/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.plate-copy > p { margin: 18px 0 0; max-width: 460px; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.plate-copy .note { margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--rule); color: var(--ink2); font-size: 12.5px; letter-spacing: 0.04em; }

/* 2 · the ink field */
.ink-field { background: var(--ink); color: var(--paper); }
.ink-field h2, .ink-field .kicker { color: var(--paper); }
.ink-field .sec-head p { color: var(--nmuted); }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.chart { margin: 0; padding: 30px 30px 22px; border-radius: 24px; background: var(--paper); }
.chart figcaption { display: flex; flex-direction: column; gap: 4px; }
.chart figcaption b { color: var(--ink); font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.chart figcaption span { color: var(--muted); font-size: 15px; }
.chart svg { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.chart .axis { stroke: var(--ink); stroke-width: 1.5; }
.chart .bar { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.04); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chart .bar.bot { fill: var(--ink); }
.chart .bar.you { fill: url(#hatch-dense); }
.chart .price-line { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset 1.2s ease 0.6s; }
.chart .lbl { fill: var(--ink); font: 600 14px var(--display); text-anchor: middle; }
.chart .lbl.end { text-anchor: end; }
.chart .cap { fill: var(--faint); font: 400 12px var(--mono); }
.chart .cap.end { text-anchor: end; }
.chart.in .bar { transform: none; }
.chart.in .price-line { stroke-dashoffset: 0; }
.chart .bar:nth-child(2) { transition-delay: 0.08s; }
.chart .bar:nth-child(3) { transition-delay: 0.16s; }
.chart .bar:nth-child(4) { transition-delay: 0.24s; }
.chart .bar:nth-child(5) { transition-delay: 0.32s; }
.chart .bar:nth-child(6) { transition-delay: 0.4s; }

/* 3 · steps with their vignettes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps .crop img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.step-t { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink); }
.steps .n { color: var(--ink); font: 500 14px/1 var(--mono); }
.steps b { color: var(--ink); font: 500 24px/1.15 var(--display); letter-spacing: -0.02em; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* 4 · graduation */
.grad { padding-top: 0; }
.grad-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.grad-copy h2 { font-size: clamp(36px, 4.2vw, 56px); }
.grad-copy > p { margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 0; border-top: 1px solid var(--ink); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--rule); }
.facts div:nth-child(even) { padding-left: 20px; }
.facts dt { color: var(--faint); font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.facts dd { margin: 12px 0 0; color: var(--ink); font: 500 30px/1 var(--mono); letter-spacing: -0.04em; }

/* 5 · faq */
.faq { padding-top: 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.qa details { border-bottom: 1px solid var(--rule); }
.qa details:first-child { border-top: 1px solid var(--ink); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; color: var(--ink); font: 400 21px/1.3 var(--display); letter-spacing: -0.01em; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font: 300 22px/1 var(--display); transition: transform 0.25s, background 0.25s, color 0.25s; }
.qa details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.qa p { margin: 0; padding: 0 56px 26px 0; color: var(--muted); font-size: 16.5px; line-height: 1.65; }

/* ---------- the wire to the horizon, edge to edge ---------- */

.band { position: relative; overflow: hidden; border-top: 1px solid var(--rule); }
/* full width, so the plate never shows its edges; the wire and the poles stay in frame */
.band-art { width: 100%; height: clamp(440px, 42.9vw, 760px); object-fit: cover; object-position: 72% 100%; }
.band-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.band h2 { max-width: 520px; margin: 0 0 34px; font-size: clamp(36px, 4.8vw, 68px); }

/* ---------- footer: an ink plate, signed with the full-width wordmark ---------- */

.foot { overflow: hidden; background: var(--ink); color: var(--nmuted); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.55fr) minmax(0, 1.2fr); gap: 56px; padding-top: 80px; padding-bottom: 64px; }
.foot .label, .foot .built-k { color: var(--nmuted); }
.foot-about p { margin: 22px 0 0; max-width: 380px; color: var(--ntext); font: 400 20px/1.45 var(--display); letter-spacing: -0.012em; text-wrap: pretty; }
.foot .built { margin-top: 32px; gap: 10px 22px; }
.foot .built a { color: var(--ntext); font-size: 17px; }
.foot .lg-sol { width: 21px; height: 17px; }
.foot .lg-met { width: 23px; height: 23px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-col .label { margin-bottom: 8px; }
.foot-col > a { color: var(--ntext); font-size: 16px; transition: opacity 0.15s; }
.foot-col > a:hover { opacity: 0.6; }
.foot .addr { align-self: stretch; margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--nrule); font: 400 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
/* the wordmark, cut like the logo, set into the bottom edge of the page */
.foot-mark { display: block; width: calc(100% - 48px); height: auto; aspect-ratio: 133.36 / 31.41; margin: 28px auto 0; color: var(--paper); transform: translateY(9%); }
.js .foot-mark.reveal { transform: translateY(24%); }
.js .foot-mark.reveal.in { transform: translateY(9%); }

/* on-chain addresses */
.addr { margin: 14px 0 0; padding: 0; list-style: none; }
.addr li { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--rule); }
.addr li:first-child { border-top: 1px solid var(--rule); }
.addr span { flex: 1; color: var(--muted); font-size: 14px; }
.addr code { color: var(--ink); font: 400 14px var(--mono); }
.addr button, .addr a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink2); font: 400 12px var(--mono); cursor: pointer; }
.addr a { padding: 0 8px; }
.addr button:hover, .addr a:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.addr button.done { box-shadow: inset 0 0 0 1px var(--buy); color: var(--buy); }
.addr svg { width: 14px; height: 14px; }
.addr em { font-style: normal; }

/* ---------- the app page: the ink plate ---------- */

.app-page { background: var(--night); }
.app-page .top { background: var(--paper); border-bottom-color: var(--rule); }
.trade { padding: 56px 0 72px; background: var(--night); color: var(--ntext); }
.trade .kicker, .trade .label { color: var(--nmuted); }
.trade .btn { background: var(--ntext); color: var(--night); }
.trade .btn:hover { background: #fff; }
.trade .btn.ghost { background: transparent; color: var(--ntext); box-shadow: inset 0 0 0 1px var(--nmuted); }
.trade .btn.ghost:hover { background: rgba(240, 231, 216, 0.08); }
.trade .btn:disabled { background: transparent; color: var(--nmuted); box-shadow: inset 0 0 0 1px var(--nrule); }

.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.app-title { margin-top: 16px; color: var(--ntext); font-size: clamp(40px, 5.4vw, 72px); font-weight: 300; letter-spacing: -0.04em; }
.app-live { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--nmuted); font-size: 14px; }
.app-live > span { display: inline-flex; align-items: baseline; gap: 8px; }
.app-live .on { align-items: center; color: var(--ntext); font-weight: 500; }
.app-live small { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.app-live b { color: var(--ntext); font: 500 15px var(--mono); font-variant-numeric: tabular-nums; }

.panel { overflow: hidden; border-radius: 24px; background: var(--night2); box-shadow: inset 0 0 0 1px var(--nrule); }
.p-head { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--nrule); }
.p-head .cell { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 22px 24px; }
.p-head .cell + .cell { border-left: 1px solid var(--nrule); }
.p-head small { color: var(--nmuted); font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.p-head .num { color: var(--ntext); font: 500 24px/1.1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-head .token { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.av { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ntext); }
.av .mark { width: 30px; height: 30px; color: var(--night); }
.token b { display: block; color: var(--ntext); font: 500 19px/1.2 var(--display); }
#token-symbol { color: var(--nmuted); font: 400 13px var(--mono); }
.token small { text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: 13px; }
.track { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: var(--nrule); }
#progress { display: block; width: 0; height: 100%; background: var(--ntext); transition: width 0.6s ease; }

.p-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.set { display: flex; flex-direction: column; min-width: 0; padding: 24px; }
.set-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.set-head b { color: var(--ntext); font: 500 21px/1.2 var(--display); letter-spacing: -0.01em; }
#batch-line { color: var(--nmuted); font-size: 12.5px; text-align: right; }

/* the set: orders perch on one wire, the price */
.dish { position: relative; flex: 1; display: flex; min-height: 260px; margin-top: 16px; overflow: hidden; border-radius: 18px; background: var(--night); box-shadow: inset 0 0 0 1px var(--nrule); }
.wire { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--nrule); transition: background 0.4s, height 0.4s; }
.set.active .wire { height: 2px; background: var(--ntext); }
.entries { position: relative; z-index: 1; flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; margin: 0; padding: 26px; list-style: none; }
.entries li { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ntext); color: var(--night); font: 500 13.5px/1 var(--mono); white-space: nowrap; animation: land 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.entries li i { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); }
.entries li.sell i { background: var(--sell); }
.entries li:nth-child(2) { animation-delay: 50ms; }
.entries li:nth-child(3) { animation-delay: 100ms; }
.entries li:nth-child(4) { animation-delay: 150ms; }
.entries li:nth-child(5) { animation-delay: 200ms; }
.entries li:nth-child(6) { animation-delay: 250ms; }
.entries li.empty { background: var(--night); box-shadow: inset 0 0 0 1px var(--nrule); color: var(--nmuted); font-family: var(--display); font-weight: 400; animation: none; }
@keyframes land {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.result { display: flex; align-items: center; gap: 20px; margin-top: 14px; padding: 18px 22px; border-radius: 18px; background: var(--night); box-shadow: inset 0 0 0 1px var(--nrule); transition: background 0.4s; }
.result small { display: block; color: var(--nmuted); font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.countdown { display: block; margin-top: 6px; color: var(--ntext); font: 500 40px/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.result p { margin: 0 0 0 auto; max-width: 240px; color: var(--nmuted); font-size: 14px; text-align: right; }
.result p b { color: var(--ntext); font: 500 14px var(--mono); }
.set.active .result { background: var(--ntext); box-shadow: none; }
.set.active .result small, .set.active .result p { color: var(--muted); }
.set.active .result p b, .set.active .countdown { color: var(--night); }

/* ticket */
.ticket { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border-left: 1px solid var(--nrule); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--night); box-shadow: inset 0 0 0 1px var(--nrule); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--nmuted); font: 500 15px var(--display); cursor: pointer; transition: color 0.15s, background 0.15s; }
.tab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.tab:hover { color: var(--ntext); }
.tab.active { background: var(--ntext); color: var(--night); }
.tab.active[data-side="buy"]::before { background: var(--buy); opacity: 1; }
.tab.active[data-side="sell"]::before { background: var(--sell); opacity: 1; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field > span { color: var(--nmuted); font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.input { display: flex; align-items: center; gap: 8px; height: 62px; padding: 0 12px 0 22px; border-radius: 999px; background: var(--night); box-shadow: inset 0 0 0 1px var(--nrule); transition: box-shadow 0.15s; }
.input:focus-within { box-shadow: inset 0 0 0 1px var(--ntext); }
.input input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ntext); font: 500 24px var(--mono); letter-spacing: -0.03em; }
.input input::placeholder { color: #5d564a; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.presets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.presets button { height: 36px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--nrule); color: var(--ntext); font: 400 13px var(--mono); cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.presets button:hover { box-shadow: inset 0 0 0 1px var(--nmuted); background: rgba(240, 231, 216, 0.05); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; padding: 14px 0; border-top: 1px solid var(--nrule); border-bottom: 1px solid var(--nrule); color: var(--nmuted); font-size: 14px; }
.kv b { color: var(--ntext); font: 400 13.5px var(--mono); text-align: right; }
.balances { color: var(--nmuted); font-size: 12.5px; }
.balances:empty { display: none; }
.hint { margin: 0; color: var(--nmuted); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.msg { margin: 0; color: var(--ntext); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.ok { color: var(--nbuy); }
.msg.err { color: var(--nsell); }

/* orders & board */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.block { min-width: 0; overflow: hidden; border-radius: 24px; background: var(--night2); box-shadow: inset 0 0 0 1px var(--nrule); }
.block-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 0 24px; border-bottom: 1px solid var(--nrule); }
.block-h b { color: var(--ntext); font: 500 18px/1 var(--display); }
.block-h .dim { color: var(--nmuted); font-size: 12px; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 24px; color: var(--nmuted); font: 400 13.5px var(--mono); }
.rows li + li { border-top: 1px solid var(--nrule); }
.rows li > span:first-child { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.rows li.empty { justify-content: center; min-height: 112px; font-family: var(--display); }
.side-buy, .side-sell { display: inline-flex; align-items: center; gap: 7px; color: var(--ntext); font: 500 13.5px/1 var(--display); }
.side-buy::before, .side-sell::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nbuy); }
.side-sell::before { background: var(--nsell); }
.rows .amt { color: var(--ntext); }
.board .amt { flex: 1; color: var(--nmuted); }
.board .px { color: var(--ntext); font: 500 14.5px var(--mono); }
.board li:not(.empty):first-child { box-shadow: inset 2px 0 0 var(--ntext); }

/* addresses on the plate */
.app-foot { margin-top: 44px; }
.app-foot .built { margin-bottom: 30px; }
.trade .built a { color: var(--ntext); }
.trade .built-k { color: var(--nmuted); }
.trade .addr li, .foot .addr li { border-color: var(--nrule); }
.trade .addr span, .foot .addr span { color: var(--nmuted); }
.trade .addr code, .foot .addr code { color: var(--ntext); }
.trade .addr button, .trade .addr a, .foot .addr button, .foot .addr a { box-shadow: inset 0 0 0 1px var(--nrule); color: var(--ntext); }
.trade .addr button:hover, .trade .addr a:hover, .foot .addr button:hover, .foot .addr a:hover { box-shadow: inset 0 0 0 1px var(--nmuted); }
.trade .addr button.done, .foot .addr button.done { box-shadow: inset 0 0 0 1px var(--nbuy); color: var(--nbuy); }

/* ---------- reveal on scroll (only when the script runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.steps .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-side { max-width: 620px; }
  .plate, .plate.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .plate.flip .plate-fig { order: 0; }
  .plate-copy > p { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .grad-in, .faq-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .p-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-head .token { grid-column: 1 / -1; }
  .p-head .cell + .cell { border-left: 0; border-top: 1px solid var(--nrule); }
  .p-head .cell:nth-child(3), .p-head .cell:nth-child(5) { border-left: 1px solid var(--nrule); }
  .p-body { grid-template-columns: minmax(0, 1fr); }
  .ticket { border-left: 0; border-top: 1px solid var(--nrule); }
  .app-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip .cell:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .compare, .duo { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 32px; padding-top: 64px; }
  .foot-about { grid-column: 1 / -1; }
  .sec { padding: 96px 0; }
  .marquee { margin-top: 72px; }
  .plates { gap: 80px; }
  .band-in { position: relative; inset: auto; padding-top: 8px; padding-bottom: 64px; }
}

@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .top-in { gap: 12px; height: 64px; }
  .hero { padding-top: 36px; }
  h1 { font-size: clamp(46px, 13vw, 64px); }
  #wallet-info { display: none; }
  .lead { font-size: 17px; }
  .btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
  .crop { --k: 12px; padding: 12px; }
  #hero-video { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .strip .cell { padding-right: 12px; }
  .strip .cell + .cell { padding-left: 14px; }
  .strip b { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  .strip .on { font-size: 16px; }
  .marquee-track { gap: 24px; padding: 16px 0; }
  .marquee .mark { width: 20px; height: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .chart { padding: 22px 18px 16px; }
  .qa summary { font-size: 18px; }
  .qa p { padding-right: 0; }
  .facts dd { font-size: 24px; }
  .p-head .cell { padding: 16px; }
  .p-head .num { font-size: 19px; }
  .set, .ticket { padding: 16px; }
  .dish { min-height: 200px; }
  .entries { gap: 8px; padding: 18px 12px; }
  .entries li { height: 32px; padding: 0 13px; font-size: 12.5px; }
  .result { flex-wrap: wrap; }
  .result p { margin: 0; max-width: none; text-align: left; }
  .countdown { font-size: 32px; }
  .addr li { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-about p { font-size: 18px; }
  .foot-mark { width: calc(100% - 32px); }
  .addr span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .foot-mark.reveal { transform: translateY(9%); }
  .chart .bar { transform: none; }
  .chart .price-line { stroke-dashoffset: 0; }
}
