/* MINER paper page --------------------------------------------------------- */

.miner-page {
  --miner-mint: #65d6c1;
  --miner-mint-soft: rgba(101, 214, 193, 0.16);
  --miner-gold: #f0aa5b;
  --miner-gold-soft: rgba(240, 170, 91, 0.16);
  background: #05070d;
}

.miner-page .light {
  --ink-3: #626b7d;
  --miner-mint: #198d7c;
  --miner-gold: #b46618;
}

.miner-page :where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--miner-mint);
  outline-offset: 3px;
}

.miner-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.miner-page main {
  position: relative;
  z-index: 1;
}

.miner-page button,
.miner-page input {
  font: inherit;
}

.miner-page button {
  color: inherit;
}

/* Navigation -------------------------------------------------------------- */

.miner-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #eef0f7;
  background: rgba(5, 7, 13, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

.miner-nav-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.miner-nav-home,
.miner-nav-links a {
  font-family: var(--mono);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.miner-nav-home {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}

.miner-nav-home span {
  margin-right: 0.25rem;
  color: var(--miner-mint);
}

.miner-nav-links {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 1.8rem);
}

.miner-nav-links a {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 500;
}

.miner-nav a:hover {
  color: var(--ink);
}

/* Hero -------------------------------------------------------------------- */

.miner-masthead {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: clamp(8rem, 14vh, 10rem) 0 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 79% 22%, rgba(101, 214, 193, 0.14), transparent 29rem),
    radial-gradient(circle at 70% 91%, rgba(240, 170, 91, 0.08), transparent 30rem),
    #05070d;
}

.miner-masthead::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101, 214, 193, 0.72), rgba(240, 170, 91, 0.6), transparent);
}

.miner-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(26rem, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.miner-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
}

.miner-hero-copy .eyebrow {
  margin-bottom: 1.25rem;
}

.miner-hero-copy .eyebrow b {
  color: var(--miner-mint);
  white-space: nowrap;
}

.miner-hero-copy h1 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(4.8rem, 10.5vw, 8.8rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.miner-hero-claim {
  max-width: 17ch;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.miner-hero-deck {
  max-width: 38rem;
  margin: 0 0 1.45rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.miner-hero-deck > b,
.miner-expansion b {
  color: var(--ink);
  font-weight: 650;
}

.miner-authors {
  max-width: 45rem;
  margin: 0 0 1.65rem;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.72;
}

.miner-authors b {
  color: var(--ink-2);
  font-weight: 600;
}

.miner-hero-links {
  gap: 0.55rem;
}

.miner-hero-links .chip {
  padding: 0.58rem 0.92rem;
}

.miner-hero-links .chip svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.miner-hero-links .miner-chip-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #070910;
}

.miner-hero-links .miner-chip-primary:hover {
  background: #fff;
  color: #05070d;
}

/* Hero illustration ------------------------------------------------------- */

.miner-hero-art {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(28rem, 43vw, 35.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 52%),
    rgba(8, 11, 20, 0.76);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.miner-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  -webkit-mask-image: linear-gradient(150deg, #000, transparent 80%);
  mask-image: linear-gradient(150deg, #000, transparent 80%);
  pointer-events: none;
}

.miner-art-top {
  position: absolute;
  inset: 1.2rem 1.3rem auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.miner-art-inputs {
  position: absolute;
  z-index: 2;
  inset: 4.6rem auto auto 1.4rem;
  width: 8.4rem;
  display: grid;
  gap: 1rem;
}

.miner-art-query,
.miner-art-page {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background: rgba(13, 18, 32, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.miner-art-query {
  padding: 0.8rem 0.85rem 0.9rem;
}

.miner-art-query span,
.miner-hero-output > span {
  display: block;
  margin-bottom: 0.38rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.miner-art-query strong {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1.28;
}

.miner-art-page {
  position: relative;
  height: 10.7rem;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0.24rem;
}

.miner-art-page i,
.miner-art-page b {
  display: block;
  border-radius: 1px;
  background: rgba(169, 177, 199, 0.2);
}

.miner-art-page i:nth-child(1) { grid-column: 1 / -1; grid-row: 1; background: rgba(101, 214, 193, 0.46); }
.miner-art-page i:nth-child(2) { grid-column: 1 / 5; grid-row: 2; }
.miner-art-page i:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
.miner-art-page i:nth-child(4) { grid-column: 1 / 4; grid-row: 4; }
.miner-art-page i:nth-child(5) { grid-column: 1 / -1; grid-row: 8; }
.miner-art-page b:nth-of-type(1) { grid-column: 1 / 4; grid-row: 5 / 8; background: rgba(240, 170, 91, 0.2); }
.miner-art-page b:nth-of-type(2) { grid-column: 4 / 7; grid-row: 5; }
.miner-art-page b:nth-of-type(3) { grid-column: 4 / 7; grid-row: 6 / 8; background: rgba(101, 214, 193, 0.11); }

.miner-hero-layers {
  position: absolute;
  z-index: 1;
  inset: 4.7rem 8.9rem 5.1rem 11.3rem;
  display: grid;
  align-content: center;
  gap: 0.44rem;
  perspective: 900px;
}

.miner-hero-layer {
  position: relative;
  height: 1.55rem;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: center;
  gap: 0.28rem;
  padding: 0.3rem 0.42rem;
  transform: translateX(var(--shift, 0)) rotateY(-7deg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.018);
}

.miner-hero-layer::after {
  content: attr(data-layer);
  position: absolute;
  left: calc(100% + 0.38rem);
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--ink-3);
}

.miner-hero-layer i {
  height: 0.34rem;
  border-radius: 1px;
  background: rgba(169, 177, 199, 0.12);
}

.miner-hero-layer i.is-signal {
  background: var(--miner-mint);
  box-shadow: 0 0 9px rgba(101, 214, 193, 0.48);
  animation: minerSignal 3.2s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.miner-hero-layer.is-late i.is-signal {
  background: var(--miner-gold);
  box-shadow: 0 0 9px rgba(240, 170, 91, 0.48);
}

.miner-hero-funnel {
  position: absolute;
  z-index: 2;
  right: 1.3rem;
  top: 7.8rem;
  display: grid;
  gap: 0.72rem;
}

.miner-hero-funnel span {
  display: grid;
  place-items: center;
  width: 5.9rem;
  height: 2.15rem;
  border: 1px solid rgba(101, 214, 193, 0.25);
  border-radius: 4px;
  background: rgba(101, 214, 193, 0.055);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.miner-hero-funnel span:nth-child(2) {
  border-color: rgba(240, 170, 91, 0.24);
  background: rgba(240, 170, 91, 0.05);
}

.miner-hero-output {
  position: absolute;
  z-index: 3;
  right: 1.3rem;
  bottom: 1.25rem;
  width: 12.5rem;
  padding: 0.9rem 1rem 0.82rem;
  border: 1px solid rgba(101, 214, 193, 0.36);
  border-radius: 5px;
  background: rgba(5, 7, 13, 0.9);
  box-shadow: 0 0 42px rgba(101, 214, 193, 0.1);
}

.miner-vector,
.miner-serving-vector {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.16rem;
}

.miner-vector i,
.miner-serving-vector i {
  height: 1.45rem;
  border-radius: 1px;
  background: color-mix(in srgb, var(--miner-mint) var(--level, 45%), rgba(169, 177, 199, 0.12));
}

.miner-vector i:nth-child(2n) { --level: 76%; }
.miner-vector i:nth-child(3n) { --level: 24%; }
.miner-vector i:nth-child(5n) { --level: 92%; background: var(--miner-gold); }

.miner-hero-output strong {
  display: block;
  margin-top: 0.42rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
}

@keyframes minerSignal {
  0%, 100% { opacity: 0.52; transform: scaleX(0.82); }
  50% { opacity: 1; transform: scaleX(1); }
}

.miner-proof-rail {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.miner-proof {
  min-height: 8.7rem;
  padding: 1.8rem clamp(1rem, 2.2vw, 1.8rem);
  border-left: 1px solid var(--line);
}

.miner-proof:last-child {
  border-right: 1px solid var(--line);
}

.miner-proof strong,
.miner-proof span {
  display: block;
}

.miner-proof strong {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.miner-proof span {
  max-width: 23ch;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Shared section language -------------------------------------------------- */

.miner-section {
  position: relative;
  padding-block: clamp(5.5rem, 10vw, 8.5rem);
  scroll-margin-top: 4.25rem;
}

.miner-page .section-label {
  font-size: 0.82rem;
}

.miner-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 0.7fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
}

.miner-section-head h2,
.miner-serving-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.miner-section-head > p {
  max-width: 37ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.02rem;
}

/* Results ----------------------------------------------------------------- */

.miner-results {
  background:
    radial-gradient(circle at 88% 6%, rgba(25, 141, 124, 0.08), transparent 28rem),
    radial-gradient(circle at 5% 70%, rgba(180, 102, 24, 0.045), transparent 25rem),
    var(--bg);
}

.miner-tradeoff-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(20, 24, 36, 0.075);
}

.miner-chart-head,
.miner-lab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line-soft);
}

.miner-chart-head h3,
.miner-lab-head h3 {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -0.03em;
}

.miner-chart-kicker {
  margin: 0;
  color: var(--miner-mint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.miner-tradeoff-controls,
.miner-backbone-switch {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.27rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
}

.miner-tradeoff-controls[hidden],
.miner-backbone-switch[hidden],
.miner-cutoff-control[hidden] {
  display: none;
}

.miner-tradeoff-controls button,
.miner-backbone-switch button {
  padding: 0.58rem 0.78rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.035em;
  transition: color 180ms ease, background 180ms ease;
}

.miner-tradeoff-controls button:hover,
.miner-backbone-switch button:hover {
  color: var(--ink);
}

.miner-tradeoff-controls button.is-active,
.miner-backbone-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

.miner-chart-wrap {
  position: relative;
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
  overflow-x: auto;
  scrollbar-width: thin;
}

.miner-tradeoff-chart {
  display: block;
  width: 100%;
  min-width: 50rem;
  height: auto;
}

.miner-tradeoff-chart text {
  font-family: var(--mono);
}

.miner-tradeoff-chart .miner-svg-fallback {
  fill: var(--ink-3);
  font-family: var(--sans);
  font-size: 15px;
}

.miner-tradeoff-chart .tradeoff-grid {
  stroke: rgba(20, 24, 36, 0.075);
  stroke-width: 1;
}

.miner-tradeoff-chart .tradeoff-axis {
  stroke: rgba(20, 24, 36, 0.18);
  stroke-width: 1;
}

.miner-tradeoff-chart .tradeoff-tick,
.miner-tradeoff-chart .tradeoff-axis-title {
  fill: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.045em;
}

.miner-tradeoff-chart .tradeoff-axis-title {
  font-size: 11px;
  font-weight: 600;
}

.miner-tradeoff-chart .tradeoff-gain-line {
  fill: none;
  stroke: var(--miner-mint);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  opacity: 0.7;
}

.miner-tradeoff-chart .tradeoff-point {
  stroke: #fff;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  transition: cx 440ms cubic-bezier(.2,.7,.2,1), cy 440ms cubic-bezier(.2,.7,.2,1), transform 180ms ease;
}

.miner-tradeoff-chart .tradeoff-point:hover {
  transform: scale(1.15);
}

.miner-tradeoff-chart .point-dense { fill: #8f98aa; }
.miner-tradeoff-chart .point-miner { fill: var(--miner-mint); filter: drop-shadow(0 4px 7px rgba(25, 141, 124, 0.28)); }
.miner-tradeoff-chart .point-late { fill: var(--miner-gold); }

.miner-tradeoff-chart .tradeoff-label {
  fill: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.miner-tradeoff-chart .tradeoff-value {
  fill: var(--ink-3);
  font-size: 10px;
}

.miner-tradeoff-chart .tradeoff-callout-box {
  fill: #17201f;
}

.miner-tradeoff-chart .tradeoff-callout {
  fill: #fff;
  font-size: 10px;
  font-weight: 600;
}

.miner-chart-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem) 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.69rem;
}

.miner-chart-foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.miner-chart-foot i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #8f98aa;
}

.miner-chart-foot .legend-miner { background: var(--miner-mint); }
.miner-chart-foot .legend-late { background: var(--miner-gold); }

.miner-chart-foot p {
  flex: 1 1 22rem;
  margin: 0 0 0 auto;
  text-align: right;
}

.miner-result-story {
  display: grid;
  grid-template-columns: minmax(13rem, 0.58fr) minmax(0, 1.42fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-block: 1px solid var(--line-soft);
}

.miner-result-story h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.miner-result-story p {
  max-width: 63ch;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}

.miner-raw-results {
  margin-top: 2rem;
  border-block: 1px solid var(--line-soft);
}

.miner-raw-results summary {
  padding: 1rem 0;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.miner-table-block {
  padding: 1.2rem 0 1.8rem;
}

.miner-table-block + .miner-table-block {
  border-top: 1px solid var(--line-soft);
}

.miner-table-block h3 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.miner-table-scroll {
  overflow-x: auto;
}

.miner-raw-results table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.miner-raw-results th,
.miner-raw-results td {
  padding: 0.66rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-size: 0.78rem;
}

.miner-raw-results th:first-child,
.miner-raw-results td:nth-child(2),
.miner-raw-results td:nth-child(3) {
  text-align: left;
}

.miner-raw-results tbody td:nth-last-child(2),
.miner-raw-results tbody td:last-child {
  color: var(--miner-mint);
  font-weight: 700;
}

.miner-raw-results tbody tr:nth-child(3) td:last-child {
  color: #a23b48;
}

.miner-efficiency-table tbody td:last-child {
  color: inherit;
  font-weight: 400;
}

.miner-efficiency-table tbody tr:nth-child(2) td:last-child {
  color: var(--miner-mint);
  font-weight: 700;
}

/* Method ------------------------------------------------------------------ */

.miner-method {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 46%, rgba(101, 214, 193, 0.09), transparent 27rem),
    radial-gradient(circle at 88% 20%, rgba(240, 170, 91, 0.09), transparent 29rem),
    #05070d;
}

.miner-section-head-dark > p {
  color: var(--ink-2);
}

.miner-layer-lab {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 14, 24, 0.8);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.miner-lab-head {
  border-color: var(--line);
}

.miner-backbone-switch {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.miner-backbone-switch button.is-active {
  background: var(--ink);
  color: #05070d;
}

.miner-lab-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.64fr) minmax(28rem, 1.36fr);
  min-height: 28rem;
}

.miner-lab-controls {
  padding: clamp(1.5rem, 3.6vw, 2.7rem);
  border-right: 1px solid var(--line-soft);
}

.miner-lab-controls > p:first-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.miner-lab-controls b {
  color: var(--ink);
}

.miner-cutoff-control {
  margin-top: 2.1rem;
}

.miner-cutoff-control label,
.miner-cutoff-control > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.miner-cutoff-control output {
  color: var(--ink);
  text-transform: none;
}

.miner-cutoff-control input {
  width: 100%;
  margin: 0.72rem 0 0.25rem;
  accent-color: var(--miner-mint);
  cursor: pointer;
}

.miner-cutoff-control > div {
  font-size: 0.55rem;
}

.miner-candidate-readout {
  margin-top: 2rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(101, 214, 193, 0.22);
  border-radius: 5px;
  background: rgba(101, 214, 193, 0.055);
}

.miner-candidate-readout strong,
.miner-candidate-readout span {
  display: block;
}

.miner-candidate-readout strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1;
}

.miner-candidate-readout strong small {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0;
}

.miner-candidate-readout span {
  margin-top: 0.42rem;
  color: var(--ink-3);
  font-size: 0.7rem;
}

.miner-lab-fact {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: 0.75rem;
  line-height: 1.52;
}

.miner-layer-stage {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  align-content: center;
}

.miner-depth-labels {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.72rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.miner-layer-stack {
  position: relative;
  min-height: 16rem;
  display: grid;
  grid-template-columns: repeat(36, minmax(0.42rem, 1fr));
  align-items: end;
  gap: clamp(0.12rem, 0.45vw, 0.34rem);
  padding: 1rem 0.4rem 2.3rem;
  border-block: 1px solid var(--line-soft);
}

.miner-layer-fallback {
  grid-column: 1 / -1;
  align-self: center;
  max-width: 42rem;
  margin: auto;
  color: var(--ink-2);
  text-align: center;
  font-size: 0.86rem;
}

.miner-layer {
  --layer-height: 32%;
  position: relative;
  height: var(--layer-height);
  min-height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px 2px 0 0;
  background: rgba(169, 177, 199, 0.08);
  transition: height 320ms cubic-bezier(.2,.7,.2,1), background 260ms ease, border-color 260ms ease, opacity 260ms ease, box-shadow 260ms ease;
}

.miner-layer::before {
  content: "";
  position: absolute;
  inset: 13% 22%;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.045);
}

.miner-layer::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.48rem;
}

.miner-layer:not(.has-label)::after {
  content: "";
}

.miner-layer.is-realign {
  border-color: rgba(101, 214, 193, 0.32);
  background: linear-gradient(180deg, rgba(101, 214, 193, 0.58), rgba(101, 214, 193, 0.12));
  box-shadow: 0 0 12px rgba(101, 214, 193, 0.08);
}

.miner-layer.is-reweight {
  border-color: rgba(240, 170, 91, 0.42);
  background: linear-gradient(180deg, rgba(240, 170, 91, 0.72), rgba(240, 170, 91, 0.14));
  box-shadow: 0 0 13px rgba(240, 170, 91, 0.1);
}

.miner-layer.is-realign::before,
.miner-layer.is-reweight::before {
  background: rgba(255, 255, 255, 0.22);
}

.miner-layer-key {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.85rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.miner-layer-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.miner-layer-key i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 1px;
  background: rgba(169, 177, 199, 0.1);
}

.miner-layer-key .key-align { background: var(--miner-mint); }
.miner-layer-key .key-weight { background: var(--miner-gold); }

.miner-treatment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.miner-treatment-row article {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-right: 1px solid var(--line-soft);
}

.miner-treatment-row article:last-child {
  border-right: 0;
}

.miner-treatment-row p {
  margin: 1.1rem 0 0;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.55;
}

.miner-treatment-row p span,
.miner-treatment-row p strong {
  display: block;
}

.miner-treatment-row p span {
  margin-bottom: 0.4rem;
  color: var(--miner-mint);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.miner-treatment-row article:nth-child(2) p span {
  color: var(--miner-gold);
}

.miner-treatment-row p strong {
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.miner-treatment-visual {
  position: relative;
  height: 7.4rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    rgba(255, 255, 255, 0.018);
  background-size: 1.2rem 1.2rem;
}

.miner-rotated-space i,
.miner-rotated-space b {
  position: absolute;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--miner-mint);
  box-shadow: 0 0 8px rgba(101, 214, 193, 0.35);
}

.miner-rotated-space i:nth-of-type(1) { left: 12%; top: 61%; }
.miner-rotated-space i:nth-of-type(2) { left: 19%; top: 48%; }
.miner-rotated-space i:nth-of-type(3) { left: 25%; top: 38%; }
.miner-rotated-space i:nth-of-type(4) { left: 31%; top: 27%; }
.miner-rotated-space i:nth-of-type(5) { left: 37%; top: 17%; }
.miner-rotated-space i:nth-of-type(6) { left: 30%; top: 55%; opacity: 0.38; }
.miner-rotated-space b:nth-of-type(1) { right: 36%; top: 25%; }
.miner-rotated-space b:nth-of-type(2) { right: 28%; top: 25%; }
.miner-rotated-space b:nth-of-type(3) { right: 20%; top: 25%; }
.miner-rotated-space b:nth-of-type(4) { right: 36%; top: 58%; }
.miner-rotated-space b:nth-of-type(5) { right: 28%; top: 58%; }
.miner-rotated-space b:nth-of-type(6) { right: 20%; top: 58%; }

.miner-rotated-space span {
  position: absolute;
  left: 48%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-3);
}

.miner-weighted-space {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.36rem;
  padding: 1rem;
}

.miner-weighted-space i {
  display: block;
  height: var(--height, 42%);
  min-height: 0.8rem;
  border-radius: 2px 2px 0 0;
  background: rgba(169, 177, 199, 0.12);
}

.miner-weighted-space i:nth-child(1) { --height: 25%; }
.miner-weighted-space i:nth-child(2) { --height: 84%; background: var(--miner-gold); }
.miner-weighted-space i:nth-child(3) { --height: 36%; }
.miner-weighted-space i:nth-child(4) { --height: 68%; background: var(--miner-gold); opacity: 0.75; }
.miner-weighted-space i:nth-child(5) { --height: 18%; }
.miner-weighted-space i:nth-child(6) { --height: 92%; background: var(--miner-gold); }
.miner-weighted-space i:nth-child(7) { --height: 31%; }
.miner-weighted-space i:nth-child(8) { --height: 57%; background: var(--miner-gold); opacity: 0.62; }

.miner-fusion-vector {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 0.18rem;
  padding: 2.2rem 1rem;
}

.miner-fusion-vector i {
  display: block;
  height: 3rem;
  border-radius: 1px;
  background: color-mix(in srgb, var(--miner-mint) var(--mix, 45%), rgba(169, 177, 199, 0.1));
}

.miner-fusion-vector i:nth-child(2n) { --mix: 72%; }
.miner-fusion-vector i:nth-child(3n) { --mix: 26%; }
.miner-fusion-vector i:nth-child(5n) { background: var(--miner-gold); }

.miner-lab-note {
  margin: 0;
  padding: 0.85rem clamp(1.3rem, 3vw, 2rem);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: 0.68rem;
}

.miner-method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line-soft);
}

.miner-method-steps article {
  padding: 1.8rem clamp(1rem, 2.8vw, 2.2rem);
  border-left: 1px solid var(--line-soft);
}

.miner-method-steps article:last-child {
  border-right: 1px solid var(--line-soft);
}

.miner-method-steps span {
  color: var(--miner-mint);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.miner-method-steps article:nth-child(2) span {
  color: var(--miner-gold);
}

.miner-method-steps h3 {
  margin: 0.65rem 0 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.miner-method-steps p {
  max-width: 30ch;
  margin: 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* Serving ----------------------------------------------------------------- */

.miner-serving {
  background:
    radial-gradient(circle at 82% 30%, rgba(25, 141, 124, 0.07), transparent 28rem),
    var(--bg);
}

.miner-serving-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.62fr) minmax(31rem, 1.38fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.miner-serving-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.65rem);
}

.miner-serving-copy p {
  max-width: 39ch;
  margin: 1.25rem 0 0;
  color: var(--ink-2);
}

.miner-serving-board {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) auto minmax(8.5rem, 1.15fr) auto minmax(8.5rem, 1.15fr);
  align-items: center;
  gap: clamp(0.55rem, 1.5vw, 1.1rem);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(20, 24, 36, 0.075);
}

.miner-serving-source,
.miner-serving-one,
.miner-serving-index {
  min-height: 12.5rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #f8f9fb;
}

.miner-serving-board :where(.miner-serving-source, .miner-serving-one, .miner-serving-index) > span {
  display: block;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.miner-mini-page {
  height: 8.2rem;
  margin-top: 0.8rem;
  padding: 0.65rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.25rem;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.miner-mini-page i {
  background: #dfe3e9;
  border-radius: 1px;
}

.miner-mini-page i:nth-child(1) { grid-column: 1 / -1; grid-row: 1; background: rgba(25, 141, 124, 0.45); }
.miner-mini-page i:nth-child(2) { grid-column: 1 / 3; grid-row: 2 / 5; background: rgba(180, 102, 24, 0.16); }
.miner-mini-page i:nth-child(3) { grid-column: 3 / -1; grid-row: 2; }
.miner-mini-page i:nth-child(4) { grid-column: 1 / -1; grid-row: 6; }

.miner-serving-arrow {
  color: var(--miner-mint);
  font-family: var(--display);
  font-size: 1.35rem;
  text-align: center;
}

.miner-serving-arrow span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.06em;
}

.miner-serving-vector {
  grid-template-columns: repeat(10, 1fr);
  gap: 0.13rem;
  margin-top: 2.7rem;
}

.miner-serving-vector i {
  height: 3.4rem;
  background: color-mix(in srgb, var(--miner-mint) var(--level, 48%), #e8ecef);
}

.miner-serving-vector i:nth-child(2n) { --level: 80%; }
.miner-serving-vector i:nth-child(3n) { --level: 22%; }
.miner-serving-vector i:nth-child(5n) { background: var(--miner-gold); }

.miner-serving-one strong,
.miner-serving-index strong {
  display: block;
  margin-top: 0.62rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.miner-serving-index > div {
  display: grid;
  gap: 0.43rem;
  margin-top: 2rem;
}

.miner-serving-index i {
  display: block;
  height: 0.58rem;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(25, 141, 124, 0.78), rgba(25, 141, 124, 0.14));
}

.miner-serving-index i:nth-child(2) { width: 76%; }
.miner-serving-index i:nth-child(3) { width: 91%; }
.miner-serving-index i:nth-child(4) { width: 61%; }
.miner-serving-index i:nth-child(5) { width: 84%; }

/* Reveal enhancement ------------------------------------------------------ */

[data-reveal] {
  opacity: 1;
  transform: none;
}

.miner-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

.miner-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1040px) {
  .miner-masthead-grid {
    grid-template-columns: 1fr;
  }

  .miner-hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 48rem;
  }

  .miner-proof-rail {
    grid-column: 1;
    grid-row: 2;
  }

  .miner-hero-art {
    grid-column: 1;
    grid-row: 3;
    min-height: 30rem;
  }

  .miner-section-head,
  .miner-serving-grid {
    grid-template-columns: 1fr;
  }

  .miner-section-head > p {
    max-width: 50ch;
  }

  .miner-serving-copy {
    max-width: 45rem;
  }
}

@media (max-width: 820px) {
  .miner-lab-grid {
    grid-template-columns: 1fr;
  }

  .miner-lab-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .miner-layer-stage {
    overflow-x: auto;
  }

  .miner-depth-labels,
  .miner-layer-stack,
  .miner-layer-key {
    min-width: 39rem;
  }

  .miner-treatment-row {
    grid-template-columns: 1fr;
  }

  .miner-treatment-row article,
  .miner-treatment-row article:last-child {
    border-right: 0;
  }

  .miner-treatment-row article + article {
    border-top: 1px solid var(--line-soft);
  }

  .miner-treatment-visual {
    max-width: 34rem;
  }

  .miner-serving-board {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .miner-serving-arrow {
    transform: rotate(90deg);
    width: 2rem;
    margin: -0.2rem auto;
  }

  .miner-serving-arrow span {
    display: none;
  }

  .miner-serving-source,
  .miner-serving-one,
  .miner-serving-index {
    min-height: 0;
  }

  .miner-mini-page {
    max-width: 15rem;
  }

  .miner-serving-vector {
    max-width: 22rem;
    margin-top: 1.6rem;
  }

  .miner-serving-index > div {
    max-width: 22rem;
    margin-top: 1.4rem;
  }
}

@media (max-width: 760px) {
  .miner-nav-links a:nth-child(3) {
    display: none;
  }

  .miner-masthead {
    padding-top: 7.5rem;
  }

  .miner-hero-copy h1 {
    font-size: clamp(4.2rem, 23vw, 6.5rem);
  }

  .miner-hero-art {
    min-height: 26rem;
  }

  .miner-art-inputs {
    width: 7rem;
  }

  .miner-art-page {
    height: 8.7rem;
  }

  .miner-hero-layers {
    left: 9.1rem;
    right: 7.2rem;
  }

  .miner-hero-funnel {
    right: 0.8rem;
  }

  .miner-hero-funnel span {
    width: 4.9rem;
  }

  .miner-proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .miner-proof:nth-child(3),
  .miner-proof:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .miner-chart-head,
  .miner-lab-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .miner-chart-foot p {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }

  .miner-result-story,
  .miner-method-steps {
    grid-template-columns: 1fr;
  }

  .miner-method-steps article,
  .miner-method-steps article:last-child {
    border-right: 1px solid var(--line-soft);
  }

  .miner-method-steps article + article {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 500px) {
  .miner-nav-inner {
    min-height: 4rem;
    gap: 0.75rem;
  }

  .miner-nav-links {
    gap: 0.65rem;
  }

  .miner-nav-home,
  .miner-nav-links a {
    font-size: 0.66rem;
  }

  .miner-art-top span:last-child {
    display: none;
  }

  .miner-hero-art {
    min-height: 24rem;
  }

  .miner-art-inputs {
    left: 0.8rem;
    width: 6.6rem;
  }

  .miner-art-query strong {
    font-size: 0.75rem;
  }

  .miner-hero-layers {
    left: 8rem;
    right: 5.7rem;
  }

  .miner-hero-funnel {
    display: none;
  }

  .miner-hero-output {
    right: 0.8rem;
    width: 10.6rem;
  }

  .miner-proof {
    min-height: 8rem;
    padding: 1.4rem 0.85rem;
  }

  .miner-proof strong {
    font-size: 1.55rem;
  }

  .miner-tradeoff-controls,
  .miner-backbone-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .miner-backbone-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .miner-tradeoff-controls button,
  .miner-backbone-switch button {
    padding-inline: 0.45rem;
  }

  .miner-tradeoff-chart {
    min-width: 0;
  }

  .miner-chart-wrap {
    overflow-x: visible;
  }

  .miner-layer-stage {
    overflow-x: visible;
    padding-inline: 1rem;
  }

  .miner-depth-labels,
  .miner-layer-stack,
  .miner-layer-key {
    min-width: 0;
  }

  .miner-layer-stack {
    grid-template-columns: repeat(36, minmax(0, 1fr));
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .miner-hero-layer i.is-signal {
    animation: none;
  }

  .miner-enhanced [data-reveal],
  .miner-layer,
  .miner-tradeoff-chart .tradeoff-point {
    transition: none;
  }
}

/* Academic editorial skin -------------------------------------------------
   The underlying modules and interaction geometry above stay intact. This
   final layer gives the page a quiet, paper-like visual language: warm white
   surfaces, typographic hierarchy, thin rules, and figure-style panels. */

.miner-page {
  --bg: #fbfaf7;
  --bg-raise: #ffffff;
  --ink: #242724;
  --ink-2: #505750;
  --ink-3: #666865;
  --line: #d5d8d2;
  --line-soft: #e4e5e0;
  --miner-mint: #357b70;
  --miner-mint-soft: #e7f0ed;
  --miner-gold: #a66e32;
  --miner-gold-soft: #f3eadf;
  background: #fbfaf7;
  color: var(--ink);
}

.miner-page .light {
  --bg: #fbfaf7;
  --bg-raise: #ffffff;
  --ink: #242724;
  --ink-2: #505750;
  --ink-3: #666865;
  --line: #d5d8d2;
  --line-soft: #e4e5e0;
  --miner-mint: #357b70;
  --miner-gold: #a66e32;
  background: #fbfaf7;
  color: var(--ink);
}

.miner-page ::selection {
  background: #d9e9e4;
  color: #1e2825;
}

.miner-page :where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--miner-mint);
  outline-offset: 3px;
}

.miner-page .shell {
  max-width: 1160px;
}

/* Calm, opaque navigation instead of a floating glass bar. */
.miner-nav {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.miner-nav-inner {
  min-height: 3.9rem;
}

.miner-nav-home,
.miner-nav-links a {
  font-family: var(--sans);
  letter-spacing: 0.01em;
  text-transform: none;
}

.miner-nav-home {
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.miner-nav-home span {
  color: var(--miner-mint);
}

.miner-nav-links a {
  color: var(--ink-3);
  font-size: 0.81rem;
  font-weight: 500;
}

.miner-nav a:hover {
  color: var(--miner-mint);
}

/* Title page. */
.miner-masthead {
  min-height: 0;
  padding: clamp(7.5rem, 11vw, 9rem) 0 clamp(3.5rem, 6vw, 5rem);
  color: var(--ink);
  background: #e8ebec;
  overflow: visible;
}

.miner-masthead::after {
  background: var(--line);
}

.miner-masthead-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(25rem, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.miner-hero-copy .eyebrow {
  margin-bottom: 1.15rem;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.miner-hero-copy .eyebrow b {
  color: var(--miner-mint);
}

.miner-hero-copy h1 {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: clamp(4.3rem, 8vw, 6.9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.miner-hero-claim {
  max-width: 21ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.17;
}

.miner-hero-deck {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.68;
}

.miner-hero-deck > b,
.miner-expansion b {
  color: var(--ink);
}

.miner-authors {
  margin-bottom: 1.45rem;
  color: var(--ink-3);
  font-size: 0.81rem;
  line-height: 1.7;
}

.miner-authors b {
  color: var(--ink-2);
}

.miner-hero-links .chip {
  min-height: 2.45rem;
  padding: 0.52rem 0.82rem;
  border-color: #c8cbc5;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.miner-hero-links .chip:hover {
  border-color: var(--miner-mint);
  background: #f1f6f4;
  color: var(--miner-mint);
}

.miner-hero-links .miner-chip-primary,
.miner-hero-links .miner-chip-primary:hover {
  border-color: var(--miner-mint);
  background: var(--miner-mint);
  color: #fff;
}

/* The hero schematic reads as an academic figure rather than a product card. */
.miner-hero-art {
  min-height: clamp(27rem, 40vw, 33rem);
  border-color: var(--line);
  border-radius: 2px;
  background: #f2f3ef;
  box-shadow: none;
}

.miner-hero-art::before {
  background-image:
    linear-gradient(rgba(44, 55, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 55, 49, 0.035) 1px, transparent 1px);
  -webkit-mask-image: none;
  mask-image: none;
}

.miner-art-query,
.miner-art-page {
  border-color: #d4d7d1;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}

.miner-art-page i,
.miner-art-page b {
  background: #dfe2dc;
}

.miner-hero-layer {
  border-color: #daddd7;
  background: rgba(255, 255, 255, 0.7);
}

.miner-hero-layer i {
  background: #d7dbd5;
}

.miner-hero-layer i.is-signal,
.miner-hero-layer.is-late i.is-signal {
  box-shadow: none;
}

.miner-hero-funnel span {
  border-color: #b9d2ca;
  border-radius: 2px;
  background: #e8f1ee;
  color: #315e56;
}

.miner-hero-funnel span:nth-child(2) {
  border-color: #dbc6aa;
  background: #f3eadf;
  color: #795328;
}

.miner-hero-output {
  border-color: #a9c9c0;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}

.miner-vector i,
.miner-serving-vector i {
  background: color-mix(in srgb, var(--miner-mint) var(--level, 45%), #e2e5df);
}

.miner-proof-rail {
  margin-top: clamp(2.7rem, 5vw, 4rem);
  border-top-color: var(--line);
  border-bottom: 1px solid var(--line);
}

.miner-proof {
  min-height: 7.8rem;
  border-left-color: var(--line-soft);
}

.miner-proof:last-child {
  border-right-color: var(--line-soft);
}

.miner-proof strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  letter-spacing: -0.035em;
}

.miner-proof:first-child strong {
  color: var(--miner-mint);
}

.miner-proof span {
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* Editorial section rhythm and type. */
.miner-section {
  padding-block: clamp(4.8rem, 8vw, 7rem);
}

.miner-page .section-label {
  margin-bottom: 2rem;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.miner-page .section-label::after {
  background: var(--line);
}

.miner-section-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  align-items: start;
  margin-bottom: clamp(2.4rem, 4.5vw, 3.8rem);
}

.miner-section-head h2,
.miner-serving-copy h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.miner-section-head > p,
.miner-serving-copy p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

.miner-results {
  background: #fff;
}

.miner-method {
  color: var(--ink);
  background: #f4f3ef;
  border-block: 1px solid var(--line-soft);
}

.miner-serving {
  background: #fbfaf7;
}

.miner-section-head-dark > p {
  color: var(--ink-2);
}

/* Flat figure frames. */
.miner-tradeoff-card,
.miner-layer-lab,
.miner-serving-board {
  border-color: var(--line);
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}

.miner-chart-head,
.miner-lab-head {
  border-bottom-color: var(--line-soft);
  background: #f6f6f3;
}

.miner-chart-head h3,
.miner-lab-head h3 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 650;
}

.miner-chart-kicker {
  color: var(--miner-mint);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.miner-tradeoff-controls,
.miner-backbone-switch {
  border-color: #ced1cb;
  border-radius: 2px;
  background: #eeefeb;
}

.miner-tradeoff-controls button,
.miner-backbone-switch button {
  border-radius: 1px;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.miner-tradeoff-controls button.is-active,
.miner-backbone-switch button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px #c9ccc6;
}

.miner-tradeoff-chart .point-miner {
  filter: none;
}

.miner-tradeoff-chart .tradeoff-callout-box {
  fill: #344f49;
}

.miner-chart-foot {
  border-top-color: var(--line-soft);
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.73rem;
}

.miner-result-story {
  border-color: var(--line);
}

.miner-result-story h3 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.miner-result-story p {
  color: var(--ink-2);
  font-size: 1rem;
}

.miner-raw-results,
.miner-table-block + .miner-table-block,
.miner-raw-results th,
.miner-raw-results td {
  border-color: var(--line-soft);
}

.miner-raw-results summary {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.miner-raw-results tbody tr:nth-child(odd) {
  background: #f7f7f4;
}

/* Method lab: a diagram on paper, not a glowing dashboard. */
.miner-lab-grid {
  color: var(--ink);
}

.miner-lab-controls {
  border-right-color: var(--line-soft);
}

.miner-lab-controls > p:first-child,
.miner-lab-fact,
.miner-candidate-readout span,
.miner-depth-labels,
.miner-layer-key,
.miner-treatment-row p,
.miner-lab-note,
.miner-method-steps p {
  color: var(--ink-3);
}

.miner-lab-controls b,
.miner-candidate-readout strong,
.miner-treatment-row p strong,
.miner-method-steps h3 {
  color: var(--ink);
}

.miner-candidate-readout {
  border-color: #bad1ca;
  border-radius: 2px;
  background: #edf4f1;
}

.miner-layer-stack,
.miner-treatment-row,
.miner-treatment-row article,
.miner-lab-note,
.miner-method-steps,
.miner-method-steps article {
  border-color: var(--line-soft);
}

.miner-layer {
  border-color: #d3d7d1;
  background: #e3e5e0;
}

.miner-layer::before {
  background: rgba(255, 255, 255, 0.46);
}

.miner-layer.is-realign {
  border-color: #8fb9ae;
  background: linear-gradient(180deg, #6ba598, #dcebe7);
  box-shadow: none;
}

.miner-layer.is-reweight {
  border-color: #c89e6c;
  background: linear-gradient(180deg, #bd8243, #efe1d0);
  box-shadow: none;
}

.miner-treatment-visual {
  border-color: var(--line-soft);
  border-radius: 2px;
  background:
    linear-gradient(rgba(45, 54, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 54, 49, 0.035) 1px, transparent 1px),
    #fafaf8;
  background-size: 1.2rem 1.2rem;
}

.miner-rotated-space i,
.miner-rotated-space b {
  box-shadow: none;
}

/* Serving schematic. */
.miner-serving-board {
  background: #f4f4f1;
}

.miner-serving-source,
.miner-serving-one,
.miner-serving-index {
  border-color: var(--line);
  border-radius: 2px;
  background: #fff;
}

.miner-mini-page {
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.miner-serving-arrow {
  color: var(--miner-mint);
}

/* Responsive: restate layout after the final theme overrides. */
@media (max-width: 1040px) {
  .miner-masthead-grid,
  .miner-section-head,
  .miner-serving-grid {
    grid-template-columns: 1fr;
  }

  .miner-hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 48rem;
  }

  .miner-proof-rail {
    grid-column: 1;
    grid-row: 2;
  }

  .miner-hero-art {
    grid-column: 1;
    grid-row: 3;
    min-height: 29rem;
  }
}

@media (max-width: 820px) {
  .miner-lab-grid,
  .miner-treatment-row,
  .miner-serving-board {
    grid-template-columns: 1fr;
  }

  .miner-lab-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .miner-treatment-row article,
  .miner-treatment-row article:last-child {
    border-right: 0;
  }

  .miner-treatment-row article + article {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .miner-masthead {
    padding-top: 6.8rem;
  }

  .miner-hero-copy h1 {
    font-size: clamp(3.7rem, 19vw, 5.6rem);
  }

  .miner-proof-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .miner-proof:nth-child(3),
  .miner-proof:nth-child(4) {
    border-top: 1px solid var(--line-soft);
  }

  .miner-chart-head,
  .miner-lab-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .miner-result-story,
  .miner-method-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .miner-nav-inner {
    min-height: 3.75rem;
  }

  .miner-hero-art {
    min-height: 23rem;
  }

  .miner-proof {
    min-height: 7.4rem;
  }
}

/* Final page-specific alignment with the approved SPIN page. */
.miner-masthead {
  padding: clamp(6.5rem, 9vw, 7.75rem) 0 clamp(3.25rem, 5vw, 4.5rem);
}

.miner-masthead-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.miner-hero-copy h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.miner-hero-claim {
  max-width: 35ch;
  margin-bottom: 1.05rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.miner-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
}

.miner-keywords li + li::before {
  content: "\00b7";
  margin-inline: 0.55rem;
  color: var(--line);
}

.miner-hero-art {
  min-height: clamp(22rem, 32vw, 27rem);
}

.miner-art-inputs {
  top: 2.25rem;
}

.miner-hero-layers {
  inset: 2.6rem 6.8rem 3.2rem 11.3rem;
}

.miner-hero-layer::after {
  display: none;
}

.miner-hero-output {
  width: 10.5rem;
  padding: 0.75rem 0.8rem;
}

.miner-section {
  padding-block: clamp(3.75rem, 6vw, 5.5rem);
}

.miner-section-head {
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

.miner-section-head-single {
  grid-template-columns: minmax(0, 1fr);
}

.miner-section-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.miner-motivation {
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.miner-motivation .miner-section-head {
  margin-bottom: 1.4rem;
}

.miner-motivation-copy,
.miner-method-intro {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.03rem;
  line-height: 1.78;
}

.miner-method-intro {
  margin: -1rem 0 2rem;
}

.miner-method-intro b {
  color: var(--ink);
  font-weight: 650;
}

.miner-analysis {
  background: #fff;
}

.miner-results .miner-proof-rail {
  grid-column: auto;
  grid-row: auto;
  margin: 0 0 clamp(2.5rem, 4vw, 3.6rem);
  border-block: 1px solid var(--line);
}

.miner-method-treatments {
  border: 1px solid var(--line-soft);
  background: #fff;
}

.miner-method-treatments h3 {
  margin: 1.05rem 0 0.5rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.miner-method-treatments p {
  margin-top: 0;
  color: var(--ink-2);
  font-size: 0.84rem;
}

.miner-v2-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}

.miner-v2-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.miner-v2-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.miner-v2-legend i {
  width: 0.7rem;
  height: 0.7rem;
  background: #a8aeaa;
}

.miner-v2-legend span:last-child i {
  background: var(--miner-mint);
}

.miner-v2-chart {
  display: grid;
  gap: 0;
}

.miner-v2-chart article {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.45rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.miner-v2-chart article:last-child {
  border-bottom: 0;
}

.miner-v2-chart h3 {
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 650;
}

.miner-v2-chart article > div {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 2.8rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.miner-v2-chart article > div > i {
  display: block;
  height: 0.5rem;
  background: #ecece8;
}

.miner-v2-chart article > div > i > b {
  display: block;
  width: var(--score);
  height: 100%;
  background: #a8aeaa;
}

.miner-v2-chart article > div.is-miner > i > b {
  background: var(--miner-mint);
}

.miner-v2-chart article > div > strong {
  color: var(--ink-2);
  font-size: 0.76rem;
  text-align: right;
}

.miner-v2-chart article > div.is-miner > strong {
  color: var(--miner-mint);
}

.miner-result-story {
  display: block;
}

.miner-result-story p {
  max-width: 68ch;
  font-family: var(--sans);
}

.miner-efficiency {
  border-top: 1px solid var(--line-soft);
  background: #fbfaf7;
}

.miner-efficiency .miner-chart-head {
  justify-content: flex-end;
  padding-block: 1rem;
}

@media (max-width: 1040px) {
  .miner-masthead-grid {
    grid-template-columns: 1fr;
  }

  .miner-hero-art {
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .miner-hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 3.5rem);
  }

  .miner-nav-links a {
    display: none;
  }

  .miner-nav-links a:nth-child(1),
  .miner-nav-links a:nth-child(3),
  .miner-nav-links a:nth-child(4) {
    display: block;
  }

  .miner-v2-chart article {
    grid-template-columns: 4.6rem minmax(0, 1fr);
  }

  .miner-v2-chart article > div {
    grid-template-columns: 3rem minmax(0, 1fr) 2.5rem;
    gap: 0.45rem;
  }
}

/* Keep result-table emphasis scoped to the benchmark table. */
.miner-efficiency-table tbody td:nth-last-child(2),
.miner-efficiency-table tbody td:last-child,
.miner-efficiency-table tbody tr:nth-child(3) td:last-child {
  color: inherit;
  font-weight: 400;
}

.miner-efficiency-table tbody tr:nth-child(2) td:last-child {
  color: var(--miner-mint);
  font-weight: 700;
}

@media (max-width: 500px) {
  .miner-art-inputs {
    left: 0.7rem;
    width: 6.2rem;
  }

  .miner-hero-layers {
    left: 7.4rem;
    right: 4.9rem;
  }

  .miner-hero-output {
    right: 0.7rem;
    width: 7.5rem;
  }
}

/* Measured MINER layer profiles. Each column spans the full 0–1 scale: the
   bar records normalized CKA, while the marker records count / hidden size. */
.miner-layer-stack {
  align-items: stretch;
  background-image: linear-gradient(
    to bottom,
    transparent calc(50% - 0.5px),
    rgba(80, 87, 80, 0.1) calc(50% - 0.5px),
    rgba(80, 87, 80, 0.1) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

.miner-layer-column {
  --neuron-bottom: 0%;
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: help;
}

.miner-layer-column::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.48rem;
}

.miner-layer-column:not(.has-label)::after {
  content: "";
}

.miner-layer-column .miner-layer {
  width: 100%;
  min-height: 0.28rem;
}

.miner-layer-column .miner-layer::after {
  content: none;
}

.miner-layer-column:hover .miner-layer {
  filter: saturate(1.1) brightness(0.97);
}

.miner-neuron-marker {
  position: absolute;
  z-index: 2;
  bottom: var(--neuron-bottom);
  left: 50%;
  width: 0.43rem;
  height: 0.43rem;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #263631;
  box-shadow: 0 0 0 1px rgba(38, 54, 49, 0.35);
  transform: translate(-50%, 50%);
  transition: bottom 320ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
}

.miner-neuron-marker[hidden] {
  display: none;
}

.miner-layer-key .key-neurons i {
  border: 1px solid #fff;
  border-radius: 50%;
  background: #263631;
  box-shadow: 0 0 0 1px rgba(38, 54, 49, 0.35);
}

.miner-layer-key [hidden] {
  display: none;
}
