/* ============================================================
   CompanyPad. From the brand art: a white studio, black type,
   "Pad" in grey, and white tiles floating in soft light. Bold
   sentence-case grotesk (Inter Tight), Inter for body, JetBrains
   Mono only for things that are literally numbers or hashes.
   No colour anywhere: black, white and grey, and shadow for depth.

   Motion rules for this file:
   - opacity and transform only, nothing that triggers layout
   - reveals are one-shot; the tiles' drift is the only loop, and
     it is a CSS animation, so nothing depends on rAF to look right
   - the resting state of every element is its visible state, so
     nothing here can strand content invisible
   ============================================================ */

:root{
  --bg:      #f3f3f3;
  --bg-2:    #ebebeb;
  --panel:   #ffffff;
  --panel-2: #f0f0f0;
  --ink:     #0a0a0a;
  --grey:    #8a8a8a;

  --muted: rgba(10,10,10,.62);
  --dim:   rgba(10,10,10,.40);
  --line:  rgba(10,10,10,.08);
  --line-2:rgba(10,10,10,.18);

  /* the inverted surfaces: black slabs with white type */
  --dark:         #0a0a0a;
  --on-dark:      #f4f4f4;
  --on-dark-mute: rgba(244,244,244,.64);
  --on-dark-dim:  rgba(244,244,244,.38);
  --on-dark-line: rgba(244,244,244,.14);

  --display: "Inter Tight", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-card: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --pill: 800px;
  --pad: 2rem;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.4,0,.2,1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -14px rgba(0,0,0,.14);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.05), 0 28px 56px -20px rgba(0,0,0,.26);
  --shadow-tile: 0 2px 3px rgba(0,0,0,.05), 0 24px 40px -14px rgba(0,0,0,.28), inset 0 -3px 0 rgba(0,0,0,.05);
  color-scheme: light;
}
@media (min-width:900px){ :root{ --pad:4rem; } }
@media (min-width:1440px){ :root{ --pad:5.6rem; } }

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
[hidden]{ display:none !important; }
html{ font-size:62.5%; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{
  background:var(--bg); color:var(--ink);
  font-family:var(--font); font-size:1.7rem; line-height:1.55;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
/* the studio: a soft light from the top left, like the banner */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(120rem 70rem at 8% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    radial-gradient(90rem 60rem at 100% 100%, #ffffff 0%, rgba(255,255,255,0) 55%),
    var(--bg);
}
img,svg,canvas{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
::selection{ background:var(--ink); color:#fff; }

.wrap{ max-width:150rem; margin-inline:auto; padding-inline:var(--pad); }

/* ---------- type ---------- */
.display{
  font-family:var(--display); font-weight:800; letter-spacing:-.035em; line-height:.96;
  color:var(--ink); text-wrap:balance;
}
.t-hero{ font-size:clamp(4.4rem,7.4vw,9.6rem); letter-spacing:-.045em; line-height:.94; }
.t-1{ font-size:clamp(3.2rem,5vw,6.2rem); }
.t-2{ font-size:clamp(2.4rem,2.8vw,3.4rem); letter-spacing:-.03em; }
.t-3{ font-size:clamp(2rem,2vw,2.6rem); letter-spacing:-.025em; }
.display .grey, .grey{ color:var(--grey); }
.eyebrow{
  font-family:var(--mono); font-size:1.2rem; text-transform:uppercase;
  letter-spacing:.2em; color:var(--dim);
}
.lead{ font-size:clamp(1.7rem,1.3vw,2rem); line-height:1.5; color:var(--muted); max-width:52ch; }
.body{ color:var(--muted); }
.sub{ font-weight:700; color:var(--ink); }
.mono{ font-family:var(--mono); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.small{ font-size:1.5rem; color:var(--muted); }
.fine{ font-size:1.3rem; color:var(--dim); }
.ln{ color:var(--ink); box-shadow:inset 0 -.12em rgba(10,10,10,.18); transition:box-shadow .3s var(--ease-io), color .3s; }
.ln:hover{ box-shadow:inset 0 -1.1em var(--ink); color:#fff; }

/* ---------- nav ---------- */
.nav{
  position:fixed; top:0; left:0; z-index:40; width:100%;
  display:flex; align-items:center; gap:1.2rem;
  padding:1.6rem var(--pad);
  transition:padding .35s var(--ease-io), background .35s var(--ease-io), box-shadow .35s var(--ease-io);
}
.nav.stuck{
  padding-block:1rem;
  background:rgba(243,243,243,.78);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  backdrop-filter:saturate(160%) blur(14px);
  box-shadow:0 1px 0 var(--line);
}
.brand{
  display:inline-flex; align-items:center; gap:1rem;
  font-family:var(--display); font-weight:800; letter-spacing:-.04em; font-size:2.2rem; color:var(--ink);
}
.brand-mark{ width:3.2rem; height:3.2rem; transition:transform .5s var(--ease); }
.brand em{ font-style:normal; color:var(--grey); }
.brand:hover .brand-mark{ transform:translateY(-2px) rotate(-6deg); }
.nav-mid{
  display:none; margin-left:auto; margin-right:auto; gap:.2rem;
  padding:.5rem; border-radius:var(--pill); background:var(--panel); box-shadow:var(--shadow);
}
@media (min-width:1000px){ .nav-mid{ display:flex; } }
.nav-mid a{
  padding:.9rem 1.6rem; border-radius:var(--pill);
  font-size:1.5rem; font-weight:500; color:var(--muted);
  transition:color .25s var(--ease-io), background .25s var(--ease-io);
}
.nav-mid a:hover{ color:var(--ink); background:var(--panel-2); }
.nav-mid a[aria-current="page"]{ color:#fff; background:var(--ink); }
.nav-end{ display:flex; align-items:center; gap:1rem; margin-left:auto; }
@media (min-width:1000px){ .nav-end{ margin-left:0; } }

/* ---------- pills ---------- */
.pill{
  display:inline-flex; align-items:center; justify-content:center; gap:.8rem;
  padding:1.2rem 2.2rem; border-radius:var(--pill);
  font-size:1.6rem; font-weight:600; white-space:nowrap;
  border:1px solid transparent; cursor:pointer; background:transparent;
  transition:background .3s var(--ease-io), color .3s var(--ease-io),
             border-color .3s var(--ease-io), transform .3s var(--ease), box-shadow .3s var(--ease), opacity .2s;
}
.pill:hover{ transform:translateY(-2px); }
.pill:active{ transform:translateY(0); }
.pill:disabled{ opacity:.35; cursor:not-allowed; transform:none; }
.pill-acc{ background:var(--ink); color:#fff; box-shadow:0 10px 24px -12px rgba(0,0,0,.5); }
.pill-acc:hover{ background:#262626; box-shadow:0 16px 30px -12px rgba(0,0,0,.5); }
.pill-paper{ background:#fff; color:var(--ink); box-shadow:var(--shadow); }
.pill-paper:hover{ box-shadow:var(--shadow-lift); }
.pill-line{ border-color:var(--line-2); color:var(--ink); background:rgba(255,255,255,.5); }
.pill-line:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.pill-ghost{ color:var(--muted); border-color:var(--line); }
.pill-ghost:hover{ color:var(--ink); border-color:var(--line-2); background:#fff; }
.pill.block{ width:100%; }
.pill.sm{ padding:.9rem 1.6rem; font-size:1.4rem; }
.pill:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.arw{ font-size:.82em; transition:transform .3s var(--ease); }
.pill:hover .arw{ transform:translate(2px,-2px); }
.state{
  display:inline-flex; align-items:center; gap:.8rem;
  padding:1rem 1.6rem; border-radius:var(--pill);
  background:var(--panel); box-shadow:var(--shadow); color:var(--muted);
  font-family:var(--mono); font-size:1.15rem; text-transform:uppercase; letter-spacing:.16em;
}
.state i{ width:7px; height:7px; border-radius:50%; background:var(--dim); }
.state.is-live i{ background:var(--ink); animation:pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.35; transform:scale(.8); } }

/* the X link: a round white button beside Connect */
.xbtn{
  width:4.4rem; height:4.4rem; border-radius:50%; display:grid; place-items:center; flex:none;
  background:var(--panel); box-shadow:var(--shadow); color:var(--ink);
  transition:background .25s var(--ease-io), color .25s var(--ease-io), transform .3s var(--ease);
}
.xbtn:hover{ background:var(--ink); color:#fff; transform:translateY(-2px); }
@media (max-width:760px){ .xbtn{ width:3.8rem; height:3.8rem; } }

/* ---------- page shells ---------- */
main{ padding-bottom:6rem; }
.page{ padding-top:13rem; }
@media (min-width:1000px){ .page{ padding-top:15rem; } }
.page-head{ display:grid; gap:1.8rem; margin-bottom:4.4rem; }
@media (min-width:1000px){
  .page-head{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); align-items:end; gap:6rem; }
  .page-head .lead{ padding-bottom:.6rem; }
}
.page-head .eyebrow{ grid-column:1/-1; }

.sec{ padding-top:clamp(8rem,12vh,15rem); }
.sec-head{ display:grid; gap:2.2rem; }
@media (min-width:1000px){
  .sec-head{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); align-items:end; gap:6rem; }
  .sec-head .lead{ padding-bottom:.6rem; }
}
.sec-head .eyebrow{ grid-column:1/-1; }

.grid{ display:grid; gap:1.6rem; }
.grid > *{ min-width:0; }
.g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:900px){ .g3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .g2,.g3{ grid-template-columns:minmax(0,1fr); } }
.split2{ grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); align-items:start; }
@media (max-width:900px){ .split2{ grid-template-columns:minmax(0,1fr); } }

/* ---------- hero ---------- */
.hero{ padding-top:13rem; }
@media (min-width:1000px){ .hero{ padding-top:15rem; } }
.hero-grid{ display:grid; gap:3rem; }
.hero-copy{ display:grid; gap:2.2rem; justify-items:start; }
.hero-foot{ display:grid; gap:1.8rem; justify-items:start; }
@media (min-width:1000px){
  .hero-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:0 5rem; }
  .hero-copy{ padding-bottom:4rem; }
  .live{ grid-row:span 2; }
  .hero-foot{ grid-column:1; max-width:46rem; }
}
.go{ display:flex; flex-wrap:wrap; gap:1rem; }

/* ---------- the live card: the studio with the tiles in it ----------
   White tiles float in soft light, each one a company, drifting on a slow
   CSS loop and sliding at their own rates as the page scrolls. The readout
   underneath is real: every figure is read off the deployed contract. */
.live{
  position:relative; background:var(--panel); border-radius:var(--r-card); box-shadow:var(--shadow-lift);
  padding:2.4rem; display:flex; flex-direction:column; gap:2rem; min-height:46rem; overflow:hidden;
}
.studio{
  position:relative; flex:1 1 auto; min-height:22rem;
  margin:-2.4rem -2.4rem 0; border-radius:var(--r-card) var(--r-card) 0 0;
  background:
    radial-gradient(60% 80% at 20% 0%, #fff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
  perspective:120rem; overflow:hidden;
}
/* the floor, where the tiles' shadows land */
.studio::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:38%; background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9)); pointer-events:none; }
.tile{
  position:absolute; width:var(--s,9rem); height:var(--s,9rem); left:var(--x); top:var(--y);
  border-radius:22%; background:linear-gradient(160deg, #ffffff 0%, #f4f4f4 100%);
  box-shadow:var(--shadow-tile);
  display:grid; place-items:center;
  font-family:var(--display); font-weight:800; letter-spacing:-.03em; font-size:calc(var(--s,9rem) * .24); color:var(--ink);
  transform:translate3d(0, var(--sy,0px), 0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotate(var(--rz,0deg));
  transform-style:preserve-3d; will-change:transform; z-index:1;
}
.tile > span{ display:grid; justify-items:center; gap:.3em; }
.tile img{ width:calc(var(--s,9rem) * .44); height:calc(var(--s,9rem) * .44); object-fit:contain; }
.tile i{ font-style:normal; color:var(--grey); font-size:.5em; font-family:var(--mono); letter-spacing:0; display:block; }
/* with a logo on the tile the ticker steps down to a caption */
.tile img ~ b{ display:none; }
@keyframes drift{
  from{ transform:translate3d(0, calc(var(--sy,0px) - 6px), 0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotate(var(--rz,0deg)); }
  to  { transform:translate3d(0, calc(var(--sy,0px) + 6px), 0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotate(calc(var(--rz,0deg) + 2deg)); }
}
.live-top{ display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.live-dot{ width:8px; height:8px; border-radius:50%; background:var(--ink); flex:none; animation:pulse 2.4s var(--ease-io) infinite; }
.live.is-cold .live-dot{ animation:none; opacity:.35; }
.live-k{ font-family:var(--mono); font-size:1.15rem; text-transform:uppercase; letter-spacing:.18em; color:var(--dim); }
.live-a{ margin-left:auto; font-family:var(--mono); font-size:1.3rem; color:var(--muted); box-shadow:inset 0 -.12em rgba(10,10,10,.2); }
.live-a:hover{ color:var(--ink); }
.live-figure{ display:grid; gap:.6rem; }
.live-figure b{ font-family:var(--display); font-weight:800; letter-spacing:-.04em; line-height:.9; font-size:clamp(4.4rem,6vw,7rem); font-variant-numeric:tabular-nums; }
.live-coin{ border-top:1px solid var(--line); padding-top:1.8rem; display:grid; gap:1.2rem; }
.live-coin-top{ display:flex; align-items:baseline; gap:1rem; flex-wrap:wrap; }
.live-sym{ font-size:1.9rem; font-weight:700; letter-spacing:-.02em; }
.live-said{ font-size:1.5rem; color:var(--muted); }
.live-rows{ display:grid; }
.live-rows div{ display:flex; justify-content:space-between; gap:1.6rem; padding:.9rem 0; border-top:1px solid var(--line); font-size:1.45rem; }
.live-rows div:first-child{ border-top:0; }
.live-rows dt{ color:var(--dim); }
.live-note{ font-size:1.3rem; color:var(--dim); }

/* ---------- the contract address ----------
   Shown in full, on a white pill with a black copy button, so it reads as the
   one thing on the page that is meant to be copied. */
.ca{
  display:inline-flex; align-items:center; gap:1rem; max-width:100%;
  padding:.6rem .6rem .6rem 1.6rem; border-radius:var(--pill);
  background:var(--panel); box-shadow:var(--shadow);
  font-family:var(--mono); font-size:1.3rem; letter-spacing:-.01em; color:var(--muted);
}
.ca b{ color:var(--ink); font-weight:700; letter-spacing:.04em; }
.ca .sep{ color:var(--dim); font-size:1.1rem; letter-spacing:.16em; }
.ca .addr{ color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.ca .addr:hover{ text-decoration:underline; }
.ca .copy{
  flex:none; display:inline-flex; align-items:center; height:3.2rem; padding:0 1.4rem; border:0; border-radius:var(--pill);
  background:var(--ink); color:#fff; cursor:pointer; font-family:var(--mono); font-size:1.1rem; letter-spacing:.12em; text-transform:uppercase;
  transition:background .2s, transform .2s var(--ease);
}
.ca .copy:hover{ background:#262626; transform:translateY(-1px); }
.ca-hero{ margin-top:.4rem; }
.foot-card .ca-foot{ margin-top:2rem; background:rgba(244,244,244,.08); box-shadow:none; color:var(--on-dark-mute); }
.foot-card .ca-foot b,.foot-card .ca-foot .addr{ color:var(--on-dark); }
.foot-card .ca-foot .copy{ background:#fff; color:var(--ink); }
@media (max-width:640px){ .ca{ font-size:1.15rem; gap:.7rem; padding-left:1.2rem; } .ca .addr{ max-width:44vw; } }

/* ---------- stat cards ---------- */
.stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.2rem; margin-top:6rem; }
@media (min-width:900px){ .stats{ grid-template-columns:repeat(4,1fr); gap:1.6rem; } }
.stat{
  background:var(--panel); border-radius:var(--r-card); box-shadow:var(--shadow);
  padding:2.4rem; min-height:15rem;
  display:flex; flex-direction:column; justify-content:space-between; gap:1.8rem;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stat:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.stat.hot{ background:var(--dark); color:var(--on-dark); }
.stat span{ font-size:1.5rem; color:var(--muted); }
.stat.hot span{ color:var(--on-dark-mute); }
.stat b{ font-family:var(--display); font-weight:800; letter-spacing:-.04em; line-height:.9; font-size:clamp(3rem,3.4vw,4.4rem); font-variant-numeric:tabular-nums; }
.stat b em{ font-family:var(--mono); font-style:normal; font-size:.34em; letter-spacing:.04em; margin-left:.25em; color:var(--grey); }

/* ---------- cards ---------- */
.cards{ display:grid; gap:1.6rem; margin-top:4.4rem; }
@media (min-width:820px){ .cards{ grid-template-columns:repeat(2,1fr); } }
.card{
  position:relative; background:var(--panel); border-radius:var(--r-card); box-shadow:var(--shadow);
  padding:3rem; display:grid; gap:1.1rem; align-content:start;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.card .step{
  justify-self:start; margin-bottom:1.4rem;
  padding:.5rem 1.2rem; border-radius:var(--pill); background:var(--panel-2);
  font-family:var(--mono); font-size:1.15rem; text-transform:uppercase; letter-spacing:.18em; color:var(--muted);
  transition:background .4s var(--ease-io), color .4s var(--ease-io);
}
.card:hover .step{ background:var(--ink); color:#fff; }
.card .body{ font-size:1.6rem; }
.card.flat{ transition:none; }
.card.flat:hover{ transform:none; box-shadow:var(--shadow); }
.card.tight{ padding:2.2rem; border-radius:var(--r-md); }
.tags{ display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; }
.tags span{ padding:.55rem 1.1rem; border-radius:var(--pill); border:1px solid var(--line); font-family:var(--mono); font-size:1.15rem; color:var(--dim); }

/* ---------- chips ---------- */
.chip{ display:inline-flex; align-items:center; gap:.6rem; padding:.45rem 1rem; border-radius:var(--pill); background:var(--ink); color:#fff; font-size:1.2rem; font-weight:600; white-space:nowrap; }
.chip-line{ background:transparent; border:1px solid var(--line-2); color:var(--muted); font-weight:400; font-family:var(--mono); }
.chip-live{ background:var(--ink); color:#fff; }
.chip-beat{ background:var(--ink); color:#fff; }
.chip-miss{ background:var(--panel-2); color:var(--muted); font-weight:500; }

/* ---------- market card ---------- */
.mcard{
  display:grid; gap:1.8rem; align-content:start;
  background:var(--panel); border-radius:var(--r-card); box-shadow:var(--shadow); padding:2.6rem;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mcard:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.mcard-top{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:1.4rem; align-items:center; }
/* a company tile, the same object as the ones floating in the hero: the logo
   sits on it when the company is known, the ticker in type when it is not */
.mono-gram{
  --s:5.2rem;
  width:var(--s); height:var(--s); border-radius:22%; display:grid; place-items:center; flex:none;
  background:linear-gradient(160deg,#fff,#f2f2f2); box-shadow:var(--shadow-tile); color:var(--ink);
  font-family:var(--display); font-weight:800; font-size:calc(var(--s) * .25); letter-spacing:-.02em;
  position:relative; overflow:hidden;
}
.mono-gram img{ width:calc(var(--s) * .54); height:calc(var(--s) * .54); object-fit:contain; }
.mono-gram img + b{ display:none; }
.mcard-id{ min-width:0; display:grid; gap:.2rem; }
.mcard-id b{ font-weight:700; font-size:1.8rem; letter-spacing:-.02em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mcard-id .mono{ font-size:1.3rem; color:var(--dim); }
.mcard-rows{ display:grid; }
.mcard-rows div{ display:flex; justify-content:space-between; gap:1.6rem; padding:.9rem 0; border-top:1px solid var(--line); font-size:1.45rem; }
.mcard-rows dt{ color:var(--dim); }
.mcard-rows dd{ color:var(--ink); text-align:right; }
.mcard-rows dd i{ font-style:normal; color:var(--dim); font-size:1.1rem; }
.bar{ height:6px; border-radius:3px; background:var(--bg-2); overflow:hidden; }
.bar span{ display:block; height:100%; background:var(--ink); width:0; transition:width 1s var(--ease); }
.mcard-foot{ display:flex; justify-content:space-between; gap:1rem; font-family:var(--mono); font-size:1.15rem; text-transform:uppercase; letter-spacing:.14em; color:var(--dim); }
@media (max-width:640px){ .mcard-top{ grid-template-columns:auto minmax(0,1fr); } .mcard-top .chip{ grid-column:2; justify-self:start; } }

/* ---------- three column steps ---------- */
.steps{ display:grid; gap:0; margin-top:4rem; border-top:1px solid var(--line); }
@media (min-width:820px){ .steps{ grid-template-columns:repeat(3,1fr); } }
.steps > div{ padding:3rem 0; border-bottom:1px solid var(--line); }
@media (min-width:820px){
  .steps > div{ padding:3.4rem 3rem 3.8rem; border-bottom:0; border-left:1px solid var(--line); }
  .steps > div:first-child{ padding-left:0; border-left:0; }
}
.steps .eyebrow{ display:block; margin-bottom:1.8rem; }
.steps h3{ margin-bottom:1.2rem; }
.steps p{ font-size:1.6rem; color:var(--muted); }

/* ---------- ledger ---------- */
.slab{ background:var(--panel); border-radius:var(--r-card); box-shadow:var(--shadow); padding:2.4rem; margin-top:4rem; }
@media (min-width:900px){ .slab{ padding:3.2rem; } }
.ledger{ width:100%; overflow-x:auto; }
.ledger table{ width:100%; min-width:58rem; border-collapse:collapse; text-align:left; }
.ledger th{ font-family:var(--mono); font-size:1.15rem; font-weight:400; text-transform:uppercase; letter-spacing:.16em; color:var(--dim); padding:0 2rem 1.4rem 0; }
.ledger td{ padding:1.5rem 2rem 1.5rem 0; border-top:1px solid var(--line); font-size:1.55rem; color:var(--muted); }
.ledger th:last-child,.ledger td:last-child{ padding-right:0; }
.ledger td:first-child{ color:var(--ink); font-weight:600; }
.ledger .n{ font-family:var(--mono); font-variant-numeric:tabular-nums; text-align:right; letter-spacing:-.02em; }
.ledger th.n{ text-align:right; }
.ledger tbody tr{ transition:background .3s var(--ease-io); }
.ledger tbody tr:hover{ background:var(--panel-2); }
.ledger tr.sum td{ color:var(--ink); font-weight:700; border-top-color:var(--line-2); }
.ledger tr.sum td:last-child b{ background:var(--ink); color:#fff; padding:.25rem .7rem; border-radius:.6rem; }

/* ---------- example rows ---------- */
.rows{ background:var(--panel); border-radius:var(--r-card); box-shadow:var(--shadow); padding:.6rem 2.4rem; margin-top:4rem; }
.row{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:1.8rem;
  align-items:center; padding:2rem 0; border-top:1px solid var(--line);
  transition:padding-left .4s var(--ease);
}
.row:first-child{ border-top:0; }
.row:hover{ padding-left:.8rem; }
.row-main{ min-width:0; display:grid; gap:.4rem; }
.row-top{ display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; }
.row-top b{ font-weight:700; font-size:1.7rem; letter-spacing:-.02em; }
.row-said{ font-size:1.5rem; color:var(--muted); }
.row-end{ text-align:right; display:grid; gap:.2rem; }
.row-end b{ font-family:var(--mono); font-size:1.5rem; font-weight:400; letter-spacing:-.02em; color:var(--ink); }
.row-end span{ font-family:var(--mono); font-size:1.1rem; text-transform:uppercase; letter-spacing:.16em; color:var(--dim); }
@media (max-width:700px){ .row{ grid-template-columns:auto minmax(0,1fr); } .row-end{ grid-column:2; text-align:left; } }

/* ---------- black statement band ---------- */
.band{
  background:var(--dark); color:var(--on-dark); border-radius:var(--r-card);
  margin-top:clamp(8rem,12vh,13rem); padding:clamp(3rem,5vw,5.6rem);
  display:grid; gap:2.8rem; overflow:hidden; position:relative; box-shadow:var(--shadow-lift);
}
@media (min-width:1000px){ .band{ grid-template-columns:minmax(0,1fr) auto; align-items:end; } }
.band .display{ color:var(--on-dark); max-width:18ch; }
.band .display .grey{ color:var(--on-dark-dim); }
.band p{ color:var(--on-dark-mute); font-size:1.7rem; max-width:46ch; }
.band .pill-paper{ background:#fff; color:var(--ink); }

/* ---------- rules ---------- */
.rules{ list-style:none; counter-reset:r; margin-top:4rem; }
.rules li{
  counter-increment:r; display:grid; grid-template-columns:4.2rem minmax(0,1fr); gap:1.6rem;
  padding:2rem 0; border-top:1px solid var(--line); font-size:1.6rem; color:var(--muted);
  transition:padding-left .4s var(--ease), color .4s var(--ease-io);
}
.rules li:hover{ padding-left:.8rem; color:var(--ink); }
.rules li::before{ content:counter(r,decimal-leading-zero); font-family:var(--mono); font-size:1.25rem; color:var(--dim); padding-top:.5rem; }
.rules li:last-child{ border-bottom:1px solid var(--line); }
.rules b{ color:var(--ink); font-weight:700; }
.rules strong{ font-weight:700; background:var(--ink); color:#fff; padding:0 .25em; border-radius:.25em; }

/* ---------- white closing block ---------- */
.close{
  background:var(--panel); color:var(--ink); border-radius:var(--r-card); box-shadow:var(--shadow-lift);
  margin-top:clamp(8rem,12vh,13rem); padding:clamp(3rem,5vw,5.6rem);
  display:grid; gap:2.8rem;
}
@media (min-width:1000px){ .close{ grid-template-columns:minmax(0,1fr) auto; align-items:end; } }
.close p{ color:var(--muted); font-size:1.7rem; max-width:46ch; }

/* ---------- footer ---------- */
.foot{ padding-top:clamp(6rem,10vh,10rem); }
.foot-card{ background:var(--dark); color:var(--on-dark); border-radius:var(--r-card); padding:clamp(2.8rem,4vw,4.4rem); display:grid; gap:3rem; }
@media (min-width:900px){ .foot-card{ grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap:3.2rem; } }
.foot-card .brand{ color:var(--on-dark); }
.foot-card .brand em{ color:var(--on-dark-dim); }
.foot-card .brand-mark{ filter:invert(1); }
.foot-card p{ font-size:1.55rem; color:var(--on-dark-mute); max-width:42ch; }
.foot-card h4{ font-family:var(--mono); font-size:1.15rem; font-weight:400; text-transform:uppercase; letter-spacing:.2em; color:var(--on-dark-dim); margin-bottom:1.8rem; }
.foot-card nav{ display:grid; gap:1.2rem; font-size:1.6rem; }
.foot-card nav a{ color:var(--on-dark-mute); transition:color .25s var(--ease-io), transform .35s var(--ease); }
.foot-card nav a:hover{ color:var(--on-dark); transform:translateX(3px); }
.foot-card dl div{ display:flex; justify-content:space-between; gap:1.6rem; font-size:1.5rem; padding:.3rem 0; }
.foot-card dt{ color:var(--on-dark-dim); }
.foot-card dd{ color:var(--on-dark-mute); font-family:var(--mono); letter-spacing:-.02em; }
.foot-card .ln{ color:var(--on-dark); box-shadow:inset 0 -.12em var(--on-dark-line); }
.foot-card .ln:hover{ box-shadow:none; color:#fff; }
.wordmark{
  font-family:var(--display); font-weight:800; letter-spacing:-.05em;
  font-size:clamp(5.2rem,15.4vw,20.6rem); line-height:.82; color:rgba(10,10,10,.05);
  margin:clamp(3rem,6vw,5.6rem) 0 0; user-select:none;
  max-width:100%; overflow:hidden; white-space:nowrap;
}
.wordmark em{ font-style:normal; color:rgba(10,10,10,.03); }
.foot-end{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.6rem; border-top:1px solid var(--line); margin-top:2.4rem; padding:2.2rem 0 4rem; font-size:1.35rem; color:var(--dim); }

/* ---------- forms ---------- */
.field{ display:block; margin-bottom:1.6rem; }
.field > span{ display:block; margin-bottom:.7rem; font-family:var(--mono); font-size:1.15rem; letter-spacing:.14em; text-transform:uppercase; color:var(--dim); }
.field .hint{ text-transform:none; letter-spacing:0; font-family:var(--font); font-size:1.3rem; color:var(--dim); margin-top:.6rem; }
input[type="text"],input[type="number"],input[type="url"],input[type="datetime-local"],textarea,select{
  width:100%; height:4.8rem; padding:0 1.6rem;
  background:#fff; border:1px solid var(--line-2); border-radius:var(--r-sm);
  color:var(--ink); outline:none; transition:border-color .18s, box-shadow .18s;
}
textarea{ height:auto; min-height:9rem; padding:1.2rem 1.6rem; resize:vertical; line-height:1.5; }
input:focus,textarea:focus,select:focus{ border-color:var(--ink); box-shadow:0 0 0 3px rgba(10,10,10,.08); }
input::placeholder,textarea::placeholder{ color:var(--dim); }
input[type="number"],input[type="datetime-local"]{ font-family:var(--mono); }
.seg{ display:inline-flex; padding:.4rem; gap:.2rem; border-radius:var(--pill); background:var(--panel); box-shadow:var(--shadow); flex-wrap:wrap; max-width:100%; }
.seg button{ height:3.4rem; padding:0 1.5rem; border:0; border-radius:var(--pill); background:transparent; color:var(--muted); font-size:1.4rem; font-weight:600; cursor:pointer; transition:color .18s, background .18s; }
.seg button:hover{ color:var(--ink); }
.seg button[aria-pressed="true"]{ background:var(--ink); color:#fff; }

.choices{ display:grid; gap:1.2rem; }
@media (min-width:700px){ .choices{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1100px){ .choices{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.choice{
  text-align:left; cursor:pointer; background:var(--panel); border:1px solid transparent; box-shadow:var(--shadow);
  border-radius:var(--r-md); padding:2rem; display:grid; gap:.6rem; align-content:start;
  transition:border-color .2s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.choice:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lift); }
.choice[aria-pressed="true"]{ border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink), var(--shadow); }
.choice:disabled{ opacity:.4; cursor:not-allowed; }
.choice .k{ font-family:var(--mono); font-size:1.1rem; letter-spacing:.14em; text-transform:uppercase; color:var(--dim); }
.choice h3{ font-size:2rem; }
.choice p{ font-size:1.4rem; color:var(--muted); }
.choice .taken{ color:var(--ink); font-size:1.3rem; }

.suggest{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
.suggest button{ display:inline-flex; align-items:center; gap:.6rem; padding:.5rem 1.1rem .5rem .7rem; border-radius:var(--pill); border:1px solid var(--line); background:#fff; color:var(--muted); font-family:var(--mono); font-size:1.2rem; cursor:pointer; transition:border-color .18s, color .18s, background .18s; }
.suggest button img{ width:1.6rem; height:1.6rem; object-fit:contain; }
.suggest button:hover{ border-color:var(--ink); color:var(--ink); }
.suggest button[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:#fff; }

.amounts{ display:flex; gap:.8rem; flex-wrap:wrap; margin-top:1.2rem; }
.amounts button{ height:3.2rem; padding:0 1.3rem; border-radius:var(--pill); cursor:pointer; border:1px solid var(--line-2); background:#fff; color:var(--muted); font-family:var(--mono); font-size:1.2rem; transition:border-color .18s, color .18s, background .18s; }
.amounts button:hover{ border-color:var(--ink); color:var(--ink); }
.amounts button[aria-pressed="true"]{ background:var(--ink); border-color:var(--ink); color:#fff; }

.kv{ display:grid; }
.kv div{ display:flex; justify-content:space-between; gap:1.6rem; padding:1rem 0; border-top:1px solid var(--line); font-size:1.45rem; }
.kv div:first-child{ border-top:0; }
.kv dt{ color:var(--dim); }
.kv dd{ color:var(--ink); text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.big{ display:grid; gap:.6rem; }
.big span{ font-family:var(--mono); font-size:1.15rem; text-transform:uppercase; letter-spacing:.18em; color:var(--dim); }
.big b{ font-family:var(--display); font-weight:800; letter-spacing:-.04em; line-height:.9; font-size:clamp(2.8rem,3.4vw,4.4rem); font-variant-numeric:tabular-nums; color:var(--ink); }
.big b em{ font-family:var(--mono); font-style:normal; font-size:.36em; letter-spacing:.04em; margin-left:.3em; color:var(--grey); }
.big .sub{ font-size:1.4rem; color:var(--muted); font-weight:400; }

/* ---------- readings history ---------- */
.hist{ display:grid; gap:.2rem; }
.hist-row{ display:grid; grid-template-columns:6rem minmax(0,1fr) auto auto; gap:1.6rem; align-items:center; padding:1.3rem 0; border-top:1px solid var(--line); font-size:1.45rem; }
.hist-row:first-child{ border-top:0; }
.hist-row .ep{ font-family:var(--mono); color:var(--dim); font-size:1.2rem; }
.hist-row .val{ font-family:var(--mono); color:var(--ink); }
.hist-row .when{ color:var(--dim); font-size:1.3rem; }
@media (max-width:640px){ .hist-row{ grid-template-columns:5rem minmax(0,1fr) auto; } .hist-row .when{ display:none; } }
.chart{ width:100%; height:18rem; }

/* ---------- modal ---------- */
.sheet{ position:fixed; inset:0; z-index:200; display:none; }
.sheet.open{ display:block; }
.sheet-bg{ position:absolute; inset:0; background:rgba(20,20,20,.3); backdrop-filter:blur(6px); animation:fade .2s var(--ease); }
.sheet-box{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(46rem,calc(100vw - 3.2rem)); max-height:calc(100vh - 4.8rem); overflow:auto;
  background:var(--panel); border-radius:var(--r-md); padding:2.4rem;
  box-shadow:var(--shadow-lift); animation:pop .24s var(--ease);
}
.sheet-box.wide{ width:min(72rem,calc(100vw - 3.2rem)); }
@keyframes fade{ from{ opacity:0; } }
@keyframes pop{ from{ opacity:0; transform:translate(-50%,-46%) scale(.98); } }
.sheet-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:1.8rem; gap:1rem; }
.x{ width:3.2rem; height:3.2rem; display:grid; place-items:center; border-radius:1rem; border:1px solid var(--line); background:transparent; color:var(--muted); cursor:pointer; }
.x:hover{ color:var(--ink); border-color:var(--line-2); }
.pick{ display:flex; align-items:center; gap:1.2rem; width:100%; padding:1.2rem 1.4rem; margin-bottom:.8rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--panel-2); cursor:pointer; text-align:left; transition:border-color .18s, background .18s; }
.pick:hover{ border-color:var(--ink); background:#fff; }
.pick img,.pick-blank{ width:2.8rem; height:2.8rem; border-radius:.8rem; background:var(--bg-2); }
.pick b{ font-weight:600; }

/* ---------- notices ---------- */
.note{ padding:1.4rem 1.6rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--panel); font-size:1.45rem; color:var(--muted); }
.note.warn{ border-color:var(--ink); color:var(--ink); }
.note.bad{ border-color:transparent; background:var(--ink); color:#fff; }
.note.good{ border-color:var(--line-2); color:var(--ink); }
.toasts{ position:fixed; left:50%; bottom:2.6rem; transform:translateX(-50%); z-index:300; display:grid; gap:.8rem; width:min(44rem,calc(100vw - 2.8rem)); }
.toast{ padding:1.4rem 1.6rem; border-radius:var(--r-sm); background:var(--ink); color:#fff; font-size:1.45rem; box-shadow:var(--shadow-lift); }
.toast.bad{ background:#fff; color:var(--ink); border:1px solid var(--ink); }
.toast a{ display:block; margin-top:.6rem; text-decoration:underline; font-size:1.3rem; }
.empty{ padding:5.6rem 2.4rem; text-align:center; border:1px dashed var(--line-2); border-radius:var(--r-card); color:var(--muted); }
.empty b{ display:block; color:var(--ink); font-size:1.8rem; margin-bottom:.6rem; letter-spacing:-.02em; }
.empty .pill{ margin-top:1.8rem; }
.skel{ border-radius:.6rem; background:linear-gradient(90deg,rgba(10,10,10,.04),rgba(10,10,10,.09),rgba(10,10,10,.04)); background-size:200% 100%; animation:shimmer 1.4s linear infinite; }
@keyframes shimmer{ to{ background-position:-200% 0; } }

/* ---------- prose (how, docs) ---------- */
.prose{ max-width:72ch; }
.prose h2{ margin:5rem 0 1.6rem; }
.prose h3{ margin:3rem 0 1rem; font-size:2rem; }
.prose p,.prose li{ color:var(--muted); font-size:1.65rem; line-height:1.6; margin-bottom:1.4rem; }
.prose ul,.prose ol{ padding-left:2.2rem; }
.prose code{ font-family:var(--mono); font-size:.9em; background:var(--bg-2); padding:.15em .45em; border-radius:.4em; color:var(--ink); }
.prose pre{ background:var(--dark); color:var(--on-dark); border-radius:var(--r-sm); padding:1.6rem 2rem; overflow-x:auto; margin-bottom:1.6rem; }
.prose pre code{ background:none; padding:0; font-size:1.35rem; color:var(--on-dark); }
.prose strong{ color:var(--ink); }
.prose table{ width:100%; border-collapse:collapse; margin-bottom:2rem; font-size:1.5rem; }
.prose th,.prose td{ text-align:left; padding:1rem 1.6rem 1rem 0; border-top:1px solid var(--line); color:var(--muted); vertical-align:top; }
.prose th{ font-family:var(--mono); font-size:1.15rem; text-transform:uppercase; letter-spacing:.16em; color:var(--dim); border-top:0; }
.prose td:first-child{ color:var(--ink); }

/* ============================================================
   Motion
   ============================================================ */
@keyframes rise{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
.hero-copy > *,.hero-foot > *{ animation:rise .9s var(--ease) both; }
.hero-copy > *:nth-child(1){ animation-delay:.05s; }
.hero-copy > *:nth-child(2){ animation-delay:.14s; }
.hero-foot > *:nth-child(1){ animation-delay:.32s; }
.hero-foot > *:nth-child(2){ animation-delay:.42s; }
.live{ animation:rise 1s var(--ease) .22s both; }
/* the tiles arrive one after another, then settle into their drift */
@keyframes land{ from{ opacity:0; transform:translate3d(0,40px,0) scale(.9); } }
.live .tile{ animation:land .9s var(--ease) both, drift var(--t,9s) ease-in-out infinite alternate; }
.live .tile:nth-child(1){ animation-delay:.35s, 1.25s; }
.live .tile:nth-child(2){ animation-delay:.45s, 1.35s; }
.live .tile:nth-child(3){ animation-delay:.55s, 1.45s; }
.live .tile:nth-child(4){ animation-delay:.65s, 1.55s; }
.live .tile:nth-child(5){ animation-delay:.75s, 1.65s; }
.live .tile:nth-child(6){ animation-delay:.85s, 1.75s; }

/* scroll reveals: three shapes, all one-shot, all opt-in via the script */
.js .rv{ opacity:0; transform:translateY(22px); }
.js .rv-scale{ opacity:0; transform:scale(.96) translateY(12px); }
.js .rv-left{ opacity:0; transform:translateX(-22px); }
.js .rv.in,.js .rv-scale.in,.js .rv-left.in{
  opacity:1; transform:none;
  transition:opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay:var(--d,0ms);
}
/* the hero copy eases back as the page leaves it; --p is 0..1 scroll progress */
.hero-copy,.hero-foot{ transform:translateY(calc(var(--p,0) * -3rem)); opacity:calc(1 - var(--p,0) * .9); }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-delay:0ms !important; transition-duration:.001ms !important; transition-delay:0ms !important; }
  .js .rv,.js .rv-scale,.js .rv-left{ opacity:1; transform:none; }
  .hero-copy,.hero-foot{ transform:none; opacity:1; }
}

/* ---------- narrow ---------- */
@media (max-width:760px){
  .nav{ padding:1.2rem var(--pad); }
  .nav-end .state{ display:none; }
  .brand{ font-size:1.8rem; }
  .brand-mark{ width:2.6rem; height:2.6rem; }
  .pill{ padding:1.1rem 1.7rem; font-size:1.5rem; }
  .hero,.page{ padding-top:10rem; }
  .card{ padding:2.4rem; }
  .mcard{ padding:2.2rem; }
  .rows{ padding:.4rem 1.8rem; }
  .live{ min-height:40rem; }
}
.nav-mobile{ display:none; }
@media (max-width:999px){
  .nav-mobile{ display:flex; gap:.4rem; overflow-x:auto; scrollbar-width:none; padding:0 var(--pad) 1rem; margin:7.4rem 0 -7.4rem; position:relative; z-index:3; }
  .nav-mobile::-webkit-scrollbar{ display:none; }
  .nav-mobile a{ padding:.8rem 1.4rem; border-radius:var(--pill); background:#fff; box-shadow:var(--shadow); color:var(--muted); font-size:1.4rem; white-space:nowrap; }
  .nav-mobile a[aria-current="page"]{ background:var(--ink); color:#fff; }
}
