/* Tokenization timeline (home page). Series colours come from tokens.css (--fc-*). */

.tokenization { padding-top: clamp(28px, 3cqw, 48px); background: var(--bg); border-top: 1px solid rgba(var(--ink-rgb), .07); overflow: hidden; --h2-size: clamp(32px, 4.6cqw, 66px); --head-w: 760px; }
.tokenization > .container { position: relative; z-index: 1; }

/* forecast series: each element picks its colour from --c */
.tok-c--bcg { --c: var(--fc-bcg); }
.tok-c--citi { --c: var(--fc-citi); }
.tok-c--mck { --c: var(--fc-mck); }

/* stats row */
.tok-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(16px, 3cqw, 40px); border-top: 1px solid rgba(var(--ink-rgb), .12); padding-top: clamp(22px, 3cqw, 34px); }
.tok-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tok-stat__val { font-size: clamp(30px, 3.4cqw, 42px); font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tok-stat__label { font-size: 14px; color: var(--ink-3); letter-spacing: .06em; min-height: 2.9em; max-width: 34ch; }
.tok-stat__label--short { min-height: 0; }
.tok-tag {
  align-self: flex-start; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  color: var(--white); background: var(--accent2); padding: 6px 8px; opacity: 0; transition: opacity .2s;
}
.tok-tag.on { opacity: 1; }

/* share of each market that is tokenized */
.tok-classes-wrap { display: flex; flex-direction: column; gap: 16px; }
.tok-classes-title { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.tok-classes { --cell-min: 200px; --cell-pad: clamp(18px, 2cqw, 26px); --cell-gap: 8px; }
.tok-class__name { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.tok-class__val { font-size: clamp(24px, 2.4cqw, 32px); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tok-class__bar { height: 3px; background: rgba(var(--ink-rgb), .1); }
.tok-class__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent2); min-width: 1px; }

/* chart */
.tok-chart-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tok-chart { margin: 0; width: 100%; background: var(--bg); border: 1px solid rgba(var(--ink-rgb), .1); padding: 6px 4px 2px; }
.tok-chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tok-chart svg.drag { cursor: grabbing; }
.tok-notes { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.6; max-width: 100ch; text-wrap: pretty; }

.tok-ax { font: 400 11px var(--font-sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.tok-cap { font: 400 10px var(--font-sans); fill: var(--ink-3); letter-spacing: .16em; }
.tok-hint { font: 400 14px var(--font-sans); fill: var(--ink-2); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.tok-lg { font: 500 13px var(--font-sans); fill: var(--c); }
.tok-lg--lg { font-size: 22px; }
.tok-chip { font: 500 18px var(--font-sans); fill: var(--ink); }
.tok-chip--sm { font-size: 13px; }
.tok-pill-text { font: 500 12px var(--font-sans); fill: var(--bg); font-variant-numeric: tabular-nums; }
.tok-chev { font: 500 14px var(--font-sans); fill: var(--bg); opacity: .6; }
.tok-hit { fill: transparent; touch-action: none; cursor: grab; }
.tok-knob { outline: none; cursor: grab; touch-action: none; }
.tok-knob .tok-pill { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
.tok-knob:focus-visible .tok-pill { stroke: var(--accent2); stroke-width: 3; }
.tok-pulse { transform-box: fill-box; transform-origin: center; animation: tok-pulse 2.4s ease-out infinite; }
@keyframes tok-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tok-pulse { animation: none; opacity: .35; }
  .tok-tag { transition: none; }
}

/* ---------- phones: smaller type; the live readout sits directly above the chart ---------- */
@media (max-width: 560px) {
  .tokenization { --gap: 28px; }
  .tokenization > .container > .section-head { order: 0; }
  .tokenization > .container > .tok-stats { order: 1; }
  .tokenization > .container > .tok-chart-wrap { order: 2; }
  .tokenization > .container > .tok-classes-wrap { order: 3; }
  .tok-stats { grid-template-columns: 1fr 1fr; gap: 16px 12px; padding-top: 18px; }
  .tok-stat { gap: 6px; }
  .tok-stat__val { font-size: 24px; }
  .tok-stat__label { font-size: 12px; letter-spacing: .04em; min-height: 0; }
  .tok-class__val { font-size: 20px; }
  .tok-notes { font-size: 13px; }
}
