:root {
  --paper: #f4f4f0;
  --ink: #110e08;
  --buy: #ccff00;
  --positive: #5a7900;
  --negative: #d2392e;
  --muted: #686861;
  --rule-soft: #c7c7bf;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--mono); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.growth-header {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--ink);
}
.growth-brand { justify-self: start; font-family: var(--sans); font-size: 15px; font-weight: 900; }
.growth-chain { color: var(--muted); font-size: 9px; }
.growth-header nav { justify-self: end; display: flex; align-items: center; gap: 22px; }
.growth-header nav a { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.growth-header nav a:hover, .growth-header nav a:focus-visible, .growth-header nav [aria-current="page"] { color: var(--ink); }

main { width: min(100%, 1440px); margin: 0 auto; padding: 0 32px 48px; }
.growth-intro {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, .76fr);
  align-items: end;
  gap: 64px;
  padding: 86px 0 48px;
  border-bottom: 1px solid var(--ink);
}
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.growth-intro h1, .record-heading h2, .method-band h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .82;
  text-transform: uppercase;
}
.growth-intro h1 { font-size: 112px; }
.intro-copy { padding-bottom: 4px; }
.intro-copy > p:first-child {
  max-width: 18ch;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.06;
}
.intro-copy > p:nth-child(2) { max-width: 48ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.record-state {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 9px;
  text-transform: uppercase;
}
.record-state i { width: 8px; height: 8px; display: block; border: 1px solid var(--ink); border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 3px rgb(204 255 0 / 28%); }
.record-state.is-error i { background: var(--negative); box-shadow: none; }

.metric-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.metric-cell {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 24px 22px;
  border-right: 1px solid var(--rule-soft);
}
.metric-cell:first-child { border-left: 1px solid var(--rule-soft); }
.metric-cell > span, .metric-cell small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.4; text-transform: uppercase; }
.metric-cell > span b { color: var(--ink); }
.metric-cell strong { overflow-wrap: anywhere; font-family: var(--sans); font-size: 58px; font-weight: 900; line-height: .9; }
.metric-holders { background: var(--buy); }
.metric-holders > span, .metric-holders small { color: var(--ink); }
.is-positive { color: var(--positive) !important; }
.is-negative { color: var(--negative) !important; }

.growth-record { padding: 72px 0; border-bottom: 1px solid var(--ink); }
.record-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.record-heading h2, .method-band h2 { font-size: 62px; }
.range-control, .metric-control { display: flex; align-items: stretch; }
.range-control { border: 1px solid var(--ink); }
.range-control button, .metric-control button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}
.range-control button { min-width: 72px; }
.range-control button:last-child, .metric-control button:last-child { border-right: 0; }
.range-control button[aria-pressed="true"], .metric-control button[aria-pressed="true"] { background: var(--buy); color: var(--ink); font-weight: 700; }
.range-control button:focus-visible, .metric-control button:focus-visible, a:focus-visible { outline: 3px solid var(--buy); outline-offset: 3px; }

.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; border: 1px solid var(--ink); }
.chart-panel { min-width: 0; background: var(--ink); color: var(--paper); }
.chart-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: 18px; border-bottom: 1px solid #4c4b46; }
.metric-control { align-self: stretch; }
.metric-control button { min-width: 132px; border-color: #4c4b46; color: #b7b7b0; }
.chart-toolbar > span { color: #a4a49d; font-size: 8px; }
.chart-stage { position: relative; height: 390px; overflow: hidden; }
#trendChart { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.chart-grid-line { stroke: #34332f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #8f8f88; font-family: var(--mono); font-size: 16px; }
.chart-area { fill: rgb(204 255 0 / 12%); }
.chart-line { fill: none; stroke: var(--buy); stroke-width: 4; vector-effect: non-scaling-stroke; }
.chart-point { fill: var(--ink); stroke: var(--buy); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-guide { stroke: var(--paper); stroke-width: 1; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; opacity: 0; }
.chart-guide.is-visible { opacity: .7; }
.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 138px;
  padding: 11px 12px;
  border: 1px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  pointer-events: none;
  font-size: 9px;
  line-height: 1.5;
}
.chart-tooltip strong { display: block; color: var(--buy); font-family: var(--sans); font-size: 24px; line-height: 1; }
.chart-footer {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-top: 1px solid #4c4b46;
  color: #a4a49d;
  font-size: 8px;
}
.chart-footer strong { color: var(--buy); font-size: 9px; text-align: center; }
.chart-footer span:last-child { text-align: right; }

.record-notes { display: grid; grid-template-rows: repeat(4, 1fr) auto; background: var(--paper); }
.record-notes > div { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--rule-soft); }
.record-notes span { color: var(--muted); font-size: 8px; }
.record-notes strong { font-family: var(--sans); font-size: 18px; line-height: 1.05; }
.record-notes > a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; background: var(--buy); font-size: 9px; font-weight: 700; }

.method-band { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr); gap: 64px; padding: 72px 0; border-bottom: 1px solid var(--ink); }
.method-band dl { margin: 0; border-top: 1px solid var(--ink); }
.method-band dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; padding: 19px 0; border-bottom: 1px solid var(--rule-soft); }
.method-band dt { font-size: 9px; font-weight: 700; }
.method-band dd { max-width: 68ch; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.growth-footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 8px; }
.growth-footer div { display: flex; align-items: center; gap: 24px; }
.growth-footer a:hover { color: var(--ink); }
.no-script { margin: 0; padding: 14px 32px; border-top: 1px solid var(--ink); background: var(--buy); font-size: 10px; text-align: center; }

@media (max-width: 980px) {
  .growth-intro { min-height: 420px; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; }
  .growth-intro h1 { font-size: 84px; }
  .metric-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell:nth-child(2) { border-right: 0; }
  .metric-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--rule-soft); }
  .record-grid { grid-template-columns: 1fr; }
  .record-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .record-notes > div { border-right: 1px solid var(--rule-soft); }
  .record-notes > a { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .growth-header { min-height: auto; grid-template-columns: 1fr auto; padding: 16px 18px 0; }
  .growth-chain { justify-self: end; }
  .growth-header nav { grid-column: 1 / -1; width: 100%; justify-self: stretch; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule-soft); }
  main { padding: 0 18px 32px; }
  .growth-intro { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 38px; padding: 58px 0 36px; }
  .growth-intro h1 { font-size: 62px; }
  .intro-copy > p:first-child { font-size: 24px; }
  .metric-board { grid-template-columns: 1fr; }
  .metric-cell, .metric-cell:first-child, .metric-cell:nth-child(2) { min-height: 142px; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
  .metric-cell strong { font-size: 48px; }
  .growth-record, .method-band { padding: 54px 0; }
  .record-heading { align-items: start; flex-direction: column; }
  .record-heading h2, .method-band h2 { font-size: 44px; }
  .range-control { width: 100%; }
  .range-control button { flex: 1; }
  .chart-toolbar { min-height: 92px; align-items: stretch; flex-direction: column; gap: 0; padding: 0; }
  .metric-control button { flex: 1; min-width: 0; }
  .chart-toolbar > span { min-height: 34px; display: flex; align-items: center; padding: 0 12px; border-top: 1px solid #4c4b46; }
  .chart-stage { height: 310px; }
  .chart-footer { grid-template-columns: 1fr 1fr; }
  .chart-footer strong { grid-column: 1 / -1; grid-row: 1; }
  .record-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-band { grid-template-columns: 1fr; gap: 36px; }
  .method-band dl > div { grid-template-columns: 1fr; gap: 10px; }
  .growth-footer { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
