/* trickle - valve sheet. sister of slowpad, different instrument.
   two faces: Chillax (display, titles + readouts) / Red Hat Mono (everything else).
   colour is semantic: --free is the share of a bag that can be sold right now, --held is what is still draining.
   the brand spends no hue: the primary action is an inverted block. hairlines only inside tables.
   sections separate by ground and space. radius 0. */

:root {
  --bg:      #0b0e12;
  --plate:   #070a0d;
  --raise:   #12161c;
  --ink:     #e6e8ea;
  --ink2:    #9aa1a8;
  --dim:     #626970;
  --dim2:    #3c434a;
  --rule:    #1e242b;

  --free:    #9fd8c4;   /* sellable share */
  --free-d:  #2f5a4d;
  --free2:   #d6f5ea;
  --held:    #c66a3a;   /* still draining */
  --held-d:  #4a2a18;
  --up:      #46bd85;
  --down:    #e0584c;
  --focus:   #e6e8ea;

  --disp: "Chillax", "Red Hat Mono", ui-monospace, monospace;
  --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: 28px;
  --s2: 64px;
  --s3: 104px;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-padding-top: 46px; }
.scr { min-height: calc(100vh - 46px); scroll-snap-align: start; display: flex; flex-direction: column; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.l { color: var(--free); text-decoration: underline; text-decoration-color: rgba(159,216,196,.35); text-underline-offset: 2px; }
a.l:hover { text-decoration-color: var(--free); }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sheet { width: min(1760px, 100% - 96px); margin: 0 auto; }
.k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* masthead */
.mast { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.mast .in { width: min(1760px, 100% - 96px); margin: 0 auto; height: 46px; display: flex; align-items: center; gap: 22px; }
.wm { font-family: var(--disp); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.wm b { font-weight: 600; color: var(--free); }
.mast nav { display: flex; gap: 18px; font-size: 12px; color: var(--ink2); }
.mast nav a:hover { color: var(--ink); }
.mast nav a.xn { display: inline-flex; align-items: center; color: var(--free); }
.xl { display: inline-flex; align-items: center; gap: 7px; color: var(--free); }
.live { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 11px; color: var(--dim); }
.live span b { font-weight: 400; color: var(--ink2); }
.live span.stale b { color: var(--dim2); }
.live .flash { animation: tint 900ms ease-out; }
@keyframes tint { from { color: var(--free); } to { color: var(--ink2); } }
.act { display: inline-flex; align-items: center; height: 27px; padding: 0 13px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 0; cursor: pointer; }
.act:hover { background: #fff; }
.act.ghost { background: transparent; color: var(--ink2); border: 1px solid var(--dim2); font-weight: 400; }
.act.ghost:hover { color: var(--ink); border-color: var(--ink2); background: transparent; }
.act.big { height: 38px; padding: 0 20px; font-size: 13px; }
.act[disabled] { opacity: .35; cursor: default; background: var(--dim2); color: var(--bg); }

/* ticker: the drain scale, rolling */
.tick { border-bottom: 1px solid var(--rule); background: var(--plate); overflow: hidden; height: 26px; display: flex; align-items: center; }
.tick .rail { display: flex; white-space: nowrap; animation: roll 90s linear infinite; }
.tick:hover .rail { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.tick i { font-style: normal; padding: 0 16px; font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
.tick i b { font-weight: 400; color: var(--held); }
.tick i.hi b { color: var(--free); }

/* plate: the plot is the page */
.plate { background: var(--plate); border-bottom: 1px solid var(--rule); height: calc(100vh - 46px); min-height: 0; }
.plate .in { flex: 1; width: min(1760px, 100% - 96px); margin: 0 auto; display: grid; grid-template-columns: 440px 1fr; gap: 64px; padding: 40px 0 34px; min-height: 0; }
.claim { display: flex; flex-direction: column; justify-content: center; }
.plot { display: flex; flex-direction: column; min-height: 0; }
.plot svg { flex: none; }

.claim h1 { font-family: var(--disp); font-weight: 600; font-size: 41px; line-height: 1.1; letter-spacing: -.005em; margin: 14px 0 0; text-transform: lowercase; }
.claim h1 em { font-style: normal; color: var(--free); }
.formula { font-family: var(--disp); font-weight: 500; font-size: 20px; color: var(--ink2); margin: 20px 0 0; }
.formula b { color: var(--held); font-weight: 500; }
.under { margin-top: 12px; font-size: 12px; color: var(--dim); max-width: 40ch; line-height: 1.7; }
.excerpt { margin: 22px 0 0; border-top: 1px solid var(--rule); }
.excerpt .row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.excerpt .row .a { color: var(--dim); width: 76px; white-space: nowrap; }
.excerpt .row .lead { flex: 1; border-bottom: 1px dotted var(--dim2); transform: translateY(-3px); }
.excerpt .row .b { color: var(--held); }
.excerpt .row .c { color: var(--free); width: 118px; text-align: right; }
.claim .after { margin-top: 26px; }
.claim .after .fee { font-size: 11.5px; color: var(--dim); margin-top: 12px; max-width: 36ch; line-height: 1.6; }

.plot svg { display: block; width: 100%; cursor: crosshair; }
.plot .cap { display: flex; align-items: baseline; gap: 14px; }
.plot .cap .t { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.plot .cap .lg { margin-left: auto; display: flex; gap: 16px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.plot .cap .lg s { text-decoration: none; display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; }
.plot .cap .lg s.a { background: var(--free); }
.plot .cap .lg s.h { background: var(--held); }

/* the vessels: an outline per column, a level inside that rises with time */
.vessel { fill: var(--held-d); stroke: none; transition: fill 240ms; }
.level  { fill: var(--free); transition: height 260ms cubic-bezier(.2,.7,.2,1), y 260ms cubic-bezier(.2,.7,.2,1), fill 240ms; }
.vessel.past { fill: #1c1a18; }
.level.past  { fill: var(--free-d); }
.vessel.you  { fill: #3a3a3a; }
.level.you   { fill: var(--ink); }
.vessel.hov  { fill: var(--held); }
.level.hov   { fill: var(--free2); }
.level.you.hov { fill: #fff; }
svg:not(.booted) .vessel { animation: rise 520ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--i) * 14ms); transform-box: fill-box; transform-origin: bottom; }
svg:not(.booted) .level  { animation: rise 520ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(400ms + var(--i) * 14ms); transform-box: fill-box; transform-origin: bottom; }
svg:not(.booted) .you-g, svg:not(.booted) .ann-ref { animation: appear 300ms ease-out 1200ms both; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.you-g { transition: transform 180ms cubic-bezier(.2,.7,.2,1); }
.ann-ref { transition: opacity 160ms; }
.hr     { stroke: #171c22; stroke-width: 1; }
.axis-t { fill: var(--dim2); font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; }
.ann-v  { fill: var(--held); font-family: var(--mono); font-size: 10px; }
.you-t  { fill: var(--ink); font-family: var(--mono); font-size: 11.5px; }
.you-bg { fill: var(--plate); opacity: .92; }
.hov-t  { fill: var(--ink2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }
.dr-t   { fill: var(--dim); font-family: var(--mono); font-size: 9px; }

.ctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.knob .t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.knob .t em { font-style: normal; font-family: var(--disp); font-weight: 600; font-size: 15px; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--dim2); outline: none; margin: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 18px; background: var(--ink); cursor: ew-resize; border: 0; }
input[type=range]::-moz-range-thumb { width: 11px; height: 18px; background: var(--ink); cursor: ew-resize; border: 0; border-radius: 0; }

.say { margin-top: 24px; font-size: 14px; line-height: 1.85; color: var(--ink2); max-width: 80ch; }
.say v { font-style: normal; font-family: var(--disp); font-weight: 600; font-size: 17px; color: var(--ink); }
.say v.free { color: var(--free); }
.say v.held { color: var(--held); }
.say .sub { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }

/* notes */
.notes { justify-content: center; padding: 56px 0; }
.notes .hd { display: flex; align-items: baseline; gap: 16px; margin-bottom: var(--s1); }
.notes .hd h2 { font-family: var(--disp); font-weight: 600; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.notes .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 64px; }
.note { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.note .n { font-family: var(--disp); font-weight: 600; font-size: 15px; color: var(--free); line-height: 1.5; }
.note h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; letter-spacing: .01em; }
.note p { font-size: 12.5px; color: var(--ink2); line-height: 1.68; }
.note p + p { margin-top: 8px; }
.note code { color: var(--ink); background: var(--raise); padding: 1px 5px; }
.detail { margin-top: 18px; background: var(--raise); padding: 14px 16px 15px; }
.detail .t { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.detail .f { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid var(--rule); }
.detail .f:last-of-type { border-bottom: 0; }
.detail .f span:last-child { color: var(--dim); }
.detail .cl { margin-top: 10px; font-size: 11.5px; color: var(--dim); line-height: 1.55; }

/* launches table */
.sched { padding: 56px 0 0; }
.sched .hd { display: flex; align-items: baseline; gap: 16px; margin-bottom: var(--s1); }
.sched table { margin-bottom: 56px; }
.sched .hd h2 { font-family: var(--disp); font-weight: 600; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.sched .hd .r { margin-left: auto; font-size: 11.5px; color: var(--dim); }
table { width: 100%; border-collapse: collapse; }
thead th { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 400; text-align: left; padding: 0 12px 9px; border-bottom: 1px solid var(--rule); }
thead th.r { text-align: right; }
tbody td { padding: 0 12px; height: 38px; border-bottom: 1px solid var(--rule); font-size: 12.5px; vertical-align: middle; }
tbody td.r { text-align: right; }
tbody tr:hover td { background: rgba(230,232,234,.035); }
td .i { color: var(--dim2); font-size: 11px; }
td .nm { color: var(--ink); }
td .tkr { color: var(--dim); }
td .sol { color: var(--free); }
.bar { display: inline-block; vertical-align: middle; width: 46px; height: 3px; background: var(--dim2); margin-left: 9px; }
.bar i { display: block; height: 100%; background: var(--held); }
.st { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.st.bond { color: var(--held); }
.st.grad { color: var(--up); }
.st.none { color: var(--dim2); }
.norows td { height: auto; padding: 22px 12px; color: var(--dim); font-size: 12.5px; }
.norows b { color: var(--ink2); font-weight: 400; }

/* title block */
.tb { margin: auto 0 40px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr 1fr 190px; }
.tb .c { padding: 14px 16px 16px; border-right: 1px solid var(--rule); }
.tb .c:last-child { border-right: 0; }
.tb .c .k { display: block; margin-bottom: 5px; }
.tb .c .v { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.tb .c .v em { font-style: normal; color: var(--ink); }
.tb .c .v a { color: var(--free); }
.tb .stamp { color: var(--held); border: 1px solid var(--held-d); padding: 8px 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.45; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 7px 14px; font-size: 11.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 60; }
.toast.on { opacity: 1; }

/* launch sheet */
.sheet2 { display: grid; grid-template-columns: 1fr 440px; gap: 72px; padding: 48px 0 40px; flex: 1; }
.sheet2 > div:first-child { max-width: 760px; }
.sheet2 h1 { font-family: var(--disp); font-weight: 600; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 10px; }
.sheet2 .intro { font-size: 12.5px; color: var(--ink2); max-width: 62ch; line-height: 1.68; }
.form { margin-top: var(--s1); }
.f { margin-bottom: 16px; }
.f > .k { display: block; margin-bottom: 7px; }
.f input[type=text], .f input[type=number], .f textarea { width: 100%; height: 34px; border: 0; border-bottom: 1px solid var(--dim2); background: transparent; padding: 0 2px; font: inherit; font-size: 13.5px; color: var(--ink); outline: none; }
.f textarea { height: 62px; padding: 6px 2px; resize: vertical; line-height: 1.55; }
.f input:focus, .f textarea:focus { border-bottom-color: var(--free); outline: none; }
.f input::placeholder, .f textarea::placeholder { color: var(--dim2); }
.f .h { font-size: 11px; color: var(--dim); margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 120px; gap: 20px; }
.pick { border: 1px dashed var(--dim2); padding: 13px; text-align: center; color: var(--dim); font-size: 12px; cursor: pointer; }
.pick.has { border-style: solid; border-color: var(--rule); color: var(--ink2); }
.pick img { max-height: 80px; display: block; margin: 0 auto 7px; }
.go { margin-top: var(--s1); }
.go .act { width: 100%; justify-content: space-between; height: 46px; padding: 0 18px; font-size: 13px; }
.go .act .c { font-weight: 400; opacity: .6; letter-spacing: 0; text-transform: none; }
.status { font-size: 12px; color: var(--ink2); margin-top: 12px; min-height: 18px; }
.status.err { color: var(--down); }
.receipt { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.receipt .f2 { display: grid; grid-template-columns: 88px 1fr; gap: 5px 12px; font-size: 11.5px; }
.receipt .f2 .k2 { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.receipt .f2 .v2 { word-break: break-all; color: var(--ink2); }
.aside { position: sticky; top: 74px; align-self: start; }
.aside .t { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.aside .big { font-family: var(--disp); font-weight: 600; font-size: 44px; color: var(--held); line-height: 1; }
.aside .cap2 { font-size: 11.5px; color: var(--dim); margin-top: 8px; line-height: 1.6; }
.aside .rows { margin-top: 20px; border-top: 1px solid var(--rule); }
.aside .rows .r { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.aside .rows .r span:first-child { color: var(--dim); }
.aside .rows .r span:last-child { color: var(--ink2); }
.wallet { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); margin-bottom: 14px; }
.wallet em { font-style: normal; color: var(--ink2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  svg:not(.booted) .vessel, svg:not(.booted) .level, svg:not(.booted) .you-g, svg:not(.booted) .ann-ref { animation: none; }
  .tick .rail { animation: none; }
  .live .flash { animation: none; }
  * { transition: none !important; }
}
@media (max-width: 1100px) {
  .plate .in, .notes .cols, .sheet2 { grid-template-columns: 1fr; gap: 34px; }
  .ctl { grid-template-columns: 1fr; gap: 20px; }
  .tb { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
}
