:root {
  color-scheme: dark;
  --bg: #090a09;
  --panel: #0c0d0c;
  --panel-2: #101210;
  --text: #f2f3ef;
  --muted: #8a8d87;
  --faint: #4b4f49;
  --line: #282b27;
  --line-strong: #41453f;
  --green: #b7ff3c;
  --green-dim: rgba(183, 255, 60, 0.14);
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1580px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.92);
  backdrop-filter: blur(16px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand,
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  font-weight: 500;
}

.topbar-meta {
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-dim);
}

.status-dot.error {
  background: #ff6c57;
  box-shadow: 0 0 0 4px rgba(255, 108, 87, 0.12);
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  transition: border-color 160ms ease, color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.icon-button.loading {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dashboard-page {
  padding: 14px 0 12px;
}

.dashboard-head {
  min-height: 112px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
  align-items: center;
  gap: 40px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(12, 13, 12, 0.7);
}

.eyebrow,
.section-heading,
.label,
.subline,
.card-index,
.input-label,
.live-chip,
.legend,
.chart-axis,
footer,
.input-note {
  font-family: var(--mono);
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.dashboard-head h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.dashboard-head p {
  margin: 0;
  max-width: 470px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}

.source-card {
  position: relative;
  min-height: 118px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 12, 0.74);
}

.card-index {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--faint);
  font-size: 11px;
}

.source-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 17px;
}

.source-card > div:last-child {
  display: grid;
  gap: 8px;
}

.label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.source-card strong {
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.subline {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(350px, 0.82fr) minmax(0, 1.68fr);
  border-left: 1px solid var(--line);
}

.control-panel,
.result-panel {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.control-panel {
  background: var(--panel);
}

.result-panel {
  background: #0a0b0a;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.section-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.input-block {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.input-row {
  margin: 8px 0 7px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.input-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.06em;
  appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.unit {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.range {
  width: 100%;
  height: 20px;
  margin: 0 0 5px;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--text) var(--progress, 20%), var(--line-strong) var(--progress, 20%));
}

.range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 1px var(--text);
  appearance: none;
}

.input-note {
  display: block;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.input-note b {
  color: var(--text);
  font-weight: 400;
}

.live-chip {
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.live-chip.override {
  border-color: #735f2d;
  color: #d2ad56;
}

.assumptions {
  margin-top: 12px;
}

.assumptions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
}

.assumptions summary::-webkit-details-marker { display: none; }
.assumptions[open] summary span:last-child { transform: rotate(45deg); }

.assumption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.assumption-grid label {
  position: relative;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.assumption-grid input {
  width: 100%;
  padding: 0 24px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
}

.assumption-grid i {
  position: absolute;
  right: 14px;
  bottom: 16px;
  color: var(--faint);
  font-style: normal;
}

.hero-result {
  min-height: 205px;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.hero-number {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(54px, 7vw, 100px);
  font-weight: 300;
  letter-spacing: -0.09em;
  line-height: 0.9;
  text-shadow: 0 0 44px rgba(183, 255, 60, 0.11);
}

.hero-number small {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.hero-usd {
  margin-top: 9px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
}

.hero-result p {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.metric-grid article {
  min-height: 92px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid strong {
  margin: 7px 0 3px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.metric-grid small {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.35;
}

.chart-card {
  margin: 18px 0 0;
  padding: 14px 16px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.chart-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.chart-card figcaption > div:first-child {
  display: grid;
  gap: 8px;
}

.chart-card figcaption strong {
  font-size: 15px;
  font-weight: 500;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-mode {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  cursor: pointer;
}

.chart-mode:hover,
.chart-mode:focus-visible,
.chart-mode.active {
  color: var(--text);
  border-bottom-color: var(--green);
  outline: none;
}

.chart-stage {
  position: relative;
}

#projectionChart {
  width: 100%;
  height: 142px;
  margin-top: 8px;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.chart-area {
  fill: var(--green-dim);
}

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.chart-end {
  fill: var(--green);
  stroke: var(--bg);
  stroke-width: 3;
}

.chart-cursor {
  stroke: rgba(242, 243, 239, 0.35);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  pointer-events: none;
}

.chart-hover-point {
  fill: var(--green);
  stroke: var(--bg);
  stroke-width: 3;
  opacity: 0;
  pointer-events: none;
}

.chart-cursor.visible,
.chart-hover-point.visible {
  opacity: 1;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  width: 154px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 10, 9, 0.96);
  pointer-events: none;
  font-family: var(--mono);
}

.chart-tooltip span,
.chart-tooltip small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.chart-tooltip strong {
  display: block;
  margin: 5px 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 400;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 8px;
}

.dashboard-foot {
  min-height: 38px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--faint);
  background: rgba(12, 13, 12, 0.7);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.dashboard-foot p {
  max-width: 720px;
  margin: 0;
}

.dashboard-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.dashboard-foot a:hover,
.dashboard-foot a:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 1100px) {
  .page-shell { width: min(100% - 24px, 1580px); }
  .dashboard-head { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-head p { max-width: 650px; }
  .source-strip { grid-template-columns: 1fr 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .page-shell { width: calc(100% - 20px); }
  .topbar { min-height: 52px; }
  .topbar-meta > span:not(.status-dot) { display: none; }
  .dashboard-page { padding-top: 8px; }
  .dashboard-head { min-height: 150px; padding: 20px; }
  .dashboard-head h1 { font-size: 42px; }
  .source-strip,
  .metric-grid,
  .source-card { min-height: 108px; }
  .control-panel,
  .result-panel { padding: 26px 20px; }
  .hero-result { min-height: 230px; }
  .hero-number { font-size: 62px; }
  .assumption-grid { grid-template-columns: 1fr; }
  .chart-card { padding: 14px; }
  .chart-card figcaption { align-items: flex-end; }
  .dashboard-foot { align-items: flex-start; flex-direction: column; gap: 9px; }
  .dashboard-foot nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* Single-screen yield module */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: auto;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 16px auto;
}

.yield-module {
  width: 100%;
  height: min(860px, calc(100vh - 32px));
  min-height: 660px;
  display: grid;
  grid-template-rows: 74px 160px 54px minmax(0, 1fr) 38px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 10, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.module-header,
.metric-row,
.rate-strip,
.module-chart,
.module-footer {
  min-width: 0;
}

.module-header {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.module-identity,
.module-actions,
.switch-control,
.module-footer,
.module-footer > span,
.module-footer nav,
.chart-status {
  display: flex;
  align-items: center;
}

.module-identity {
  gap: 12px;
  min-width: 0;
}

.module-identity .brand-mark {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-color: var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
}

.module-kicker,
.metric-label,
.metric-index,
.metric-cell small,
.rate-strip,
.switch-control small,
.chart-status,
.module-footer {
  font-family: var(--mono);
}

.module-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.module-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.module-actions {
  align-self: stretch;
  gap: 0;
}

.switch-control {
  height: 100%;
  min-width: 154px;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}

.switch-control > span {
  display: grid;
  gap: 4px;
}

.switch-control b {
  font-size: 11px;
  font-weight: 500;
}

.switch-control small {
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-control i {
  position: relative;
  width: 30px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: #111310;
  transition: border-color 160ms ease, background 160ms ease;
}

.switch-control i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.switch-control input:checked + i {
  border-color: var(--green);
  background: var(--green-dim);
}

.switch-control input:checked + i::after {
  transform: translateX(14px);
  background: var(--green);
}

.switch-control:focus-within {
  outline: 1px solid var(--green);
  outline-offset: -1px;
}

.refresh-control {
  width: 54px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.refresh-control:hover,
.refresh-control:focus-visible {
  color: var(--green);
  outline: 1px solid var(--green);
  outline-offset: -1px;
}

.refresh-control.loading {
  animation: spin 900ms linear infinite;
}

.metric-row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric-cell {
  position: relative;
  min-width: 0;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  color: var(--text);
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-index {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--faint);
  font-size: 8px;
}

.metric-label {
  padding-right: 24px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.metric-input,
.result-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-input input {
  width: min(230px, 78%);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 300;
  line-height: 1;
}

.metric-input input:focus {
  border-bottom-color: var(--green);
}

.metric-input input[readonly] {
  cursor: default;
  caret-color: transparent;
}

.metric-input input[readonly]:focus {
  border-bottom-color: var(--line-strong);
}

.metric-input em,
.result-value em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.metric-cell small {
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-cell small b {
  color: var(--text);
  font-weight: 400;
}

.live-chip {
  margin-left: 6px;
  padding: 2px 4px;
  border: 1px solid rgba(183, 255, 60, 0.36);
  color: var(--green);
  font-size: 7px;
  font-weight: 400;
}

.live-chip.override {
  border-color: var(--line-strong);
  color: var(--muted);
}

.result-cell {
  background: linear-gradient(135deg, rgba(183, 255, 60, 0.055), transparent 66%);
}

.result-value strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 300;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 0 26px rgba(183, 255, 60, 0.14);
  white-space: nowrap;
}

.rate-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.008);
}

.rate-strip > span {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--line);
}

.rate-strip > span:last-child {
  border-right: 0;
}

.rate-strip small {
  overflow: hidden;
  color: var(--faint);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-strip b {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-strip > span:nth-child(5) b {
  color: var(--green);
}

.module-chart {
  min-height: 0;
  margin: 0;
  padding: 15px 22px 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  background:
    linear-gradient(180deg, rgba(183, 255, 60, 0.012), transparent 35%),
    var(--panel);
}

.module-chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.module-chart figcaption > div {
  display: grid;
  gap: 4px;
}

.module-chart figcaption strong {
  font-size: 15px;
  font-weight: 500;
}

.chart-status {
  align-self: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
}

.chart-status i {
  width: 12px;
  height: 2px;
  background: var(--green);
}

.chart-status b {
  font-weight: 400;
}

.chart-stage {
  min-height: 0;
}

#projectionChart {
  width: 100%;
  height: 100%;
  min-height: 230px;
  margin: 0;
  display: block;
}

.chart-grid line {
  stroke: #222621;
  stroke-dasharray: 2 7;
}

.chart-area {
  fill: rgba(183, 255, 60, 0.085);
}

.chart-line {
  stroke-width: 2;
}

.chart-axis {
  padding: 0 3.4%;
}

.module-footer {
  padding: 0 14px;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.module-footer > span,
.module-footer nav {
  gap: 12px;
}

.module-footer .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.module-footer a:hover,
.module-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.calculation-inputs {
  display: none !important;
}

@media (max-width: 900px) {
  body { place-items: start center; }
  .page-shell { width: calc(100% - 20px); margin: 10px auto; }
  .yield-module {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto 410px auto;
  }
  .module-header { min-height: 72px; flex-wrap: wrap; padding: 10px 14px; }
  .module-actions { height: 52px; margin: -10px -14px -10px 0; }
  .switch-control { min-width: 128px; padding: 0 12px; gap: 10px; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { min-height: 144px; }
  .metric-cell:nth-child(2) { border-right: 0; }
  .metric-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .rate-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rate-strip > span:nth-child(4) { border-right: 0; }
  .rate-strip > span:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .module-footer { min-height: 42px; }
}

@media (max-width: 620px) {
  .page-shell { width: calc(100% - 12px); margin: 6px auto; }
  .yield-module { grid-template-rows: auto auto auto 360px auto; }
  .module-header { align-items: flex-start; }
  .module-identity { min-height: 38px; }
  .module-actions { width: calc(100% + 28px); height: 54px; margin: 0 -14px -10px; border-top: 1px solid var(--line); }
  .switch-control { flex: 1; min-width: 0; border-left: 0; border-right: 1px solid var(--line); }
  .refresh-control { width: 48px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-cell { min-height: 128px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .metric-cell:last-child { border-bottom: 0; }
  .rate-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-strip > span:nth-child(2n) { border-right: 0; }
  .rate-strip > span:nth-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .module-chart { padding-inline: 12px; }
  .module-chart figcaption strong { font-size: 13px; }
  #projectionChart { min-height: 260px; }
  .module-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 8px; }
  .module-footer nav { flex-wrap: wrap; }
}

/* First-screen site shell — reference-led composition */
body {
  min-height: 100vh;
  display: block;
  overflow: auto;
  background:
    radial-gradient(circle at 73% 0%, rgba(255, 255, 255, 0.022), transparent 25%),
    #050605;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 72px;
  z-index: 50;
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #2b2d2a;
  background: rgba(5, 6, 5, 0.86);
  backdrop-filter: blur(18px);
}

.site-brand {
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.site-brand svg {
  width: 27px;
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.site-brand .brand-logo {
  width: 24px;
  height: 39px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-brand b {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.network-state {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #858984;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.network-state.header-contract {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  padding: 0 12px;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--line-strong);
  color: #a4a7a1;
  transition: border-color 180ms ease, color 180ms ease;
}

.network-state.header-contract:hover,
.network-state.header-contract:focus-visible {
  border-color: #777b74;
  color: var(--text);
  outline: 0;
}

.header-contract span {
  color: var(--text);
  font-weight: 700;
}

.header-contract code {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: 8px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-contract b {
  margin-left: auto;
  color: var(--text);
  font-weight: 400;
}

.network-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.network-state em {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.site-actions {
  height: 100%;
  padding-right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.site-actions a,
.site-actions .refresh-control {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.site-actions a {
  min-width: 126px;
  padding: 0 16px;
}

.site-actions .staking-app-link {
  border-color: #686c65;
  color: var(--text);
  letter-spacing: .12em;
}

.site-actions .site-x-link {
  width: 36px;
  min-width: 36px;
  padding: 0;
  color: var(--text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
}

.site-actions .refresh-control {
  width: 36px;
  border-left: 1px solid var(--line-strong);
  background: transparent;
}

.site-actions a:hover,
.site-actions a:focus-visible,
.site-actions .refresh-control:hover,
.site-actions .refresh-control:focus-visible {
  border-color: var(--text);
  color: var(--text);
  outline: 0;
}

.site-rail {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #222421;
  font-family: var(--mono);
}

.rail-label {
  margin-bottom: 17px;
  color: #373a36;
  font-size: 6px;
  letter-spacing: 0.16em;
}

.site-rail nav {
  display: grid;
  gap: 0;
}

.site-rail nav a {
  position: relative;
  min-height: 39px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  color: #4b4e49;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.site-rail nav a small {
  color: #343733;
  font-size: 6px;
}

.site-rail nav a b {
  font-weight: 400;
}

.site-rail nav a.active,
.site-rail nav a:hover,
.site-rail nav a:focus-visible {
  color: var(--text);
  outline: 0;
}

.site-rail nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 1px;
  transform: translateX(-1px);
  background: var(--text);
}

.site-rail nav a.active small {
  opacity: 0;
}

.stake-link {
  height: 38px;
  margin-top: 20px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-strong);
  font-size: 7px;
}

.stake-link b {
  font-weight: 400;
}

.stake-link:hover,
.stake-link:focus-visible {
  border-color: var(--text);
  outline: 0;
}

.rail-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: #30332f;
  font-size: 6px;
  letter-spacing: 0.08em;
}

.page-shell {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  height: calc(100vh - 72px);
  min-height: 590px;
  margin: 0;
  padding: 18px 24px 12px;
  display: grid;
  grid-template-rows: 100px minmax(0, 1fr);
  overflow: hidden;
}

.module-intro {
  min-width: 0;
  padding: 0 0 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.intro-kicker {
  display: flex;
  gap: 17px;
  color: #525550;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.intro-kicker b {
  color: var(--text);
  font-weight: 500;
}

.module-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.module-intro h1 span {
  color: #4c4f4a;
}

.intro-note {
  padding-top: 31px;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.intro-note p {
  margin: 0;
  color: #a1a49e;
  font-size: 12px;
}

.intro-note > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4f524d;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.intro-note .status-dot {
  width: 5px;
  height: 5px;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.yield-module {
  width: 100%;
  height: auto;
  min-height: 0;
  grid-template-rows: 47px 130px 45px minmax(0, 1fr) 33px;
  border-color: var(--line-strong);
  background: rgba(8, 9, 8, 0.58);
  box-shadow: none;
}

.module-header {
  min-height: 0;
  padding: 0 0 0 18px;
  background: rgba(255, 255, 255, 0.008);
}

.module-title {
  display: grid;
  gap: 3px;
}

.module-title span {
  color: #555852;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.module-title b {
  font-size: 13px;
  font-weight: 400;
}

.module-actions {
  height: 100%;
}

.switch-control {
  min-width: 150px;
  padding: 0 15px;
}

.switch-control:last-child {
  border-right: 0;
}

.switch-control i {
  width: 28px;
  height: 14px;
}

.switch-control i::after {
  top: 2px;
  width: 8px;
  height: 8px;
}

.switch-control input:checked + i::after {
  transform: translateX(13px);
}

.metric-cell {
  padding: 17px 20px 14px;
}

.metric-input input,
.result-value strong {
  font-size: clamp(28px, 2.65vw, 42px);
}

.rate-strip > span {
  padding: 8px 10px;
}

.module-chart {
  padding: 12px 20px 8px;
  background: rgba(5, 6, 5, 0.25);
}

.module-chart figcaption strong {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
}

#projectionChart {
  min-height: 178px;
}

.chart-line {
  stroke: #f0f2ec;
  stroke-width: 1.5;
}

.chart-area {
  fill: rgba(183, 255, 60, 0.045);
}

.chart-end,
.chart-hover-point {
  fill: var(--green);
}

.chart-status i {
  background: var(--text);
}

.module-footer {
  color: #454842;
}

.module-footer > span {
  font-size: 6px;
}

@media (max-width: 1100px) {
  .site-shell { grid-template-columns: 132px minmax(0, 1fr); }
  .site-header { grid-template-columns: 190px minmax(0, 1fr) auto; }
  .site-brand { padding-inline: 17px; }
  .network-state.header-contract { min-width: 0; }
  .site-rail { padding-inline: 16px; }
  .page-shell { padding-inline: 18px; }
  .switch-control { min-width: 132px; }
  .metric-cell { padding-inline: 15px; }
  .metric-cell small { font-size: 7px; }
  .module-footer nav { gap: 8px; }
}

@media (max-width: 820px) {
  .site-shell { display: block; padding-top: 62px; }
  .site-header {
    position: fixed;
    top: 0;
    height: 62px;
    grid-template-columns: 1fr auto;
  }
  .network-state { display: none; }
  .site-brand { padding-inline: 14px; }
  .site-actions { padding-right: 8px; }
  .site-actions a { display: none; }
  .site-actions .site-x-link { display: flex; }
  .site-rail { display: none; }
  .page-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px 12px 12px;
    display: block;
    overflow: visible;
  }
  .module-intro { min-height: 92px; }
  .module-intro h1 { font-size: 44px; }
  .intro-note { display: none; }
  .yield-module {
    height: auto;
    grid-template-rows: auto auto auto 390px auto;
  }
  .module-header { min-height: 54px; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { min-height: 135px; }
  .metric-cell:nth-child(2) { border-right: 0; }
  .metric-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .rate-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rate-strip > span:nth-child(4) { border-right: 0; }
  .rate-strip > span:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .module-intro { min-height: 82px; }
  .module-intro h1 { font-size: 38px; }
  .intro-kicker { font-size: 7px; }
  .module-header { padding: 0; flex-direction: column; align-items: stretch; }
  .module-title { min-height: 50px; padding: 10px 14px; justify-content: center; }
  .module-actions { width: 100%; height: 52px; border-top: 1px solid var(--line); }
  .switch-control { flex: 1; min-width: 0; border-left: 0; border-right: 1px solid var(--line); }
  .metric-row { grid-template-columns: 1fr; }
  .metric-cell { min-height: 124px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .metric-cell:last-child { border-bottom: 0; }
  .rate-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-strip > span:nth-child(2n) { border-right: 0; }
  .rate-strip > span:nth-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .yield-module { grid-template-rows: auto auto auto 360px auto; }
  .module-footer { min-height: 54px; }
  .module-footer > span { display: none; }
}

/* STREAM staking CTA + site footer */
.page-shell {
  grid-template-rows: 100px calc(100vh - 202px) auto auto auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #30332f transparent;
}

.articles-section {
  min-height: 0;
  margin-top: 18px;
  padding: clamp(30px, 3.5vw, 48px) 0 0;
  border: 1px solid var(--line-strong);
  background: rgba(7, 8, 7, .88);
}

.articles-heading {
  padding-inline: clamp(20px, 3.5vw, 46px);
  margin-bottom: clamp(26px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  align-items: end;
  gap: clamp(28px, 5vw, 68px);
}

.articles-heading h2 {
  margin: 0;
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.07em;
}

.articles-heading h2 em { color: #50544e; font-style: normal; }
.articles-heading p { max-width: 620px; margin: 0 0 5px; color: #91958e; font-size: 12px; line-height: 1.72; }
.articles-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.article-card { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-strong); background: #080908; transition: background 200ms; }
.article-card:last-child { border-right: 0; }
.article-card:hover { background: #0d0f0d; }
.article-card figure { position: relative; aspect-ratio: 16 / 8.5; margin: 0; overflow: hidden; border-bottom: 1px solid var(--line); background: #050605; }
.article-card figure::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(5,6,5,.78),transparent 60%),linear-gradient(90deg,rgba(5,6,5,.28),transparent); }
.article-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.68); transition: transform 650ms cubic-bezier(.2,.72,.2,1), filter 300ms; }
.article-card:hover img { transform: scale(1.025); filter: grayscale(1) contrast(1.16) brightness(.8); }
.article-card-copy { min-height: clamp(250px, 24vw, 292px); padding: clamp(20px, 2.2vw, 27px) clamp(18px, 2vw, 24px) 18px; display: flex; flex-direction: column; }
.article-card h3 { margin: 0 0 19px; font-size: clamp(25px, 2.4vw, 39px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.article-card p { margin: 0; color: #858982; font-size: 11px; line-height: 1.65; }
.article-read { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid #252825; color: #b3b7af; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.article-read b { color: #f3f3f0; font-weight: 400; }
.article-card:hover .article-read { color: var(--text); }

.stake-cta {
  position: relative;
  min-height: 570px;
  margin-top: 18px;
  padding: clamp(34px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(390px, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(38px, 7vw, 110px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse at 46% 50%, rgba(195, 199, 191, .045), transparent 58%),
    radial-gradient(circle at center, rgba(255,255,255,.038) 1px, transparent 1.5px),
    #070807;
  background-size: auto, 18px 18px, auto;
}

.stake-cta::before,
.stake-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55% -22%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse at center,
    transparent 0 8%,
    rgba(190, 194, 186, .075) 8.15%,
    transparent 8.45% 15%
  );
  transform: scale(.72);
  animation: stake-echo 8s cubic-bezier(.25,.62,.28,1) infinite;
  pointer-events: none;
}

.stake-cta::after { animation-delay: -4s; }

@keyframes stake-echo {
  0% { opacity: 0; transform: scale(.66); }
  18% { opacity: .72; }
  68% { opacity: .2; }
  100% { opacity: 0; transform: scale(1.1); }
}

.stake-cta-copy { position: relative; z-index: 2; }
.stake-kicker {
  color: #676b65;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .15em;
}

.stake-cta h2 {
  margin: 20px 0 22px;
  font-size: clamp(56px, 6.7vw, 108px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.075em;
}

.stake-cta h2 span { color: #525650; }
.stake-cta-copy > p {
  max-width: 520px;
  margin: 0;
  color: #969a93;
  font-size: 13px;
  line-height: 1.6;
}

.stake-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 9px; }
.stake-actions a {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #4a4e47;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  transition: color 180ms, background 180ms, border-color 180ms;
}
.stake-actions .stake-primary { min-width: 175px; border-color: var(--text); background: var(--text); color: #090a09; }
.stake-actions .stake-primary:hover { border-color: var(--green); background: var(--green); }
.stake-actions .stake-secondary:hover { border-color: var(--text); }

.stake-window {
  position: relative;
  z-index: 2;
  min-width: 0;
  border: 1px solid #4a4e47;
  background: rgba(4,5,4,.88);
  box-shadow: 18px 18px 0 rgba(255,255,255,.016);
  font-family: var(--mono);
}
.stake-window > header,
.stake-window > footer {
  min-height: 43px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6c7069;
  font-size: 7px;
  letter-spacing: .1em;
}
.stake-window > header { border-bottom: 1px solid var(--line); }
.stake-window > header span { display: flex; align-items: center; gap: 8px; }
.stake-window > header i { width: 5px; height: 5px; border-radius: 50%; background: #c8cbc5; box-shadow: 0 0 0 3px rgba(200,203,197,.09); animation: stake-status 2.4s ease-in-out infinite; }
.stake-window > header b { color: var(--text); font-weight: 400; }
.stake-window > footer { border-top: 1px solid var(--line); }
.stake-window > footer i { width: 34px; height: 1px; background: #b9bdb6; animation: stake-scan 2.4s ease-in-out infinite; transform-origin: right; }
@keyframes stake-status { 0%,100% { opacity: .45; box-shadow: 0 0 0 3px rgba(200,203,197,.05); } 50% { opacity: 1; box-shadow: 0 0 0 7px rgba(200,203,197,.02); } }
@keyframes stake-scan { 0%,100% { transform: scaleX(.2); opacity: .35; } 50% { transform: scaleX(1); opacity: 1; } }

.stake-visual { position: relative; height: 250px; overflow: hidden; }
.stake-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stake-gridline { fill: none; stroke: #1d201d; stroke-width: 1; stroke-dasharray: 3 8; }
.stake-chart-area { fill: url(#stake-chart-fill); }
.stake-chart-line { fill: none; stroke: #c8cbc5; stroke-width: 2; vector-effect: non-scaling-stroke; }
.stake-chart-point { fill: #e2e4df; filter: drop-shadow(0 0 5px rgba(226,228,223,.42)); }
.stake-chart-label,
.stake-chart-value { fill: #676b65; font-family: var(--mono); font-size: 7px; letter-spacing: .11em; }
.stake-window-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stake-window-stats span { min-width: 0; padding: 13px 14px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.stake-window-stats span:last-child { border-right: 0; }
.stake-window-stats small { color: #555952; font-size: 6px; letter-spacing: .08em; }
.stake-window-stats b { color: var(--text); font-size: 12px; font-weight: 400; }

.site-footer {
  min-height: 520px;
  margin-top: 18px;
  padding: 54px clamp(28px, 4vw, 64px) 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #0a0b0a;
  overflow: hidden;
}
.footer-top { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(130px,.65fr)); gap: 44px; }
.footer-brand { align-self: start; display: inline-flex; align-items: center; gap: 13px; font-family: var(--sans); font-size: 14px; letter-spacing: .12em; }
.footer-brand svg { width: 34px; fill: none; stroke: var(--text); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.footer-brand .brand-logo { width: 27px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-column b,
.footer-column-title { margin-bottom: 7px; color: #555952; font-family: var(--mono); font-size: 7px; font-weight: 400; letter-spacing: .12em; }
.footer-column a { position: relative; z-index: 3; min-width: 0; color: #a1a49e; font-family: var(--sans); font-size: 11px; overflow-wrap: anywhere; transition: color 160ms; }
.footer-column .footer-column-title { color: #555952; font-family: var(--mono); font-size: 7px; }
.footer-column a:hover { color: var(--green); }
.footer-legal { position: relative; z-index: 2; margin-top: 24px; padding-top: 24px; display: grid; grid-template-columns: 150px minmax(0,850px); gap: 28px; border-top: 1px solid var(--line); }
.footer-legal b { color: #555952; font-size: 7px; font-weight: 400; letter-spacing: .12em; }
.footer-legal p { margin: 0; color: #696d66; font-family: var(--sans); font-size: 9px; line-height: 1.65; }
.footer-wordmark { width: 100%; height: auto; margin: auto 0 0; display: block; overflow: visible; pointer-events: none; user-select: none; -webkit-user-select: none; }
.footer-wordmark text { fill: #f0f2ed; font-family: var(--sans); font-size: 250px; font-weight: 500; letter-spacing: -.075em; pointer-events: none; user-select: none; -webkit-user-select: none; }
.footer-bottom { position: relative; z-index: 2; min-height: 42px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #2a2d29; color: #5d615a; font-size: 7px; letter-spacing: .08em; }

@media (max-width: 1100px) {
  .stake-cta { grid-template-columns: minmax(350px,.94fr) minmax(0,1.06fr); padding: 42px 36px; gap: 42px; }
  .footer-top { grid-template-columns: 1fr repeat(3, minmax(110px,.6fr)); gap: 26px; }
  .articles-section { padding-top: 36px; }
  .articles-heading { padding-inline: 30px; }
  .article-card-copy { min-height: 290px; padding-inline: 17px; }
}

@media (max-width: 960px) {
  .articles-heading { grid-template-columns: 1fr; gap: 16px; }
  .articles-heading p { max-width: 650px; margin-bottom: 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card { display: grid; grid-template-columns: minmax(230px, .82fr) minmax(0, 1.18fr); border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .article-card:last-child { border-bottom: 0; }
  .article-card figure { height: 100%; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .article-card-copy { min-height: 245px; }
}

@media (max-width: 820px) {
  .page-shell { height: auto; grid-template-rows: none; overflow: visible; }
  .stake-cta { min-height: 0; margin-top: 14px; padding: 54px 24px 24px; grid-template-columns: 1fr; gap: 42px; }
  .stake-cta h2 { font-size: clamp(54px, 14vw, 92px); }
  .stake-window { width: 100%; }
  .site-footer { min-height: 0; margin-top: 14px; padding: 38px 24px 16px; }
  .articles-section { min-height: 0; margin-top: 14px; padding-top: 36px; }
  .articles-heading { padding-inline: 24px; }
  .articles-heading { grid-template-columns: 1fr; gap: 22px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1fr); }
  .article-card figure { height: 100%; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .article-card-copy { min-height: 270px; }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 20px; }
  .footer-legal { grid-template-columns: 1fr; gap: 12px; }
  .footer-wordmark { margin-top: 74px; }
}

@media (max-width: 620px) {
  .articles-section { padding-top: 30px; }
  .articles-heading { padding-inline: 16px; }
  .articles-heading h2 { font-size: clamp(46px, 14vw, 64px); }
  .article-card { display: flex; }
  .article-card figure { aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-card-copy { min-height: 250px; }
}

@media (max-width: 520px) {
  .stake-cta { padding-inline: 16px; }
  .stake-actions { display: grid; }
  .stake-actions a { width: 100%; }
  .stake-visual { height: 210px; }
  .stake-window-stats { grid-template-columns: 1fr; }
  .stake-window-stats span { border-right: 0; border-bottom: 1px solid var(--line); }
  .stake-window-stats span:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; }
  .articles-heading { padding-inline: 14px; }
  .articles-heading h2 { font-size: 52px; }
  .article-card { display: flex; }
  .article-card figure { aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-card-copy { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .stake-cta::before, .stake-cta::after, .stake-window > header i, .stake-window > footer i { animation: none !important; }
  .stake-window animate { display: none; }
}

/* Interactive pixel header */
.page-shell {
  grid-template-rows: 226px minmax(640px, calc(100vh - 96px)) auto auto auto;
}

.pixel-hero {
  position: relative;
  min-width: 0;
  height: 210px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #323532;
  background: #080908;
  color: #f1f5ef;
  cursor: default;
  isolation: isolate;
}

.pixel-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2,3,2,.36), transparent 27%, rgba(255,255,255,.035) 52%, rgba(0,0,0,.5) 100%);
  filter: none;
  opacity: 1;
  animation: none;
}

.pixel-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.64), transparent 24%, rgba(255,255,255,.11) 48%, transparent 70%, rgba(0,0,0,.72));
  background-size: 220% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  animation: pixel-hero-shimmer 13s ease-in-out infinite;
}

@keyframes pixel-hero-shimmer {
  0%, 16% { background-position: 120% 0; opacity: .28; }
  50% { opacity: .68; }
  84%, 100% { background-position: -120% 0; opacity: .28; }
}

@keyframes pixel-hero-grid {
  0% { background-position: 0 0, 21px 0, 48px 0, 0 0; opacity: .72; }
  50% { opacity: .9; }
  100% { background-position: 73px 0, -88px 0, 199px 0, 0 0; opacity: .78; }
}

.pixel-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(38, minmax(0, 1fr));
  gap: 0;
  background: #0a0b0a;
  overflow: hidden;
}

.pixel-column {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pixel-cell {
  min-height: 8px;
  border: 0;
  box-shadow: none;
  animation: pixel-cell-pulse var(--pulse-speed, 10s) steps(6, end) infinite alternate;
  animation-delay: var(--pulse-delay, 0s);
}

@keyframes pixel-cell-pulse {
  0%, 18% { filter: brightness(.72); }
  52% { filter: brightness(1.16); }
  100% { filter: brightness(.86); }
}

.pixel-hero canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pixel-hero-top,
.pixel-hero-bottom {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
}

.pixel-hero-top {
  top: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
}

.pixel-hero-ca {
  min-width: 0;
  max-width: min(480px, 54vw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(5,6,5,.82);
  color: #f2f2ef;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  transition: background 180ms ease, border-color 180ms ease;
}

.pixel-hero-ca:hover,
.pixel-hero-ca:focus-visible {
  border-color: #f2f2ef;
  background: rgba(255,255,255,.08);
  outline: none;
}

.pixel-hero-ca span {
  flex: 0 0 auto;
  font-weight: 500;
}

.pixel-hero-ca code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

.pixel-hero-bottom {
  bottom: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.pixel-hero h1 {
  margin: 0;
  color: #f5f5f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 4.7vw, 68px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
  white-space: nowrap;
}

html,
body {
  max-width: 100%;
}

body.landing-page {
  display: block;
  overflow: visible;
}

html {
  overflow-x: clip;
}

.site-shell {
  max-width: 100%;
  overflow: visible;
}

.page-shell,
.protocol-dashboard,
.articles-section {
  min-width: 0;
}

.pixel-hero-bottom p {
  margin: 0;
  color: rgba(245,245,242,.82);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1100px) {
  .page-shell { grid-template-rows: 216px minmax(680px, calc(100vh - 82px)) auto auto auto; }
  .pixel-hero { height: 200px; }
  .pixel-hero h1 { font-size: clamp(43px, 5.7vw, 60px); }
}

@media (max-width: 820px) {
  .page-shell { grid-template-rows: 226px auto auto auto auto; }
  .pixel-hero { height: 210px; margin-bottom: 14px; }
  .pixel-hero-top, .pixel-hero-bottom { left: 20px; right: 20px; }
  .pixel-hero h1 { font-size: clamp(36px, 7vw, 52px); }
  .pixel-hero-ca { max-width: 58vw; }
}

@media (max-width: 560px) {
  .page-shell { grid-template-rows: 254px auto auto auto auto; }
  .pixel-hero { height: 238px; }
  .pixel-hero-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pixel-hero-ca { width: 100%; max-width: none; }
  .pixel-hero-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pixel-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .pixel-hero-bottom p { text-align: left; }
}

/* Landing dashboard — reference layout */
.page-shell > .pixel-hero[hidden] { display: none !important; }

.protocol-dashboard {
  min-height: calc(100vh - 104px);
  margin: 0 0 14px;
  border: 0;
  background: transparent;
}

.protocol-dashboard-head {
  min-height: 100px;
  padding: 14px 0 18px;
  grid-template-columns: 1fr auto;
  border-bottom: 0;
}

.protocol-dashboard-head h2 {
  margin-top: 12px;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: .9;
  white-space: nowrap;
}

.dashboard-intro-note {
  padding-top: 20px;
  display: grid;
  justify-items: end;
  gap: 13px;
}

.dashboard-intro-note p { margin: 0; color: #a3a69f; font-size: 14px; }
.dashboard-intro-note span { display: flex; align-items: center; gap: 8px; color: #545750; font: 7px var(--mono); letter-spacing: .1em; }
.dashboard-intro-note span i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.11); }
.dashboard-intro-note span b { font-weight: 400; }

.protocol-dashboard-grid {
  grid-template-columns: .42fr .58fr;
  grid-template-rows: 365px 322px;
  gap: 10px;
  padding: 0;
}

.protocol-dashboard-grid > article { padding: 22px 24px; }
.protocol-dashboard-grid h3 { font-size: 17px; }
.epoch-panel > strong { margin-top: 9px; font-size: 31px; }
.epoch-clock { width: 154px; height: 154px; margin-block: 17px; }
.fees-primary { min-height: 132px; }
.fees-primary strong { font-size: clamp(43px, 4.6vw, 66px); }
.telemetry-lines { min-height: 104px; justify-content: stretch; }
.treasury-panel { grid-template-columns: .48fr .52fr; }
.treasury-visual i { width: 105px; height: 63px; }
.strategy-panel > strong { margin-top: 20px; font-size: clamp(40px, 4.1vw, 59px); }
.strategy-panel > p { margin-top: 10px; }
.strategy-panel svg { height: 60px; margin-top: 4px; }
.strategy-panel > footer { margin-top: 0; }

.strategy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  margin-top: 10px;
}

.strategy-split span {
  min-height: 31px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--line-strong);
  color: var(--faint);
  font: 7px var(--mono);
}

.strategy-split span:last-child { border: 0; }
.strategy-split b { color: var(--text); font-size: 10px; }
.protocol-routing { margin-top: 10px; border: 1px solid var(--line-strong); }

.site-rail nav { gap: 7px; }
.site-rail nav a {
  height: 42px;
  padding: 0 10px;
  grid-template-columns: 18px 1fr;
  border: 1px solid transparent;
  border-radius: 8px;
}
.site-rail nav a.active,
.site-rail nav a:hover,
.site-rail nav a:focus-visible { border-color: var(--line-strong); background: #111311; }
.site-rail nav a.active::before { display: none; }
.site-rail nav a.active small { opacity: 1; }
.site-rail nav a small { font-size: 0; color: #7a7e76; }
.site-rail nav a small::after { font: 10px var(--mono); }
.site-rail nav a:nth-child(1) small::after { content: "⌁"; }
.site-rail nav a:nth-child(2) small::after { content: "▥"; }
.site-rail nav a:nth-child(3) small::after { content: "⌘"; }
.site-rail nav a:nth-child(4) small::after { content: "◇"; }
.site-rail nav a:nth-child(5) small::after { content: "▤"; }
.site-rail nav a:nth-child(6) small::after { content: "▣"; }
.site-rail nav a:nth-child(7) small::after { content: "𝕏"; }

@media (max-width: 1100px) {
  .protocol-dashboard-grid { grid-template-rows: 350px 315px; }
  .protocol-dashboard-grid > article { padding: 19px; }
}

@media (max-width: 900px) {
  .protocol-dashboard { min-height: 0; }
  .protocol-dashboard-head { grid-template-columns: 1fr; }
  .protocol-dashboard-head h2 { white-space: normal; }
  .dashboard-intro-note { justify-items: start; padding-top: 0; }
  .protocol-dashboard-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-hero { cursor: default; }
  .pixel-hero::before, .pixel-hero::after, .pixel-cell { animation: none; }
}

/* Full landing flow */
.page-shell {
  height: auto;
  min-height: 0;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.site-rail {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  align-self: start;
}

.pixel-hero { order: 1; flex: 0 0 auto; scroll-margin-top: 90px; }
.protocol-dashboard { order: 2; flex: 0 0 auto; scroll-margin-top: 90px; }
.yield-module { order: 2; flex: 0 0 auto; min-height: 640px; scroll-margin-top: 90px; }
.articles-section { order: 6; }
.landing-faq { order: 7; }
.stake-cta { order: 8; }
.site-footer { order: 9; }

.protocol-dashboard {
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  background: #090a09;
}

.landing-calculator-source { display: none !important; }

.protocol-dashboard-head {
  min-height: 142px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.protocol-dashboard-head span,
.protocol-dashboard article header > span,
.protocol-dashboard article header div > span {
  color: var(--faint);
  font: 9px var(--mono);
  letter-spacing: .15em;
}

.protocol-dashboard-head h2 {
  margin: 10px 0 0;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 500;
}

.protocol-dashboard-head h2 em { color: #555954; font-style: normal; }
.protocol-dashboard-head > p { max-width: 430px; justify-self: end; margin: 0; color: #9a9e97; font-size: 15px; line-height: 1.5; }

.protocol-dashboard-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  grid-template-rows: repeat(2, minmax(300px, auto));
  gap: 10px;
  padding: 10px;
}

.protocol-dashboard-grid > article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: #0a0b0a;
}

.protocol-dashboard-grid article > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.protocol-dashboard-grid h3 { margin: 7px 0 0; font-size: 18px; letter-spacing: -.03em; }
.protocol-dashboard-grid article > header > b { border: 1px solid var(--line-strong); padding: 7px 9px; font: 8px var(--mono); letter-spacing: .1em; }
.epoch-panel > header > b i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--text); }
.epoch-panel > strong { display: block; margin-top: 10px; font: 34px var(--mono); }

.epoch-clock {
  width: 160px;
  height: 160px;
  margin: 14px auto 20px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid #2a2d29;
  border-top-color: var(--text);
  border-right-color: var(--text);
  border-radius: 50%;
}

.epoch-clock b { font: 30px var(--mono); }
.epoch-clock small { margin-top: 8px; color: var(--faint); font: 8px var(--mono); letter-spacing: .14em; }
.protocol-dashboard-grid article > footer { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.protocol-dashboard-grid article > footer span { padding: 12px; border-right: 1px solid var(--line); }
.protocol-dashboard-grid article > footer span:last-child { border: 0; }
.protocol-dashboard-grid footer small { display: block; margin-bottom: 7px; color: var(--faint); font-size: 7px; letter-spacing: .11em; }
.protocol-dashboard-grid footer b { font: 11px var(--mono); }

.fees-primary { min-height: 128px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; border-bottom: 1px solid var(--line); }
.fees-primary > span { padding: 18px 0; }
.fees-primary > span:last-child { padding-left: 24px; border-left: 1px solid var(--line); }
.fees-primary small,.treasury-value small { display: block; margin-bottom: 10px; color: var(--faint); font: 8px var(--mono); letter-spacing: .12em; }
.fees-primary strong { font: clamp(42px, 5vw, 68px) var(--mono); letter-spacing: -.08em; }
.fees-primary em,.treasury-value em,.strategy-panel > em { margin-left: 8px; color: var(--muted); font: 9px var(--mono); font-style: normal; }
.fees-primary b { font: 23px var(--mono); }
.telemetry-lines { display: grid; gap: 8px; padding: 15px 0; }
.telemetry-lines i { height: 1px; background: linear-gradient(90deg,#262925 0 12%,transparent 12% 16%,#1d1f1d 16% 82%,transparent 82%); }
.live-transactions {
  min-height: 116px;
  display: grid;
  align-content: stretch;
  border-bottom: 1px solid var(--line);
}

.transaction-row {
  min-width: 0;
  min-height: 29px;
  display: grid;
  grid-template-columns: 44px minmax(88px, .9fr) 82px minmax(88px, 1fr) 14px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #1f211f;
  color: #7e827c;
  font: 8px var(--mono);
  opacity: 0;
  animation: transaction-enter 420ms ease forwards;
  animation-delay: calc(var(--trade-index) * 70ms);
}

.transaction-row:first-child { border-top: 0; }
.transaction-row:hover,
.transaction-row:focus-visible { color: var(--text); outline: 0; }
.transaction-side { font-weight: 700; letter-spacing: .08em; }
.transaction-side.buy { color: #8db795; }
.transaction-side.sell { color: #b98f8f; }
.transaction-row strong { color: var(--text); font-weight: 500; }
.transaction-row time { white-space: nowrap; }
.transaction-row code { overflow: hidden; color: #5d615b; font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.transaction-row i { color: var(--text); font-style: normal; text-align: right; }
.transaction-empty { align-self: center; color: var(--faint); font: 8px var(--mono); letter-spacing: .1em; }

@keyframes transaction-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.fees-panel > footer { color: var(--faint); font: 8px var(--mono); }
.fees-panel > footer span:last-child { text-align: right; }

.treasury-panel { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; grid-template-rows: auto 1fr auto; }
.treasury-panel > header { grid-column: 1/-1; }
.treasury-visual { position: relative; min-height: 150px; align-self: center; }
.treasury-visual i { position: absolute; left: 12px; width: 96px; height: 58px; border: 1px solid #656961; transform: skewY(25deg); animation: treasury-layer-breathe 4.8s ease-in-out infinite alternate; }
.treasury-visual i:nth-child(1){top:26px}.treasury-visual i:nth-child(2){top:38px}.treasury-visual i:nth-child(3){top:50px}.treasury-visual i:nth-child(4){top:62px}
.treasury-visual i:nth-child(2) { animation-delay: -.8s; }
.treasury-visual i:nth-child(3) { animation-delay: -1.6s; }
.treasury-visual i:nth-child(4) { animation-delay: -2.4s; }

@keyframes treasury-layer-breathe {
  0% { border-color: #484c46; transform: translateY(0) skewY(25deg); }
  55% { border-color: #8b9087; }
  100% { border-color: #646961; transform: translateY(-5px) skewY(25deg); }
}
.treasury-value { align-self: center; }
.treasury-value strong { font: clamp(38px, 4vw, 58px) var(--mono); letter-spacing: -.07em; }
.treasury-panel > footer { grid-column: 1/-1; }

.strategy-panel > strong { display: inline-block; margin-top: 24px; font: clamp(38px, 4.5vw, 62px) var(--mono); letter-spacing: -.08em; }
.strategy-panel > p { margin: 12px 0 8px; font: 15px var(--mono); }
.strategy-panel svg { width: 100%; height: 78px; margin: 8px 0 4px; }
.strategy-panel svg path { fill: none; stroke: #6d716a; stroke-width: 1; }
.strategy-panel svg > path:first-child { stroke-dasharray: 760; stroke-dashoffset: 760; animation: strategy-line-draw 6s ease-in-out infinite; }
.strategy-panel svg path.dash { stroke: #343733; stroke-dasharray: 3 8; animation: strategy-dash-flow 9s linear infinite; }
.strategy-panel .strategy-orb { fill: #f2f3ef; filter: drop-shadow(0 0 5px rgba(255,255,255,.5)); }

@keyframes strategy-line-draw {
  0% { stroke-dashoffset: 760; opacity: .25; }
  42%, 78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -760; opacity: .25; }
}

@keyframes strategy-dash-flow { to { stroke-dashoffset: -110; } }

.protocol-routing { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.protocol-routing > span { min-height: 70px; padding: 13px 20px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--line); }
.protocol-routing > span:last-child { border: 0; }
.protocol-routing small { color: var(--faint); font: 8px var(--mono); letter-spacing: .1em; }
.protocol-routing b,.protocol-routing strong { font: 20px var(--mono); }

@media (max-width: 900px) {
  .protocol-dashboard-head { grid-template-columns: 1fr; }
  .protocol-dashboard-head > p { justify-self: start; }
  .protocol-dashboard-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .protocol-routing { grid-template-columns: 1fr 1fr; }
  .protocol-routing > span:nth-child(2) { border-right: 0; }
  .protocol-routing > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .protocol-dashboard-head { padding: 28px 18px; }
  .protocol-dashboard-grid { padding: 7px; gap: 7px; }
  .protocol-dashboard-grid > article { padding: 18px 14px; }
  .fees-primary { grid-template-columns: 1fr; }
  .fees-primary > span:last-child { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .treasury-panel { grid-template-columns: 1fr 1fr; }
  .protocol-routing { grid-template-columns: 1fr; }
  .protocol-routing > span { border-right: 0; border-bottom: 1px solid var(--line); }
}


.section-heading {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  align-items: end;
  gap: 54px;
}
.section-heading > div > span {
  color: #656961;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .15em;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(54px,6vw,92px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.07em;
}
.section-heading h2 em { color: #50544e; font-style: normal; }
.section-heading > p {
  max-width: 490px;
  margin: 0 0 6px;
  color: #92968f;
  font-size: 12px;
  line-height: 1.65;
}


@media (max-width: 1100px) {
}

@media (max-width: 820px) {
  .site-rail { display: none; }
  .page-shell { padding-inline: 12px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .section-heading h2 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
  .partners-section::before,
  .partners-section::after { animation: none; }
}

/* Landing FAQ */
.landing-faq {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  background: #070807;
  scroll-margin-top: 90px;
  overflow: hidden;
}

.faq-layout {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(460px, 1.1fr);
}

.faq-copy {
  min-width: 0;
  padding: clamp(34px, 4.2vw, 62px);
  display: flex;
  flex-direction: column;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.07em;
}

.faq-heading h2 em { color: #50544e; font-style: normal; }
.faq-heading p { max-width: 510px; margin: 25px 0 0; color: #8d918a; font-size: 12px; line-height: 1.65; }

.landing-faq-grid {
  margin-top: auto;
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.landing-faq details {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.landing-faq details:first-child { border-top: 1px solid var(--line); }

.landing-faq summary {
  min-height: 69px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary:focus-visible { outline: 1px solid #777b74; outline-offset: 4px; }
.landing-faq summary:hover b { color: #fff; }
.landing-faq summary b { color: #d9dbd6; font: 500 10px var(--mono); line-height: 1.4; letter-spacing: .085em; }
.landing-faq summary i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #31342f; color: #858982; font: normal 16px var(--mono); transition: transform .22s ease, color .22s ease, border-color .22s ease; }
.landing-faq details[open] summary i { transform: rotate(45deg); color: var(--text); border-color: #62665f; }

.landing-faq details p {
  max-width: 590px;
  margin: -2px 48px 23px 0;
  color: #949891;
  font-size: 12px;
  line-height: 1.65;
}

.faq-visual {
  min-width: 0;
  min-height: 650px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--line-strong);
  background: radial-gradient(circle at 52% 48%, rgba(255,255,255,.055), transparent 33%), linear-gradient(135deg, rgba(255,255,255,.018), transparent 42%), #050605;
}

.faq-visual::before,
.faq-visual::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255,255,255,.045);
  transform: rotate(6deg);
  pointer-events: none;
}

.faq-visual::after { inset: 15%; transform: rotate(-8deg); border-color: rgba(255,255,255,.025); }
.faq-visual svg { width: min(94%, 700px); height: auto; position: relative; z-index: 1; overflow: visible; }
#faq-dot-grid circle { fill: #696d66; }
.faq-dot-field { fill-opacity: .28; }

.faq-orbit ellipse {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
  stroke-dasharray: 3 11;
  animation: faq-orbit-shift 18s linear infinite;
}

.faq-orbit ellipse:last-child { animation-direction: reverse; animation-duration: 13s; }
.faq-routes use { fill: none; stroke: #777b74; stroke-width: 1.2; stroke-dasharray: 5 10; opacity: .56; animation: faq-route-flow 2.4s linear infinite; }

.faq-cube {
  transform-box: fill-box;
  transform-origin: center;
  animation: faq-cube-breathe 7.5s ease-in-out infinite;
}

.faq-cube-b { animation-delay: -1.8s; }
.faq-cube-c { animation-delay: -3.7s; }
.faq-cube-d { animation-delay: -5.5s; }
.faq-cube-face { fill: rgba(255,255,255,.025); stroke: none; }
.faq-cube-top { fill: url(#faq-face-light); }
.faq-cube-left { fill: rgba(255,255,255,.045); }
.faq-cube-right { fill: rgba(255,255,255,.012); }
.faq-cube-edge { fill: none; stroke: #b8bbb5; stroke-width: 1.35; vector-effect: non-scaling-stroke; }

.faq-cube-core { filter: drop-shadow(0 0 18px rgba(255,255,255,.1)); animation: faq-core-float 6s ease-in-out infinite; }
.faq-cube-core .faq-cube-top { fill: rgba(255,255,255,.22); }
.faq-cube-core .faq-cube-left { fill: rgba(255,255,255,.095); }
.faq-cube-core .faq-cube-right { fill: rgba(255,255,255,.04); }
.faq-cube-core .faq-cube-edge { stroke: #f2f3ef; stroke-width: 1.55; }

.faq-packets circle { fill: #f4f5f1; filter: drop-shadow(0 0 7px rgba(255,255,255,.8)); }
.faq-fragments rect { fill: rgba(255,255,255,.65); animation: faq-fragment 4.2s ease-in-out infinite; }
.faq-fragments rect:nth-child(2n) { animation-delay: -2.1s; }
.faq-fragments rect:nth-child(3n) { animation-delay: -3.2s; }

@keyframes faq-route-flow { to { stroke-dashoffset: -30; } }
@keyframes faq-orbit-shift { to { stroke-dashoffset: -70; } }
@keyframes faq-cube-breathe {
  0%, 100% { opacity: .38; transform: translateY(0) scale(.96); }
  18%, 38% { opacity: 1; transform: translateY(-7px) scale(1.035); }
  58% { opacity: .48; transform: translateY(2px) scale(.98); }
}
@keyframes faq-core-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.6deg); }
}
@keyframes faq-fragment {
  0%, 100% { opacity: .18; transform: translateY(0); }
  50% { opacity: .9; transform: translateY(-9px); }
}

@media (max-width: 1050px) {
  .faq-layout { grid-template-columns: minmax(340px, .92fr) minmax(390px, 1.08fr); }
  .faq-copy { padding: 38px 32px; }
  .faq-heading h2 { font-size: clamp(52px, 6.8vw, 74px); }
}

@media (max-width: 820px) {
  .landing-faq { margin-top: 14px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-copy { min-height: 610px; padding: 42px 24px 30px; }
  .faq-visual { min-height: 500px; border-top: 1px solid var(--line-strong); border-left: 0; }
}

@media (max-width: 560px) {
  .faq-copy { min-height: 0; padding: 30px 16px 24px; }
  .faq-heading h2 { font-size: clamp(46px, 14vw, 58px); }
  .faq-heading p { margin-top: 18px; }
  .landing-faq-grid { margin-top: 38px; padding-top: 0; }
  .landing-faq summary { min-height: 64px; gap: 14px; }
  .landing-faq summary b { font-size: 9px; }
  .landing-faq details p { margin-right: 36px; font-size: 11px; }
  .faq-visual { min-height: 370px; }
  .faq-visual svg { width: 108%; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-orbit ellipse,
  .faq-routes use,
  .faq-cube,
  .faq-cube-core,
  .faq-fragments rect { animation: none !important; }
  .faq-packets { display: none; }
}

/* Final landing dashboard alignment */
.page-shell > .pixel-hero[hidden] { display: none !important; }
.protocol-dashboard { min-height: 0; margin: 0 0 14px; border: 0; background: transparent; }
.protocol-dashboard-head { min-height: 100px; padding: 14px 0 18px; grid-template-columns: 1fr auto; border-bottom: 0; }
.protocol-dashboard-head h2 { margin: 0; font-size: clamp(40px,4.2vw,64px); line-height: .9; white-space: nowrap; }
.dashboard-intro-note { padding-top: 0; display: grid; align-self: center; justify-items: end; gap: 0; }
.dashboard-intro-note p { margin: 0; color: #a3a69f; font-size: 14px; }
.dashboard-intro-note span { display: flex; align-items: center; gap: 8px; color: #545750; font: 7px var(--mono); letter-spacing: .1em; }
.dashboard-intro-note span i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.11); }
.dashboard-intro-note span b { font-weight: 400; }
.protocol-dashboard-grid { grid-template-columns: .42fr .58fr; grid-template-rows: minmax(365px,auto) minmax(390px,auto); gap: 10px; padding: 0; }
.protocol-dashboard-grid > article { padding: 22px 24px; }
.protocol-dashboard-grid h3 { font-size: 17px; }
.epoch-panel > strong { margin-top: 9px; font-size: 31px; }
.epoch-clock { width: 154px; height: 154px; margin-block: 17px; }
.fees-primary { min-height: 132px; }
.fees-primary strong { font-size: clamp(43px,4.6vw,66px); }
.live-transactions { min-height: 116px; }
.treasury-panel { grid-template-columns: .48fr .52fr; }
.treasury-visual i { width: 105px; height: 63px; }
.strategy-panel {
  min-height: 390px;
  display: grid;
  grid-template-rows: auto auto auto minmax(48px,1fr) auto auto;
  overflow: hidden;
}
.strategy-total { min-width: 0; margin-top: 18px; display: flex; align-items: baseline; }
.strategy-total strong { min-width: 0; font: clamp(40px,4.1vw,59px) var(--mono); letter-spacing: -.08em; }
.strategy-total em { margin-left: 8px; color: var(--muted); font: 9px var(--mono); font-style: normal; }
.strategy-panel > p { margin-top: 10px; }
.strategy-panel svg { height: 100%; min-height: 48px; max-height: 64px; margin-top: 4px; }
.strategy-panel > footer { margin-top: 0; }
.strategy-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); margin-top: 10px; }
.strategy-split span { min-height: 31px; padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; border-right: 1px solid var(--line-strong); color: var(--faint); font: 7px var(--mono); }
.strategy-split span:last-child { border: 0; }
.strategy-split b { color: var(--text); font-size: 10px; }
.protocol-routing { margin-top: 10px; border: 1px solid var(--line-strong); }

@media (max-width: 1100px) {
  .protocol-dashboard-grid { grid-template-rows: minmax(350px,auto) minmax(390px,auto); }
  .protocol-dashboard-grid > article { padding: 19px; }
}
@media (max-width: 900px) {
  .protocol-dashboard { min-height: 0; }
  .protocol-dashboard-head { grid-template-columns: 1fr; }
  .protocol-dashboard-head h2 { white-space: normal; }
  .dashboard-intro-note { justify-items: start; padding-top: 0; }
  .protocol-dashboard-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .strategy-panel { min-height: 390px; }
  .transaction-row { grid-template-columns: 42px minmax(82px,.8fr) 80px minmax(70px,1fr) 14px; }
}

@media (max-width: 560px) {
  .strategy-panel { min-height: 430px; }
  .strategy-total strong { font-size: clamp(34px,12vw,52px); }
  .strategy-split { grid-template-columns: 1fr; }
  .strategy-split span { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .strategy-split span:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .transaction-row,
  .treasury-visual i,
  .strategy-panel svg > path:first-child,
  .strategy-panel svg path.dash { animation: none !important; opacity: 1; }
}

/* Final surface unification: no lighter panel behind the opening dashboard. */
html,
body,
body.landing-page,
.site-shell,
.page-shell,
.site-rail,
.protocol-dashboard,
.protocol-dashboard-head,
.protocol-dashboard-grid,
.protocol-dashboard-grid > article {
  background: #050605;
}

