:root {
  /* Palette: Rocket. Trust-building navy, flame orange used only for buttons and accents,
     yellow for holders and sky blue for buybacks. Chosen with palettes.html (local only). */
  --bg: #ffffff;
  --panel: #f2f4fa;
  --ink: #0d1530;
  --body: #3d4459;
  --mute: #5d6274;          /* darkened so small grey text passes 4.5:1, even on --panel */
  --line: #e0e2ea;
  --volt: #ff6a2b;          /* accent on light backgrounds */
  --volt-press: #c24a12;
  --on-volt: #0d1530;       /* text placed on the accent */
  --volt-dark: #ff7a3d;     /* accent inside the dark panels, lighter so it reads */
  --on-volt-dark: #0d1530;
  --dark: #0d1530;
  --dark-2: #141e3f;
  --dark-line: #1e2953;
  --dark-mute: #a0aacb;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  /* Headline typeface: headings, story captions, question titles and the wordmark.
     Fraunces, a soft serif. The adjustment values keep it at the same optical size and
     spacing the layout was built around; change them together if the face ever changes. */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --display-weight: 540;        /* headings */
  --display-strong: 600;        /* the wordmark */
  --display-track: .012em;      /* added to each heading's letter-spacing */
  --display-scale: 1.02;        /* multiplies heading sizes: wide faces need less, narrow ones more */
  --display-lh: .04;            /* added to each heading's line-height */
  --display-measure: 1;         /* multiplies heading line lengths: wide faces need a longer line */
  --display-settings: normal;   /* the soft, un-wonky shapes are baked into the file fonts.js requests */
  --display-stretch: 100%;
  /* more light-page tones */
  --line-2: #d4d7e0;        /* a slightly stronger border */
  --soft: #b2b4bd;          /* quiet fills, the creator's share on light */
  --soft-2: #9ea1ac;
  --on-ink: #ffffff;        /* text placed on --ink */
  /* the dark stage (film, payouts panel, fee policy card) */
  --on-dark: #f4f6fd;       /* main text on the dark stage */
  --on-dark-soft: #e3e7f3;
  --on-dark-2: #ced4e7;     /* secondary text on the dark stage */
  --dark-edge: #2a396e;     /* routes and outlines in the story */
  --dark-edge-2: #232f5e;
  --dark-deep: #151f41;     /* empty bar tracks */
  --dark-dim: #747d9d;
  --dark-faint: #626b8a;
  --volt-dark-press: #fba580;
  /* where the fees go, used by the story and the fee-flow chart */
  --c-hold: #ffd23f;
  --c-buy: #8fb4ff;
  --c-creator: #7d88a8;
  --bar: 61px;              /* height of the sticky header, border included */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
b { font-weight: 600; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, .cap-h, .proof-title, .rows dt, .mark { font-family: var(--display); font-variation-settings: var(--display-settings); font-stretch: var(--display-stretch); font-synthesis: none; }
h1, h2 { font-weight: var(--display-weight); letter-spacing: calc(-.035em + var(--display-track)); text-wrap: balance; }
h1 { font-size: calc(clamp(38px, 5.2vw, 68px) * var(--display-scale)); line-height: calc(1.02 + var(--display-lh)); max-width: calc(15em * var(--display-measure)); }
h2 { font-size: calc(clamp(28px, 3.2vw, 42px) * var(--display-scale)); line-height: calc(1.08 + var(--display-lh)); max-width: calc(18em * var(--display-measure)); }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar-in { height: 60px; display: flex; align-items: center; gap: 36px; }
.mark { font-weight: var(--display-strong); font-size: calc(22px * var(--display-scale)); line-height: 1; letter-spacing: -.04em; text-decoration: none; }
.bar nav { display: flex; gap: 26px; margin-right: auto; }
.bar nav a, .foot nav a { font-size: 14px; color: var(--body); text-decoration: none; }
.bar nav a:hover, .foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-block; padding: 14px 20px; border-radius: 6px;
  background: var(--volt); color: var(--on-volt); font: 500 15px/1 var(--sans); text-decoration: none;
  transition: background-color .15s ease-out, transform .12s ease-out;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--volt-press); } }
.btn.small { padding: 10px 14px; font-size: 14px; }
.link { font-size: 15px; font-weight: 500; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.lede { margin-top: 22px; font-size: 19px; line-height: 1.45; color: var(--body); max-width: 35em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 32px; }

/* The coin: a dark band that carries straight on from the story. The rules sit on the
   navy itself; only the chart gets a panel. */
.coin { position: relative; margin-top: -1px; background: var(--dark); color: var(--on-dark); padding: 65px 0 128px; --volt: var(--volt-dark); --on-volt: var(--on-volt-dark); --volt-press: var(--volt-dark-press); }
.proto { display: grid; grid-template-columns: 4fr 6fr; column-gap: 64px; align-items: start; }
.proto-proof { padding: 40px; background: var(--dark-2); border-radius: 12px; }

.proto-name { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.proto-name b { font: var(--display-strong) calc(38px * var(--display-scale))/1 var(--display); letter-spacing: calc(-.03em + var(--display-track)); }
.chip { font: 500 13px/1 var(--sans); letter-spacing: 0; color: var(--on-dark-2); padding: 6px 9px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--dark-edge); white-space: nowrap; }
.proto-sub { margin-top: 14px; color: var(--on-dark-2); max-width: 26em; }
.does { margin-top: 28px; }
.does li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--dark-line); }
.does b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.does .r-hold b { color: var(--c-hold); }
.does .r-buy b { color: var(--c-buy); }
.does span { color: var(--on-dark-soft); }
.plain { padding: 15px 0; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-2); }
.plain b { color: var(--on-dark); }

.proof-title { font-size: calc(20px * var(--display-scale)); font-weight: var(--display-weight); letter-spacing: calc(-.02em + var(--display-track)); }
.proof-sub { margin-top: 6px; font-size: 14px; color: var(--dark-mute); }
/* the running tally under the $WARM panel: one plain row, no cards */
.tally { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--dark-line); }
.tally-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tally-head b { font: var(--display-weight) calc(24px * var(--display-scale))/1.1 var(--display); letter-spacing: calc(-.02em + var(--display-track)); }
.tally.is-live [data-tally-state] { color: var(--c-hold); box-shadow: inset 0 0 0 1px var(--c-hold); }
.tally-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.tally-row > div { padding: 4px 28px; border-left: 1px solid var(--dark-line); }
.tally-row > div:first-child { padding-left: 0; border-left: 0; }
.tally-row dt { font-size: 14px; color: var(--on-dark-2); }
.tally-row dd { margin-top: 8px; font-size: 15px; color: var(--dark-mute); white-space: nowrap; }
.tally-row dd b { font: 500 34px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--on-dark); margin-right: 4px; }
.tally-row .r-hold dd b { color: var(--c-hold); }
.tally-row .r-buy dd b { color: var(--c-buy); }
.tally-note { margin-top: 20px; font-size: 14px; color: var(--dark-mute); }
@media (max-width: 700px) {
  .tally { margin-top: 48px; }
  .tally-row { grid-template-columns: 1fr; }
  .tally-row > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-left: 0; border-top: 1px solid var(--dark-line); }
  .tally-row > div:first-child { border-top: 0; }
  .tally-row dd { margin-top: 0; }
  .tally-row dd b { font-size: 24px; }
}

/* policy builder */
.policy { padding-top: 128px; }
.head p { margin-top: 16px; font-size: 18px; color: var(--body); max-width: 36em; }
.builder { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; margin-top: 52px; align-items: start; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.presets button { font: 500 14px/1 var(--sans); padding: 10px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--body); cursor: pointer; }
.presets button { transition: background-color .12s ease-out, border-color .12s ease-out, color .12s ease-out, transform .12s ease-out; }
.presets button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .presets button:hover { border-color: var(--ink); color: var(--ink); } .presets button.on:hover { color: var(--on-ink); } }
.presets button.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.slider, .keep { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.slider span, .keep span { color: var(--body); }
.slider b, .keep b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; }
.keep { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.keep + .slider { border-top: 0; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 0; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 0; }

.card { position: sticky; top: 92px; background: var(--panel); border-radius: 12px; padding: 36px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-name { display: block; font: var(--display-strong) calc(26px * var(--display-scale))/1 var(--display); letter-spacing: calc(-.02em + var(--display-track)); }
.card-top div span { display: block; margin-top: 6px; font-size: 14px; color: var(--mute); }
.lock { font-size: 13px; font-weight: 500; padding: 5px 9px; border-radius: 4px; background: var(--ink); color: var(--on-ink); white-space: nowrap; }

.lines { margin-top: 12px; }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line > b { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.line strong { display: block; font-weight: 600; font-size: 17px; }
.line p { margin-top: 3px; color: var(--body); }
.line.zero { opacity: .45; }

/* lists */
.rows { margin-top: 36px; border-bottom: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows dt { font-size: calc(19px * var(--display-scale)); font-weight: var(--display-weight); letter-spacing: calc(-.01em + var(--display-track)); }
.rows dd { color: var(--body); max-width: 34em; }

/* The footer is the ground the closing scene stands on: a shade lighter than the night above it. */
.foot { background: var(--dark-2); color: var(--on-dark); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 52px; }
.foot p { margin-top: 12px; font-size: 14px; color: var(--dark-mute); max-width: 44em; }
.foot nav { display: flex; gap: 26px; }
.foot nav a { color: var(--on-dark-2); }
.foot nav a:hover { color: var(--on-dark); }
.foot a:focus-visible { outline-color: var(--on-dark); }

@media (max-width: 900px) {
  .proto, .builder { grid-template-columns: 1fr; }
  .proto { row-gap: 40px; }
  .coin { padding: 40px 0 88px; }
  .builder { gap: 36px; margin-top: 36px; }
  .card { position: static; }
  .policy { padding-top: 84px; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .bar-in { gap: 0; justify-content: space-between; }
  .bar nav { display: none; }
  .lede { font-size: 17px; }
  .proto-proof { padding: 24px 20px; border-radius: 10px; }
  .proto-name b { font-size: 32px; }
  .card { padding: 24px 20px; }
  .line { grid-template-columns: 78px 1fr; gap: 14px; }
  .line > b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- interactive charts ---------- */
.grow { margin-top: 22px; position: relative; }
.g-read { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.g-big b { display: block; font-size: clamp(52px, 6.4vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: .9; color: var(--c-hold); font-variant-numeric: tabular-nums; }
.g-big span { display: block; margin-top: 10px; font-size: 14px; color: var(--dark-mute); }
.g-day { text-align: right; }
.g-day span { display: block; font-size: 13px; color: var(--dark-mute); }
.g-day b { display: block; margin-top: 4px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.grow svg { display: block; width: 100%; height: auto; margin-top: 8px; cursor: grab; touch-action: pan-y; overflow: visible; }
.grow svg:active { cursor: grabbing; }
.g-grid { stroke: var(--dark-line); stroke-width: 1; }
.g-lv { font: 400 12px var(--sans); fill: var(--dark-dim); font-variant-numeric: tabular-nums; }
.g-ghost { fill: none; stroke: var(--dark-edge-2); stroke-width: 2; stroke-dasharray: 3 6; }
.g-area { fill: color-mix(in srgb, var(--c-hold) 8%, transparent); }
.g-line { fill: none; stroke: var(--c-hold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.g-guide { stroke: var(--c-hold); stroke-width: 1; opacity: .35; }
.g-dot { fill: var(--c-hold); stroke: var(--dark-2); stroke-width: 3; }
.g-ring { fill: none; stroke: var(--c-hold); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: gpulse 1.8s ease-out infinite; }
.grow.used .g-ring { animation: none; opacity: .35; }
@keyframes gpulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.g-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--dark-mute); }
/* the bag that warms up as the hold time grows */
.grow .g-bag { flex: none; width: 76px; text-align: center; align-self: center; --w: 0; --sh: 0; --st: 0; }
.grow .g-bag svg { display: block; width: 100%; height: auto; margin: 0; cursor: default; overflow: visible; }
.g-bag span { display: block; margin-top: 4px; font-size: 12px; color: var(--dark-mute); white-space: nowrap; }
.gb-bag { fill: #a8bff0; }
.gb-hat { fill: var(--c-hold); }
.gb-trim { fill: var(--on-dark); }
.gb-scarf { fill: var(--c-buy); }
.gb-eye { fill: var(--dark); }
.gb-cheeks { fill: color-mix(in srgb, var(--volt-dark) 62%, #fff); opacity: var(--w); }
.gb-mouth { fill: none; stroke: var(--dark); stroke-width: 1.3; stroke-linecap: round; }
.gb-steam { fill: none; stroke: var(--on-dark); stroke-width: 1.6; stroke-linecap: round; opacity: var(--st); }
@media (prefers-reduced-motion: no-preference) {
  .gb-body { animation: gb-shiver .11s linear infinite alternate; }
  .gb-steam path { animation: gb-rise 2.2s linear infinite; }
  .gb-steam path + path { animation-delay: 1.1s; }
}
@keyframes gb-shiver { from { transform: translateX(calc(var(--sh) * -1px)); } to { transform: translateX(calc(var(--sh) * 1px)); } }
@keyframes gb-rise { 0% { transform: translateY(3px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-5px); opacity: 0; } }
/* one round, worked out for the visitor's own bag */
.g-calc { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.g-calc-h { font-family: var(--display); font-size: calc(18px * var(--display-scale)); font-weight: var(--display-weight); letter-spacing: calc(-.02em + var(--display-track)); }
.g-calc-in { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; font-size: 14px; color: var(--on-dark-soft); }
.g-calc-in input { width: 76px; margin: 0 4px; padding: 7px 8px; border: 1px solid var(--dark-edge); border-radius: 6px; background: var(--dark); color: var(--on-dark); font: 500 14px/1 var(--mono); text-align: right; }
.g-calc-in input:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.g-calc-out { margin-top: 16px; font-size: 17px; color: var(--on-dark-soft); }
.g-calc-out b { color: var(--c-hold); font-weight: 600; font-variant-numeric: tabular-nums; }
.g-calc-err { margin-top: 16px; font-size: 14px; color: var(--volt-dark-press); }
.g-calc-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--dark-mute); }
.g-range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.g-range:focus-visible ~ .g-split { outline: 2px solid var(--on-dark); outline-offset: 4px; }
.g-split { display: flex; gap: 3px; height: 16px; margin-top: 26px; }
.g-split i { display: block; height: 100%; border-radius: 2px; }
.g-split [data-you] { background: var(--c-hold); }
.g-split [data-new] { background: var(--dark-dim); }
.g-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--on-dark-soft); }
.g-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.g-legend span:first-child b { color: var(--c-hold); }
.g-legend span:last-child { text-align: right; color: var(--dark-mute); }

/* policy card becomes the live fee-flow chart */
.card { background: var(--dark); color: var(--on-dark); padding: 32px; }
.card-top div span { color: var(--dark-mute); }
.lock { background: none; color: var(--on-dark-2); box-shadow: inset 0 0 0 1px var(--dark-edge); }
.flow-src { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--on-dark-2); }
.flow-src i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark); flex: none; }
.flow { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; margin-top: 14px; }
.flow-art { position: relative; min-height: 396px; }
.flow-art svg, .flow-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lines { margin: 0; display: grid; grid-template-rows: 1fr 1fr 1fr; }
.line { grid-template-columns: 1fr; gap: 2px; align-content: center; padding: 0 0 0 20px; border: 0; border-left: 1px solid var(--dark-line); transition: opacity .15s; }
.line:last-child { padding-bottom: 0; }
.line > b { font-size: 44px; color: var(--on-dark); }
.line[data-k="0"] > b { color: var(--c-hold); }
.line[data-k="1"] > b { color: var(--c-buy); }
.line[data-k="2"] > b { color: var(--c-creator); }
.line strong { font-size: 15px; margin-top: 6px; }
.line p { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--dark-mute); }
.line.zero { opacity: .35; }
.lines[data-focus="0"] .line:not([data-k="0"]), .lines[data-focus="1"] .line:not([data-k="1"]), .lines[data-focus="2"] .line:not([data-k="2"]) { opacity: .35; }

@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  .flow { grid-template-columns: 30% 1fr; }
  .line { padding-left: 14px; }
  .line > b { font-size: 34px; }
  .g-legend { font-size: 13px; }
}

/* The closing scene: night again, with the mascot by its fire on the ground the footer stands on. */
.soon { margin-top: 136px; padding-top: 128px; background: var(--dark); color: var(--on-dark); overflow-x: clip; }
.soon-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
.soon-copy { padding-bottom: 104px; }
.soon h2 { font-size: calc(clamp(44px, 8vw, 112px) * var(--display-scale)); line-height: calc(.95 + var(--display-lh)); letter-spacing: calc(-.042em + var(--display-track)); max-width: none; }
/* its logs rest on the footer's top edge, so it overlaps the footer by a twentieth of its width */
.mascot.soon-mascot { --mw: clamp(240px, 27vw, 380px); width: var(--mw); margin: 0 12px calc(var(--mw) * -.05) 0; position: relative; z-index: 1; }
.soon-mascot:not(.is-alive) { visibility: hidden; }
@media (max-width: 900px) {
  .soon { margin-top: 88px; padding-top: 84px; }
  .soon-in { grid-template-columns: minmax(0, 1fr); }
  .soon-copy { padding-bottom: 44px; }
  .mascot.soon-mascot { --mw: min(74vw, 300px); justify-self: center; margin-right: 0; }
}

.mark { display: inline-flex; align-items: center; gap: 9px; }
.mark svg { width: 30px; height: 30px; flex: none; }

/* Inside the dark panels the button colour is the lighter variant, with dark text on it. */
.card, .soon, .foot { --volt: var(--volt-dark); --on-volt: var(--on-volt-dark); --volt-press: var(--volt-dark-press); }

/* ---------- terms link and page ---------- */
.legal { padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--dark-edge-2); font-size: 13px; }
.legal a { color: var(--dark-mute); text-underline-offset: 4px; }
.legal a:hover { color: var(--on-dark); }
.foot-in { padding-bottom: 36px; }

.doc { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.doc h1 { font-size: calc(clamp(34px, 5vw, 52px) * var(--display-scale)); }
.doc-date { margin-top: 12px; font-size: 14px; color: var(--mute); }
.doc-lead { margin-top: 26px; font-size: 18px; color: var(--body); }
.doc h2 { margin-top: 44px; font-size: calc(21px * var(--display-scale)); font-weight: 600; letter-spacing: calc(-.01em + var(--display-track)); max-width: none; }
.doc p, .doc li { color: var(--body); }
.doc h2 + p, .doc h2 + ul { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc-back { margin-top: 52px; }

/* ---------- contract address and its copy button ---------- */
[data-ca] { font: 400 13px/1.4 var(--mono); color: var(--mute); word-break: break-all; }
[data-ca].is-set { color: inherit; font-weight: 500; }

[data-copy] { font: 500 13px/1 var(--sans); padding: 8px 12px; border-radius: 6px; border: 0; background: var(--volt); color: var(--on-volt); cursor: pointer; transition: background-color .15s ease-out, transform .12s ease-out; }
[data-copy]:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { [data-copy]:hover { background: var(--volt-press); } }

/* ---------- logo: a coin tucked under a blanket ---------- */
.lg-eye { fill: var(--ink); }
.lg-bag { fill: var(--volt); }
.lg-hat { fill: var(--c-hold); }
.lg-scarf { fill: var(--c-buy); }
.lg-trim { fill: currentColor; }
.mark { letter-spacing: calc(-.03em + var(--display-track)); }

/* ---------- opening film ---------- */
/* The first screen is a dark stage that stays put while the page scrolls.
   film.js turns the scroll position into the story; these rules only lay it out.
   Without JavaScript it reads as the headline and a short list of captions.
   With reduced motion it becomes a column of still frames (.is-still). */
.film {
  --volt: var(--volt-dark); --on-volt: var(--on-volt-dark); --volt-press: var(--volt-dark-press);
  --film-len: 660vh;        /* how much scrolling the story takes: about a screen per part, plus holds */
  background: var(--dark); color: var(--on-dark);
}
.film ::selection { background: var(--volt-dark); color: var(--dark); }
.film a:focus-visible, .film button:focus-visible { outline-color: var(--on-dark); }
.film-title { padding-top: 96px; padding-bottom: 56px; }
.film h1 { font-size: calc(clamp(38px, 5vw, 66px) * var(--display-scale)); max-width: calc(10em * var(--display-measure)); text-wrap: balance; }
.film .lede { max-width: 33em; }
.film .lede { color: var(--on-dark-2); }
.film-body { padding-bottom: 72px; }
.film-caps { display: grid; gap: 28px; }
.cap-h { font-size: calc(clamp(24px, 2.6vw, 36px) * var(--display-scale)); font-weight: var(--display-weight); line-height: calc(1.1 + var(--display-lh)); letter-spacing: calc(-.03em + var(--display-track)); text-wrap: balance; max-width: calc(15em * var(--display-measure)); }
.cap-s { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--on-dark-2); max-width: 30em; text-wrap: pretty; }
.film-view, .film-chapters, .film-rew { display: none; }

/* playing: tall section, pinned stage */
.film.is-play { height: calc(100svh - var(--bar) + var(--film-len)); }
.is-play .film-stage {
  position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); min-height: 300px; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
}
.is-play .film-title { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding-top: 0; padding-bottom: 64px; }
.is-play .film-title.gone { visibility: hidden; }
.is-play .film-body {
  width: 100%; min-height: 0; padding-top: 24px; padding-bottom: 0;
  display: grid; grid-template-columns: minmax(280px, 5fr) 9fr; column-gap: 48px; align-items: center;
}
.is-play .film-caps { gap: 0; }
.is-play .film-caps li { grid-area: 1 / 1; opacity: 0; }   /* film.js sets opacity from the scroll position */
.is-play .film-view { display: block; position: relative; align-self: stretch; min-height: 0; }
/* soften the edges where the camera crops the scene */
.film-view svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px), linear-gradient(to bottom, transparent, #000 36px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 56px), linear-gradient(to bottom, transparent, #000 36px);
  mask-composite: intersect;
}
.is-play .film-rew {
  display: block; position: absolute; z-index: 1; top: 10px; left: 0; opacity: 0;
  padding: 6px 10px; border-radius: 4px; background: var(--dark-2); border: 1px solid var(--dark-line);
  font-size: 13px; font-weight: 500;
}
.is-play .film-chapters { display: flex; gap: 8px; width: 100%; padding-top: 14px; padding-bottom: 18px; }
.film-chapters button { flex: 1; min-width: 0; padding: 10px 0 4px; border: 0; background: none; color: var(--dark-mute); font: 500 13px/1.2 var(--sans); text-align: left; cursor: pointer; }
.film-chapters i { display: block; height: 2px; border-radius: 1px; background: var(--dark-line); overflow: hidden; }
.film-chapters b { display: block; height: 100%; background: var(--on-dark); transform: scaleX(var(--k, 0)); transform-origin: left; }
.film-chapters span { display: block; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-chapters button.on { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .film-chapters button:hover { color: var(--on-dark); } }

/* still frames for reduced motion */
.is-still .film-caps { gap: 56px; }
.is-still .film-caps li { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.cap-frame { height: 360px; border-radius: 12px; background: var(--dark-2); }
.cap-frame svg { display: block; height: 100%; width: auto; max-width: 100%; margin: 0 auto; }

/* the header turns dark while a dark part of the page is under it (main.js decides) */
.bar.ready { transition: background-color .3s ease-out, border-color .3s ease-out, color .3s ease-out; }
.bar.on-dark { background: var(--dark); border-bottom-color: var(--dark-line); color: var(--on-dark); --volt: var(--volt-dark); --on-volt: var(--on-volt-dark); --volt-press: var(--volt-dark-press); }
.bar.on-dark nav a { color: var(--on-dark-2); }
.bar.on-dark nav a:hover { color: var(--on-dark); }
.bar.on-dark a:focus-visible { outline-color: var(--on-dark); }

@media (max-width: 899px) and (max-aspect-ratio: 13/10), (max-aspect-ratio: 4/5) {
  .is-play .film-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); row-gap: 8px; align-items: start; padding-top: 22px; }
  .film-view svg {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent), linear-gradient(to bottom, transparent, #000 24px);
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent), linear-gradient(to bottom, transparent, #000 24px);
  }
}
@media (max-width: 899px) {
  .is-still .film-caps li { grid-template-columns: 1fr; gap: 18px; }
  .cap-frame { height: 300px; }
}
@media (max-width: 560px) {
  .film-title { padding-top: 56px; }
  .is-play .film-title { padding-bottom: 40px; }
  .cap-s { margin-top: 8px; font-size: 15px; }
  .film-chapters span { display: none; }
  .film-chapters button { padding: 12px 0; }
}

/* the scene itself (SVG, world units) */
.fw-route { fill: none; stroke: var(--dark-edge); stroke-width: 2; stroke-linecap: round; }
.fw-node { fill: var(--dark); stroke: var(--c-creator); stroke-width: 2; }
.fw-box { fill: var(--dark-2); stroke: var(--dark-edge-2); stroke-width: 1.5; }
.fw-card { fill: var(--dark-2); stroke: var(--dark-edge); stroke-width: 1.5; }
.fw-trade { font: 500 25px var(--sans); fill: var(--on-dark); text-anchor: middle; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fw-name { font: 500 23px var(--sans); fill: var(--on-dark); text-anchor: middle; }
.fw-pct { font: 600 22px var(--sans); text-anchor: middle; font-variant-numeric: tabular-nums; }
.fw-label { font: 400 18px var(--sans); fill: var(--on-dark-2); }
.fw-small { font: 400 16px var(--sans); fill: var(--dark-mute); }
.fw-strong { font-weight: 600; fill: var(--on-dark); }
.fw-row { font: 400 18px var(--sans); fill: var(--on-dark-2); }
.fw-rowpct { font: 600 18px var(--sans); fill: var(--on-dark); font-variant-numeric: tabular-nums; }
.fw-track { fill: var(--dark-deep); }
.fw-fee { fill: var(--on-dark); }
.fw-buy, .fw-t-buy { fill: var(--c-buy); }
.fw-hold, .fw-t-hold { fill: var(--c-hold); }
.fw-dev, .fw-t-dev { fill: var(--c-creator); }
.fw-axis { stroke: var(--dark-line); stroke-width: 1.5; }
.fw-price { fill: none; stroke: var(--dark-mute); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fw-trig { stroke: var(--dark-dim); stroke-width: 1.5; stroke-dasharray: 6 6; }
.fw-hi { fill: var(--dark-mute); }
.fw-mark { fill: var(--c-buy); stroke: var(--dark); stroke-width: 3; }
.fw-hat { fill: var(--c-hold); }
.fw-scarf { fill: var(--c-buy); }
.fw-trim { fill: var(--on-dark); }
.fw-eye { fill: var(--dark); }

/* ---------- launch switch ---------- */
/* site.js shows and hides things with the hidden attribute; make sure display rules never undo it */
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- browser surfaces: selection and focus follow the palette ---------- */
::selection { background: color-mix(in srgb, var(--volt) 34%, var(--bg)); color: var(--ink); }
.coin ::selection, .card ::selection, .soon ::selection, .foot ::selection { background: var(--volt-dark); color: var(--dark); }
.coin a:focus-visible, .coin button:focus-visible, .card a:focus-visible, .card button:focus-visible, .soon a:focus-visible { outline-color: var(--on-dark); }
/* the page's own scrollbar follows the part of the page under the header */
html { scrollbar-color: var(--soft) var(--bg); }
html.on-dark { scrollbar-color: var(--dark-edge) var(--dark); }
/* number boxes: no browser arrows */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- buttons ---------- */
.btn.ghost { background: none; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: none; box-shadow: inset 0 0 0 1px currentColor; } }
input[type=range]::-webkit-slider-thumb { transition: transform .12s ease-out; }
input[type=range]::-moz-range-thumb { transition: transform .12s ease-out; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]:active::-moz-range-thumb { transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) {
  .btn:active, [data-copy]:active, .presets button:active { transform: none; }
  input[type=range]:active::-webkit-slider-thumb, input[type=range]:active::-moz-range-thumb { transform: none; }
}

/* ---------- first screen: headline beside the mascot ---------- */
.film-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 56px; }
.is-play .film-title { display: grid; align-content: center; }
.hero-ca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: 14px; color: var(--dark-mute); }
.hero-ca code { font: 500 14px/1 var(--mono); color: var(--on-dark); }

/* The mascot: a bag bundled up in a beanie and scarf, by its fire. Same shapes as the logo.
   The hat is the holders' yellow and the scarf the buybacks' blue. mascot.js brings it to
   life (the fire, the shiver, the eyes); without it the markup shows it warm in a still fire. */
.mascot-slot { width: clamp(260px, 34vw, 520px); aspect-ratio: 80 / 67; }
.mascot { display: block; width: 100%; height: auto; overflow: visible; }
.mascot.is-alive { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.m-bag { fill: var(--volt-dark); }
.m-hat { fill: var(--c-hold); }
.m-rib { fill: none; stroke: color-mix(in srgb, var(--c-hold) 72%, var(--dark)); stroke-width: .9; stroke-linecap: round; }
.m-trim { fill: var(--on-dark); }
.m-scarf { fill: var(--c-buy); }
.m-fringe { fill: none; stroke: color-mix(in srgb, var(--c-buy) 62%, var(--dark)); stroke-width: .8; stroke-linecap: round; }
.m-cheek { fill: color-mix(in srgb, var(--volt-dark) 62%, #fff); }
.m-smile { fill: none; stroke: var(--dark); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.m-eye, .m-eyes { fill: var(--dark); }
.m-shine { fill: #fff; }
/* the fire: three flat layers, hottest in the middle */
.m-f1 { fill: #ff4a1c; }
.m-f2 { fill: #ff9d2e; }
.m-f3 { fill: #ffdc6b; }
.m-log { fill: #6b3f26; }
.m-log.l2 { fill: #814c2d; }
.m-spark { fill: #ffd76a; }
.m-fee { fill: var(--on-dark); }
.m-snow { fill: #d5dff8; }
.m-lit { fill: #ffb866; }
.mg-in { stop-color: #ff8a3d; stop-opacity: .3; }
.mg-out { stop-color: #ff8a3d; stop-opacity: 0; }

/* In the story the mascot rides on the stage: film.js moves it from its place beside the
   headline to its seat above the captions. Those two places are empty boxes of the right size. */
.mascot.on-stage { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 0 0; will-change: transform; }
.mascot.on-stage.gone { visibility: hidden; }
.narr-slot { display: none; }
.is-play .film-side { min-width: 0; }
.is-play .narr-slot { display: block; width: 168px; aspect-ratio: 80 / 67; margin: 0 0 26px -2px; }

/* Before the script takes over the bag is cold and the logs unlit. If the script never
   arrives it warms up anyway after a moment; with reduced motion it is simply shown warm. */
.mascot:not(.is-alive) .m-bag { fill: #a8bff0; }
.mascot:not(.is-alive) .m-sfire, .mascot:not(.is-alive) .m-warmth { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mascot:not(.is-alive) .m-bag { animation: m-warm 1.2s ease-out 3s both; }
  .mascot:not(.is-alive) .m-sfire, .mascot:not(.is-alive) .m-warmth { animation: m-in .6s ease-out 3s both; }
  .mascot:not(.is-alive) .m-flat { animation: m-out .3s ease-in 3s both; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot:not(.is-alive) .m-bag { fill: var(--volt-dark); }
  .mascot:not(.is-alive) .m-sfire, .mascot:not(.is-alive) .m-warmth { opacity: 1; }
  .mascot:not(.is-alive) .m-flat { opacity: 0; }
}
@keyframes m-warm { from { fill: #a8bff0; } to { fill: var(--volt-dark); } }
@keyframes m-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-out { from { opacity: 1; } to { opacity: 0; } }

/* The only idle motion on the page is the mascot, which mascot.js draws. It is one still frame
   for reduced motion. */

/* ---------- story: caption button, chapter cuts, skip ---------- */
.cap-act { margin-top: 18px; }
.is-play .film-caps li:not(.on) { pointer-events: none; }
.is-play .film-body { transition: opacity .22s ease-out; }
.film-stage.cut .film-body { opacity: 0; transition-duration: .12s; }
.film-stage.cut .film-title { opacity: 0 !important; transition: opacity .12s ease-out; }
.is-play .film-chapters { align-items: flex-end; }
.film-skip { flex: none; margin-left: 16px; padding: 10px 0 4px; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--dark-mute); text-underline-offset: 4px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .film-skip:hover { color: var(--on-dark); } }

/* ---------- the $WARM panel ---------- */
.proto-name { margin-top: 0; flex-wrap: wrap; gap: 12px 14px; max-width: none; font-size: inherit; letter-spacing: 0; line-height: 1; }
.proto-name svg { flex: none; width: 40px; height: 40px; }
.ca-box { padding-top: 18px; border-top: 1px solid var(--dark-line); }
.ca-label { font-size: 13px; color: var(--dark-mute); }
.ca-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.ca-line [data-ca] { font: 400 15px/1.4 var(--sans); color: var(--on-dark-2); }
.ca-line [data-ca].is-set { font: 500 14px/1.4 var(--mono); color: var(--on-dark); word-break: break-all; }
.ca-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--dark-mute); max-width: 32em; }
.ca-box .btn { margin-top: 18px; }

/* ---------- before you buy ---------- */
.ask { padding-top: 128px; }
.rows a { text-underline-offset: 3px; }

/* ---------- launchpad status and the closing section ---------- */
.head .status { margin-top: 14px; font-size: 14px; color: var(--mute); }
.soon-sub { margin-top: 22px; font-size: 19px; line-height: 1.45; color: var(--on-dark-2); max-width: 32em; }
.soon-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.foot nav { flex-wrap: wrap; row-gap: 10px; }

@media (max-width: 899px) and (max-aspect-ratio: 13/10), (max-aspect-ratio: 4/5) {
  .film-title { grid-template-columns: minmax(0, 1fr); }
  .mascot-slot { order: -1; width: min(40vw, 170px); margin: 0 0 18px -8px; }
  /* in the story the mascot sits beside the first lines of each caption */
  .is-play .film-side { position: relative; }
  .is-play .narr-slot { position: absolute; left: -6px; top: -5px; width: 86px; margin: 0; }
  .is-play .cap-h { display: flex; align-items: center; min-height: 64px; padding-left: 90px; }
}
@media (max-width: 899px) {
  .ask { padding-top: 84px; }
}
@media (max-width: 560px) {
  .is-play .film-chapters { align-items: center; }
  .film-skip { margin-left: 10px; padding: 12px 0; line-height: 1; }
  .soon-sub { font-size: 17px; }
}

/* ---------- short screens ---------- */
/* The first screen has to fit: the headline, the paragraph and the button come first.
   The mascot goes where it would stack above the headline (small phones), then the
   paragraph on a phone turned sideways. */
@media (max-height: 640px) and (max-width: 899px) and (max-aspect-ratio: 13/10) {
  .is-play .mascot-slot { display: none; }
}
@media (max-height: 600px) and (min-aspect-ratio: 13/10) {
  .is-play .narr-slot { width: 104px; margin-bottom: 12px; }
}
@media (max-height: 480px) {
  .is-play .film-title { padding-bottom: 44px; }
  .is-play .film-title .lede { display: none; }
  .is-play .film-title .cta { margin-top: 22px; }
  .mascot-slot { width: clamp(120px, 26vh, 220px); }
  .cap-s { font-size: 15px; margin-top: 8px; }
}

/* The chapter bar under the story is switched off: the scroll itself is the control. */
.is-play .film-chapters { display: none; }
.g-day b { white-space: nowrap; }
.g-two { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--dark-mute); }
.g-two b { color: var(--on-dark-soft); font-weight: 600; }
