/* slowpad — instrument sheet.
   two faces: Array (display, titles + readouts) / Azeret Mono (everything else).
   colour is semantic, never decorative: --lock is the lock curve and lock values, --price is the price curve,
   --up/--down are states. the brand spends no hue: the primary action is an inverted white block.
   hairlines exist only inside tables. sections separate by ground and space. */

:root {
  /* cool graphite ground; ink matches its temperature */
  --bg:      #0b0d0e;
  --plate:   #070909;   /* the sunk ground the plot sits on */
  --raise:   #121618;   /* the one raised surface, 7 points up from bg */
  --ink:     #e4e9ea;
  --ink2:    #98a1a5;
  --dim:     #626b70;
  --dim2:    #414a4e;
  --rule:    #222a2e;   /* table hairlines only */

  --lock:    #f2a03d;   /* lock curve, lock durations */
  --lock-d:  #6b4718;
  --lock2:   #ffd08a;
  --price:   #58b9c9;   /* price curve, sol figures */
  --up:      #46bd85;
  --down:    #e0584c;
  --focus:   #e4e9ea;

  --disp: "Array", "Azeret Mono", ui-monospace, monospace;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* spacing scale, used semantically: tight / section / argument change */
  --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(--price); text-decoration: underline; text-decoration-color: rgba(88,185,201,.35); text-underline-offset: 2px; }
a.l:hover { text-decoration-color: var(--price); }
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; }
.narrow { width: min(640px, 100%); }

/* the single label token. two tracking values do not exist. */
.k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* display face: per-size tracking, never below 20px */
.d { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; }

/* ─────────────────────────── masthead: permanent chrome ─────────────────── */
.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-size: 21px; letter-spacing: .06em; text-transform: uppercase; }
.wm b { font-weight: 400; color: var(--lock); }
.mast nav { display: flex; gap: 18px; font-size: 12px; color: var(--ink2); }
.mast nav a:hover { color: var(--ink); }
.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(--lock); } 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 lock 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(--lock); }
.tick i.hi b { color: var(--price); }

/* ─────────────────────────── 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: 400; font-size: 46px; line-height: 1.12; letter-spacing: 0; margin: 14px 0 0; text-transform: lowercase; }
.claim h1 em { font-style: normal; color: var(--lock); }
.formula { font-family: var(--disp); font-size: 21px; color: var(--ink2); margin: 20px 0 0; letter-spacing: .01em; }
.formula b { color: var(--lock); font-weight: 400; }
.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(--lock); }
.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; }

/* the plot: no box, no border, no radius */
.plot svg { display: block; width: 100%; }
.plot .cap { display: flex; align-items: baseline; gap: 14px; }
.plot .cap .t { font-family: var(--disp); font-size: 15px; letter-spacing: .08em; 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(--lock); }
.plot .cap .lg s.p { background: var(--price); }

/* svg styled by class so the tokens reach the drawing */
.vault, .pbar { transform-box: fill-box; transform-origin: bottom; transition: fill 240ms cubic-bezier(.2,.7,.2,1); }
.vault { fill: var(--lock); }
.pbar  { fill: var(--price); opacity: .85; }
.vault.past { fill: var(--lock-d); }
.pbar.past  { fill: #1f4d54; }
.vault.you, .pbar.you { fill: var(--ink); opacity: 1; }
.vault.hov { fill: var(--lock2); }
.pbar.hov  { fill: #9fe3ee; }
.vault.you.hov, .pbar.you.hov { fill: #fff; }
/* power-on: the field rises from the baseline once, left to right. never again after boot. */
svg:not(.booted) .vault { animation: rise 520ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--i) * 14ms); }
svg:not(.booted) .pbar  { animation: rise 420ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(640ms + var(--i) * 10ms); }
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: #161c1f; stroke-width: 1; }
.axis-t   { fill: var(--dim2); font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; }
.ann-v    { fill: var(--lock); font-family: var(--mono); font-size: 10px; }
.you-t    { fill: var(--ink); font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.hov-t    { fill: var(--ink2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }
.plot svg { cursor: crosshair; }

/* instrument controls sit under the plot, inside the plate */
.ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; 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-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; }

/* the readout is a sentence, not a key/value table */
.say { margin-top: 24px; font-size: 14px; line-height: 1.85; color: var(--ink2); max-width: 78ch; }
.say v { font-style: normal; font-family: var(--disp); font-size: 17px; color: var(--ink); }
.say v.lock { color: var(--lock); }
.say v.price { color: var(--price); }
.say .sub { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }

/* ─────────────────────────── notes: prose, numbered, open ────────────────── */
.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: 400; font-size: 26px; 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-size: 15px; color: var(--lock); 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 B: the vault account, drawn */
.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; }

/* ─────────────────────────── schedule: the 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: 400; font-size: 26px; 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(228,233,234,.035); }
td .i { color: var(--dim2); font-size: 11px; }
td .nm { color: var(--ink); }
td .tkr { color: var(--dim); }
td .sol { color: var(--price); }
.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(--lock); }
.st { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.st.bond { color: var(--lock); }
.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; padding-top: 0; 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(--price); }
.tb .stamp { color: var(--lock); border: 1px solid var(--lock-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: 400; font-size: 27px; letter-spacing: .04em; 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(--lock); 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-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.aside .big { font-family: var(--disp); font-size: 44px; color: var(--lock); 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) .vault, svg:not(.booted) .pbar, 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; }
}
