:root {
  --ground: #06100b;
  --ground-2: #0b1a12;
  --panel: #0e2017;
  --panel-2: #132a1e;
  --ink: #eef3e6;
  --ink-2: #c9d4c4;
  --mute: #8a9d90;
  --mute-2: #5d7265;
  --line: rgba(220, 240, 220, .09);
  --line-2: rgba(220, 240, 220, .16);
  --lime: #d4f450;
  --jade: #2fbf7f;
  --fox: #ec5a34;
  --pine: #0f2a1d;
  --r: 2.6rem;
  --r-s: 1.4rem;
  --sans: "General Sans", system-ui, sans-serif;
  --pad: max(1.6rem, 2.8vw);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 62.5%; background: var(--ground); -webkit-text-size-adjust: 100%; color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.6rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
.mono { font-variant-numeric: tabular-nums; }
.wrap { max-width: 144rem; margin: 0 auto; padding: 0 var(--pad); }
::selection { background: var(--lime); color: var(--ground); }

/* ── nav: one pill, floating ── */
.nav { position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: .4rem; padding: .5rem .5rem .5rem 1rem; background: rgba(9, 22, 15, .82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-radius: 99rem; box-shadow: inset 0 0 0 1px var(--line), 0 1.2rem 3rem -1.2rem rgba(0,0,0,.6); max-width: calc(100vw - 2.4rem); }
.logo { display: inline-flex; align-items: center; gap: .9rem; padding-right: 1.4rem; font: 600 2rem/1 var(--sans); letter-spacing: -0.04em; white-space: nowrap; }
.logo img { width: 3rem; height: 3rem; border-radius: .9rem; }
.links { display: flex; }
.links a { padding: 1rem 1.3rem; border-radius: 99rem; font-size: 1.45rem; color: var(--mute); white-space: nowrap; transition: color .2s; }
.links a:hover, .links a.on { color: var(--ink); }
.nav .cta { margin-left: .6rem; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 4.6rem; padding: 0 2.1rem; border-radius: 99rem; border: 0; background: var(--lime); color: #0a1a0f; font: 600 1.5rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 .8rem 2.4rem -1rem rgba(212, 244, 80, .55); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.btn.small { min-height: 3.6rem; padding: 0 1.5rem; font-size: 1.35rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── paintings: a rounded frame, the picture drifting inside it ── */
.art { position: relative; overflow: hidden; border-radius: var(--r); background: var(--pine); isolation: isolate; }
.art img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--drift, 0px), 0); will-change: transform; }

.hero { padding-top: 8.4rem; }
.hero .art { height: min(74vh, 78rem); }
.hero .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,11,0) 55%, rgba(6,16,11,.55)); pointer-events: none; }
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.2rem 4rem; align-items: end; padding-top: 5.6rem; }
h1 { margin: 0; font: 600 clamp(4.6rem, 8vw, 12.8rem)/.9 var(--sans); letter-spacing: -0.06em; }
h1 .soft { color: var(--mute-2); }
h1 .lit { color: var(--lime); }
.intro .side p { margin: 0 0 2.6rem; font-size: 1.85rem; line-height: 1.5; color: var(--mute); max-width: 50rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

section.block { padding-top: 13rem; }
h2 { margin: 0; font: 600 clamp(4rem, 5.6vw, 8rem)/.92 var(--sans); letter-spacing: -0.055em; }

/* three cards with paintings */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.steps .art { aspect-ratio: 5 / 4; }
.steps h3 { margin: 2.4rem 0 1rem; font: 600 2.8rem/1.05 var(--sans); letter-spacing: -0.04em; }
.steps p { margin: 0; color: var(--mute); font-size: 1.6rem; max-width: 40rem; }

/* the close */
.close .art { height: min(64vh, 64rem); }
.close .row { display: flex; justify-content: space-between; align-items: end; gap: 3rem; flex-wrap: wrap; padding-top: 4rem; }

footer { margin-top: 10rem; }
footer .legal { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.4rem var(--pad) 3.2rem; max-width: 144rem; margin: 0 auto; font-size: 1.3rem; color: var(--mute-2); }

/* ── app ── */
.app { max-width: 132rem; margin: 0 auto; padding: 0 var(--pad) 6rem; }
.app-hero { padding-top: 8.4rem; }
.app-hero .art { height: 20rem; }
.app-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin: 3.6rem 0 3.2rem; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(4.6rem, 6.2vw, 8.4rem); }
.batch { display: inline-flex; align-items: center; gap: .8rem; padding: .8rem 1.6rem; border-radius: 99rem; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.4rem; color: var(--mute); white-space: nowrap; }
.batch i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--mute-2); }
.batch.lit { color: var(--ink); }
.batch.lit i { background: var(--lime); box-shadow: 0 0 0 .4rem rgba(212,244,80,.15); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 .7rem rgba(212,244,80,.05); } }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: start; }
.stack { display: grid; gap: 2rem; }
.panel { background: var(--panel); border-radius: var(--r); padding: 2.8rem; box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { margin: 0 0 .6rem; font: 600 3rem/1 var(--sans); letter-spacing: -0.045em; }
.panel .sub { margin: 0 0 2.2rem; color: var(--mute); font-size: 1.45rem; max-width: 52rem; }
.notice { padding: 1.8rem 2.2rem; border-radius: var(--r-s); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: 1.5rem; margin-bottom: 2rem; }
.notice b { color: var(--ink); font-weight: 500; }
.wallets { display: flex; flex-wrap: wrap; gap: 1rem; }
.pos { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pos li { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.4rem; align-items: center; padding: 1.4rem 1.6rem; background: var(--ground-2); border-radius: var(--r-s); }
.pos li.empty { grid-template-columns: 1fr; color: var(--mute); font-size: 1.45rem; }
.coin { width: 4rem; height: 4rem; border-radius: 1.1rem; background: var(--panel-2); overflow: hidden; display: grid; place-items: center; font: 600 1.3rem/1 var(--sans); color: var(--mute); position: relative; flex: none; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coin.eth { color: var(--lime); font-size: 1.8rem; }
.pos .name b { display: block; font-weight: 560; }
.pos .name small { color: var(--mute); font-size: 1.3rem; }
.pos .amt { text-align: right; }
.pos .amt .mono { display: block; font-size: 1.6rem; }
.pos .amt small { color: var(--mute); font-size: 1.25rem; }
.pos .acts { grid-column: 1 / -1; display: flex; gap: .8rem; justify-content: flex-end; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 1.8rem; color: var(--mute); }
.total .mono { font-size: 4rem; color: var(--ink); letter-spacing: -0.03em; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: .4rem; background: var(--ground-2); border-radius: 99rem; justify-self: start; }
.seg button { border: 0; background: transparent; padding: .9rem 2rem; border-radius: 99rem; color: var(--mute); cursor: pointer; font-size: 1.45rem; }
.seg button.on { background: var(--ink); color: var(--ground); }
.field { display: grid; gap: .7rem; margin-top: 1.8rem; }
.field label { font-size: 1.3rem; color: var(--mute); }
.input { display: flex; align-items: center; gap: 1rem; background: var(--ground-2); border-radius: var(--r-s); padding: 0 1.6rem; min-height: 6rem; box-shadow: inset 0 0 0 1px var(--line); }
.input:focus-within { box-shadow: inset 0 0 0 1.5px var(--lime); }
.input input, .input select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font: 500 2.1rem/1 var(--sans); color: var(--ink); letter-spacing: -0.02em; }
.input select { font-size: 1.6rem; appearance: none; cursor: pointer; }
.input select option { background: var(--panel); }
.input .unit { color: var(--mute); font-size: 1.4rem; white-space: nowrap; }
.input button.max { border: 0; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 99rem; padding: .6rem 1.2rem; cursor: pointer; font-size: 1.2rem; color: var(--ink-2); }
.quote { margin-top: 1.6rem; display: grid; gap: .5rem; font-size: 1.4rem; color: var(--mute); }
.quote .row { display: flex; justify-content: space-between; gap: 1rem; }
.quote .row span:last-child { font-size: 1.35rem; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.go { width: 100%; margin-top: 2.2rem; min-height: 5.4rem; }
.msg { margin-top: 1.2rem; font-size: 1.4rem; color: var(--mute); min-height: 2rem; }
.msg a { color: var(--lime); }
.msg.bad { color: #ff8a6a; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.orders li { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: 1.3rem 1.6rem; background: var(--ground-2); border-radius: var(--r-s); font-size: 1.4rem; }
.orders li .what b { font-weight: 520; }
.orders li .what small { display: block; color: var(--mute); font-size: 1.2rem; }
.orders li.empty { grid-template-columns: 1fr; color: var(--mute); }
.seal { width: 1.4rem; height: 1.4rem; border-radius: .5rem; background: var(--mute-2); }
.seal.open { background: linear-gradient(135deg, var(--lime), var(--jade)); }
.seal.no { background: var(--fox); }
.st { display: inline-flex; padding: .3rem .9rem; border-radius: 99rem; font-size: 1.25rem; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
dialog { border: 0; border-radius: var(--r); background: var(--panel); color: var(--ink); padding: 3rem; width: min(54rem, calc(100vw - 3.2rem)); box-shadow: inset 0 0 0 1px var(--line), 0 3rem 8rem -2rem rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(2, 8, 5, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { margin: 0 0 .6rem; font: 600 2.8rem/1 var(--sans); letter-spacing: -0.045em; }
dialog .sub { color: var(--mute); margin: 0; }
dialog .row-btns { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* wallet picker */
.wl { display: grid; gap: .8rem; margin-top: 2rem; }
.wopt { display: grid; grid-template-columns: 4.4rem 1fr auto; align-items: center; gap: 1.4rem; padding: 1.2rem 1.6rem 1.2rem 1.2rem; border: 0; border-radius: 1.6rem; background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; font: 500 1.7rem var(--sans); transition: box-shadow .15s, transform .15s; }
.wopt:hover { box-shadow: inset 0 0 0 1.5px var(--lime); transform: translateY(-1px); }
.wopt small { font-size: 1.3rem; color: var(--mute); }
.wic { width: 4.4rem; height: 4.4rem; border-radius: 1.2rem; background: var(--pine); display: grid; place-items: center; overflow: hidden; font-weight: 700; }
.wic img { width: 100%; height: 100%; object-fit: cover; }

/* coin picker */
.coinpick { width: 100%; border: 0; cursor: pointer; text-align: left; font: inherit; }
.coinpick .coin { width: 3.2rem; height: 3.2rem; }
.coinpick .cp-name { flex: 1; font: 500 1.9rem/1 var(--sans); color: var(--ink); }
.cl { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .4rem; max-height: min(52vh, 48rem); overflow-y: auto; }
.cl li { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 1.2rem; border-radius: 1.4rem; cursor: pointer; }
.cl li:hover { background: var(--ground-2); }
.cl li b { display: block; font-weight: 600; }
.cl li small { color: var(--mute); font-size: 1.25rem; }
.cl li .r { text-align: right; font-size: 1.25rem; color: var(--mute); }

/* ── docs and faq ── */
.doc, .faq { max-width: 84rem; margin: 0 auto; padding: 0 var(--pad) 4rem; }
.page-hero { padding-top: 8.4rem; max-width: 144rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.page-hero .art { height: 30rem; }
.doc h1, .faq h1 { font-size: clamp(5rem, 7vw, 9rem); margin: 5.6rem 0 3.6rem; }
.doc h2 { font-size: 3.4rem; letter-spacing: -0.045em; margin: 7.2rem 0 1.6rem; }
.doc p, .doc li { color: var(--mute); font-size: 1.75rem; line-height: 1.6; }
.doc p b, .doc li b { color: var(--ink); font-weight: 500; }
.doc a { color: var(--lime); }
.doc code { font-size: .9em; color: var(--ink-2); background: var(--panel); padding: .1em .4em; border-radius: .4em; word-break: break-all; }
.doc table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 1.55rem; }
.doc td, .doc th { text-align: left; padding: 1.3rem 1rem; border-top: 1px solid var(--line); color: var(--mute); vertical-align: top; }
.doc th { color: var(--mute-2); font-weight: 400; font-size: 1.3rem; }
.doc td:first-child { color: var(--ink); white-space: nowrap; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.6rem 0; cursor: pointer; font: 500 2.2rem/1.25 var(--sans); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 2.8rem; font-weight: 400; color: var(--mute); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--lime); }
.faq details p { margin: -0.8rem 0 2.6rem; max-width: 68rem; font-size: 1.7rem; line-height: 1.6; color: var(--mute); }

@media (max-width: 1000px) {
  .links { display: none; }
  .intro, .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero .art { height: 58vh; }
  .panel { padding: 2.2rem; }
  .logo { padding-right: .6rem; }
  .pos li { grid-template-columns: 3.6rem 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { .art img { transform: none !important; } .batch.lit i { animation: none; } }
/* each painting framed on its subject */
.hero .art img { object-position: 50% 82%; }
.close .art img { object-position: 50% 70%; }
/* the ring mark sits straight on the dark nav, no tile */
.logo img { border-radius: 0; }
/* the coin's contract address, copyable */
.ca { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.2rem; padding: .5rem .5rem .5rem .6rem; border-radius: 99rem; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.4rem; max-width: 100%; }
.ca img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; }
.ca b { font-weight: 600; }
.ca .addr { color: var(--mute); font-variant-numeric: tabular-nums; }
.ca .addr:hover { color: var(--ink); }
.ca button { border: 0; border-radius: 99rem; padding: .7rem 1.3rem; background: var(--panel-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.ca button:hover { box-shadow: inset 0 0 0 1px var(--lime); }
footer .legal a { color: var(--mute); word-break: break-all; }
footer .legal a:hover { color: var(--ink); }
/* X, as an icon in the nav pill */
.xlink { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; color: var(--mute); transition: color .2s, background .2s; }
.xlink:hover { color: var(--ink); background: var(--panel-2); }
.xlink svg { width: 1.5rem; height: 1.5rem; }
