:root {
  --ink: #080a0e;
  --panel: #10141a;
  --panel-2: #151a21;
  --panel-3: #1d232b;
  --line: #2a313a;
  --muted: #87919c;
  --soft: #b8c1c8;
  --paper: #f3f2eb;
  --cyan: #8ef3db;
  --acid: #d8ff7c;
  --amber: #f6c46b;
  --coral: #ff9179;
  --blue: #9aa9ff;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Scroll-led product walkthrough. The scene stays pinned while the six product surfaces move through it. */
.scroll-anchor {
  scroll-margin-top: 88px;
}

.hero-scroll-cue {
  position: absolute;
  right: max(28px, 10vw);
  bottom: 26px;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: #8e948d;
  border: 0;
  background: transparent;
  font: 9px var(--mono);
  letter-spacing: 0.11em;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.hero-scroll-cue:hover {
  color: var(--paper);
  transform: translateY(3px);
}

.hero-scroll-cue svg {
  color: var(--cyan);
  animation: cue-breathe 1.8s ease-in-out infinite;
}

@keyframes cue-breathe {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

.experience-index {
  border-top: 1px solid #303430;
  border-bottom: 1px solid #303430;
  background: #0a0d0d;
}

.experience-index-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #778078;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
}

.experience-index-inner i {
  width: 36px;
  height: 1px;
  background: #374038;
}

.scroll-story {
  position: relative;
  height: 600vh;
  background: #0a0d0d;
}

.story-sticky {
  position: sticky;
  top: 76px;
  height: calc(100svh - 76px);
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid #303830;
  background: #0a0d0d;
  isolation: isolate;
}

.story-sticky::before,
.story-sticky::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.story-sticky::before {
  top: 50%;
  left: 63%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(142, 243, 219, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.story-sticky::after {
  top: 50%;
  left: 63%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(246, 196, 107, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(32deg) skewX(-20deg);
}

.story-progress-head {
  position: absolute;
  top: 28px;
  left: max(28px, 6vw);
  right: max(28px, 6vw);
  z-index: 8;
  display: flex;
  justify-content: space-between;
  color: #768078;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
}

.story-progress-head b {
  color: var(--paper);
  font-weight: 500;
}

.story-grid {
  width: min(1440px, calc(100% - 112px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: 42px;
  padding: 76px 0 48px;
}

.story-copy-stack {
  position: relative;
  min-height: 350px;
}

.story-copy {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(430px, 100%);
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.story-copy.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.story-copy h2 {
  max-width: 410px;
  margin: 22px 0 20px;
  color: var(--paper);
  font-size: clamp(38px, 4.25vw, 68px);
  line-height: 0.98;
}

.story-copy p {
  max-width: 380px;
  margin-bottom: 28px;
  color: #9ca69f;
  font-size: 14px;
  line-height: 1.7;
}

.story-visual {
  position: relative;
  height: min(600px, calc(100svh - 150px));
  min-height: 500px;
  perspective: 1400px;
  transform-style: preserve-3d;
  --story-tilt-x: 0deg;
  --story-tilt-y: 0deg;
}

.story-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-field::before,
.story-field::after,
.story-field span {
  position: absolute;
  content: "";
  border: 1px solid rgba(142, 243, 219, 0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg) skewX(-19deg);
}

.story-field::before {
  top: 50%;
  left: 53%;
  width: 700px;
  height: 220px;
}

.story-field::after {
  top: 50%;
  left: 53%;
  width: 560px;
  height: 180px;
  border-color: rgba(255, 145, 121, 0.13);
  transform: translate(-50%, -50%) rotate(25deg) skewX(-19deg);
}

.story-field span:nth-child(1) {
  top: 50%;
  left: 53%;
  width: 410px;
  height: 410px;
  border-color: rgba(216, 255, 124, 0.09);
  transform: translate(-50%, -50%);
}

.story-field span:nth-child(2) {
  top: 20%;
  left: 77%;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 0;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
  transform: none;
}

.story-field span:nth-child(3) {
  top: 76%;
  left: 18%;
  width: 4px;
  height: 4px;
  border: 0;
  border-radius: 0;
  background: var(--coral);
  box-shadow: 0 0 16px var(--coral);
  transform: none;
}

.story-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--card-z, 1);
  width: min(560px, 94%);
  height: min(500px, 86%);
  min-height: 470px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(243, 242, 235, 0.22);
  border-radius: 5px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
  opacity: var(--card-opacity, 0);
  transform: translate3d(
      calc(-50% + var(--card-x, 0px)),
      calc(-50% + var(--card-y, 0px)),
      0
    )
    rotate(var(--card-rotate, 0deg)) rotateX(var(--story-tilt-y))
    rotateY(var(--story-tilt-x)) scale(var(--card-scale, 0.8));
  filter: blur(var(--card-blur, 0px));
  transform-style: preserve-3d;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    filter 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  will-change: transform, opacity, filter;
}

.story-card.is-active {
  border-color: rgba(243, 242, 235, 0.5);
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.58);
  pointer-events: auto;
}

.story-card-market {
  color: var(--paper);
  background: #111a18;
  border-color: rgba(142, 243, 219, 0.38);
}

.story-card-builder {
  color: #1c211d;
  background: #e8e5d9;
  border-color: #c1c8b8;
}

.story-card-bid {
  color: #f3eee9;
  background: #211918;
  border-color: rgba(255, 145, 121, 0.46);
}

.story-card-settlement {
  color: #e7fbf8;
  background: #101c20;
  border-color: rgba(142, 243, 219, 0.4);
}

.story-card-account {
  color: var(--paper);
  background: #171a21;
  border-color: rgba(154, 169, 255, 0.38);
}

.story-card-protocol {
  color: var(--paper);
  background: #111715;
  border-color: rgba(216, 255, 124, 0.36);
}

.story-card-head,
.story-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #87938b;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}

.story-card-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(243, 242, 235, 0.12);
}

.story-card-builder .story-card-head,
.story-card-builder .story-card-foot {
  color: #69766b;
}

.story-card-bid .story-card-head,
.story-card-bid .story-card-foot {
  color: #bb9b91;
}

.story-card-settlement .story-card-head,
.story-card-settlement .story-card-foot {
  color: #86b4af;
}

.story-card-account .story-card-head,
.story-card-account .story-card-foot {
  color: #9aa1c4;
}

.story-card-protocol .story-card-head,
.story-card-protocol .story-card-foot {
  color: #a2b38d;
}

.story-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
}

.story-card-title {
  margin-top: 36px;
}

.story-card-title span,
.bid-hero small,
.account-mini-total small,
.protocol-mini-title small {
  display: block;
  color: #89988d;
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-card-title strong {
  display: block;
  max-width: 380px;
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.story-market-rows {
  margin-top: 35px;
  border-top: 1px solid rgba(243, 242, 235, 0.14);
}

.story-market-rows > div,
.account-mini-row,
.protocol-mini-list > div {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid rgba(243, 242, 235, 0.11);
  font-size: 12px;
}

.story-market-rows small,
.story-market-rows b,
.account-mini-row small,
.account-mini-row b {
  font: 10px var(--mono);
}

.story-market-rows small {
  color: #a4ada7;
}

.story-market-rows b {
  color: var(--acid);
  font-weight: 500;
}

.story-asset,
.network-monogram {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--cyan);
  font: 10px var(--mono);
}

.story-market-rows > div:nth-child(2) .story-asset,
.account-mini-row:nth-child(2) .story-asset {
  color: #291f16;
  background: var(--amber);
}

.story-market-rows > div:nth-child(3) .story-asset {
  color: #202116;
  background: var(--acid);
}

.story-card-foot {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
}

.story-card.is-active .story-market-rows > div {
  animation: story-row-rise 0.65s both;
}

.story-card.is-active .story-market-rows > div:nth-child(2) {
  animation-delay: 0.08s;
}

.story-card.is-active .story-market-rows > div:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes story-row-rise {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.builder-mini-grid,
.account-mini-grid,
.network-console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 42px;
  border: 1px solid #c4cabc;
  background: #c4cabc;
}

.builder-mini-grid > div,
.account-mini-grid > div,
.network-console-grid > div {
  min-height: 72px;
  padding: 14px;
  background: #e8e5d9;
}

.builder-mini-grid small,
.account-mini-grid small,
.network-console-grid span {
  display: block;
  color: #6c776d;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.builder-mini-grid b,
.account-mini-grid b {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.builder-mini-range {
  margin-top: 42px;
}

.builder-mini-range > div {
  display: flex;
  justify-content: space-between;
  color: #59655b;
  font: 10px var(--mono);
}

.builder-mini-range > div b {
  color: #1d2b20;
  font-weight: 500;
}

.builder-mini-meter {
  position: relative;
  display: block;
  height: 5px;
  margin-top: 16px;
  background: #bbc4b8;
}

.builder-mini-meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: var(--builder-coverage, 0%);
  background: #293c2e;
}

.builder-mini-range > small {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #849085;
  font: 9px var(--mono);
}

.bid-hero {
  position: relative;
  margin-top: 62px;
}

.bid-hero strong {
  display: inline-block;
  margin-top: 7px;
  color: #ffd1b7;
  font-size: 78px;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.bid-hero > span {
  margin-left: 7px;
  color: #bb9b91;
  font: 11px var(--mono);
}

.bid-depth {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 145, 121, 0.23);
}

.bid-depth div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 145, 121, 0.16);
  color: #c9aca3;
  font: 10px var(--mono);
}

.bid-depth b {
  color: #ffd1b7;
  font-weight: 500;
}

.story-card.is-active .bid-hero strong {
  animation: bid-amount-pulse 1.8s ease-in-out infinite;
}

@keyframes bid-amount-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 145, 121, 0);
  }
  50% {
    text-shadow: 0 0 26px rgba(255, 145, 121, 0.5);
  }
}

.settlement-mini {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: center;
  margin-top: 54px;
}

.settlement-ring {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 243, 219, 0.55);
  border-radius: 50%;
  transform: rotate(-14deg) skewX(-8deg);
}

.settlement-ring::before {
  position: absolute;
  width: 140px;
  height: 140px;
  content: "";
  border: 1px solid rgba(216, 255, 124, 0.44);
  border-radius: 50%;
}

.settlement-ring span {
  position: relative;
  display: grid;
  place-items: center;
  transform: rotate(14deg) skewX(8deg);
}

.settlement-ring small,
.settlement-output small {
  color: #82a7a4;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.settlement-ring b {
  margin-top: 8px;
  font-size: 29px;
}

.settlement-output > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(142, 243, 219, 0.13);
  color: #81aaa4;
  font: 10px var(--mono);
}

.settlement-output > div b {
  color: var(--paper);
  font-weight: 500;
}

.scenario-source-note {
  margin-top: 30px;
  padding: 12px 0;
  border-top: 1px solid rgba(142, 243, 219, 0.2);
  border-bottom: 1px solid rgba(142, 243, 219, 0.2);
  color: #82a7a4;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}

.story-card.is-active .settlement-ring {
  animation: settlement-rotate 8s linear infinite;
}

@keyframes settlement-rotate {
  to {
    transform: rotate(346deg) skewX(-8deg);
  }
}

.account-mini-total {
  margin-top: 42px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(154, 169, 255, 0.2);
}

.account-mini-total strong {
  display: inline-block;
  margin-top: 10px;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.account-mini-total > span {
  margin-left: 8px;
  color: var(--acid);
  font: 10px var(--mono);
}

.account-mini-grid {
  margin-top: 20px;
  border-color: #363b4e;
  background: #363b4e;
}

.account-mini-grid > div {
  background: #171a21;
}

.account-mini-grid small {
  color: #9299b7;
}

.account-mini-grid b {
  color: var(--paper);
}

.account-mini-row {
  grid-template-columns: 32px 1fr auto auto;
  border-color: rgba(154, 169, 255, 0.15);
}

.account-mini-row small {
  color: #9299b7;
}

.account-mini-row b {
  color: #c7ceff;
  font-weight: 500;
}

.protocol-mini-title {
  margin-top: 45px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(216, 255, 124, 0.16);
}

.protocol-mini-title strong {
  display: block;
  margin-top: 13px;
  color: var(--paper);
  font-size: 36px;
  letter-spacing: -0.06em;
}

.protocol-mini-title > span {
  display: block;
  margin-top: 8px;
  color: #9eac8a;
  font: 10px var(--mono);
}

.protocol-mini-list {
  margin-top: 18px;
}

.protocol-mini-list > div {
  grid-template-columns: 1fr auto;
  min-height: 43px;
  border-color: rgba(216, 255, 124, 0.13);
  color: #aab4a0;
  font: 10px var(--mono);
}

.protocol-mini-list b {
  color: var(--amber);
  font-weight: 500;
}

.story-dots {
  position: absolute;
  right: 4px;
  bottom: 7px;
  z-index: 12;
  display: flex;
  gap: 8px;
}

.story-dots button {
  width: 25px;
  height: 25px;
  padding: 0;
  color: #657069;
  border: 1px solid #354039;
  border-radius: 50%;
  background: transparent;
  font: 9px var(--mono);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.story-dots button:hover,
.story-dots button.is-active {
  color: var(--ink);
  border-color: var(--cyan);
  background: var(--cyan);
}

.story-progress-track {
  position: absolute;
  right: max(28px, 6vw);
  bottom: 24px;
  left: max(28px, 6vw);
  z-index: 10;
  height: 1px;
  background: #2d3830;
}

.story-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
}

.story-progress-track span {
  position: absolute;
  top: 8px;
  color: #6d786f;
  font: 8px var(--mono);
}

.story-progress-track span:nth-of-type(2) {
  right: 0;
}

.home-markets {
  padding: 145px 0 155px;
  border-bottom: 1px solid #303430;
  background: #0a0d0d;
}

.home-section-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 60px;
}

.home-section-head h2 {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--paper);
}

.home-section-head p {
  max-width: 350px;
  margin-bottom: 24px;
  color: #9da69e;
  font-size: 14px;
  line-height: 1.7;
}

.home-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #303430;
  border: 1px solid #303430;
}

.home-market-card {
  position: relative;
  min-height: 440px;
  padding: 25px;
  overflow: hidden;
  color: var(--paper);
  border: 0;
  background: #111716;
  text-align: left;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.home-market-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(142, 243, 219, 0.12);
  border-radius: 50%;
  transform: rotate(25deg) skewX(-20deg);
  transition: transform 0.5s ease;
}

.home-market-card:hover {
  z-index: 2;
  color: var(--ink);
  background: var(--cyan);
  transform: translateY(-8px);
}

.home-market-card:hover::after {
  border-color: rgba(8, 10, 14, 0.25);
  transform: rotate(-12deg) skewX(-20deg) scale(1.2);
}

.home-market-card > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #7f8b83;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}

.home-market-card:hover > div:first-child,
.home-market-card:hover p,
.home-market-card:hover dt,
.home-market-card:hover .market-card-action {
  color: rgba(8, 10, 14, 0.65);
}

.home-market-card > div:first-child b {
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
}

.home-market-card:hover > div:first-child b {
  color: var(--ink);
}

.home-market-card h3 {
  max-width: 290px;
  margin: 78px 0 14px;
  font-size: 28px;
  line-height: 1;
}

.home-market-card p {
  min-height: 64px;
  margin: 0;
  color: #9aa39c;
  font-size: 12px;
  line-height: 1.6;
}

.home-market-coverage {
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid rgba(142, 243, 219, 0.2);
  border-bottom: 1px solid rgba(142, 243, 219, 0.2);
}

.home-market-coverage > div:first-child,
.home-market-coverage > small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8b83;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}

.home-market-coverage strong {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 500;
}

.home-market-coverage-track {
  height: 7px;
  margin: 13px 0 8px;
  overflow: hidden;
  background: rgba(142, 243, 219, 0.12);
}

.home-market-coverage-track i {
  display: block;
  width: var(--coverage, 0%);
  height: 100%;
  background: var(--cyan);
}

.home-market-card:hover .home-market-coverage {
  border-color: rgba(8, 10, 14, 0.26);
}

.home-market-card:hover .home-market-coverage > div:first-child,
.home-market-card:hover .home-market-coverage > small,
.home-market-card:hover .home-market-coverage strong {
  color: rgba(8, 10, 14, 0.72);
}

.home-market-card:hover .home-market-coverage-track {
  background: rgba(8, 10, 14, 0.12);
}

.home-market-card:hover .home-market-coverage-track i {
  background: var(--ink);
}

.home-market-card dl {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0 0;
}

.home-market-card dl div {
  display: grid;
  gap: 7px;
}

.home-market-card dt {
  color: #7f8b83;
  font: 8px var(--mono);
}

.home-market-card dd {
  margin: 0;
  font: 11px var(--mono);
}

.market-card-action {
  position: absolute;
  right: 25px;
  bottom: 25px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--cyan);
  border: 0;
  background: transparent;
  font: 9px var(--mono);
}

.home-protocol {
  padding: 150px 0;
  border-bottom: 1px solid #303430;
  background: #0d1110;
}

.home-protocol-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.home-protocol-copy h2 {
  max-width: 520px;
  margin: 24px 0 22px;
}

.home-protocol-copy p {
  max-width: 450px;
  color: #9da69e;
  font-size: 14px;
  line-height: 1.75;
}

.home-protocol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.network-console {
  padding: 28px;
  border: 1px solid #38443a;
  background: #111715;
  box-shadow: 22px 22px 0 rgba(216, 255, 124, 0.06);
}

.network-console-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #303b32;
  color: #76857b;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
}

.network-chain {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid #303b32;
}

.network-monogram {
  width: 44px;
  height: 44px;
  color: #1f291d;
  background: var(--acid);
  font-size: 16px;
}

.network-chain small,
.network-chain code {
  display: block;
  color: #829087;
  font: 9px var(--mono);
}

.network-chain strong {
  display: block;
  margin: 6px 0;
  color: var(--paper);
  font-size: 19px;
}

.network-chain b {
  color: var(--acid);
  font: 28px var(--mono);
  font-weight: 400;
}

.network-console-grid {
  margin: 0;
  border-color: #303b32;
  background: #303b32;
}

.network-console-grid > div {
  min-height: 78px;
  background: #111715;
}

.network-console-grid strong {
  display: block;
  margin-top: 11px;
  color: var(--paper);
  font: 11px var(--mono);
  font-weight: 500;
}

.network-console-grid strong.pending {
  color: var(--amber);
}

.console-button {
  width: 100%;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #111715;
  border: 1px solid var(--acid);
  background: var(--acid);
  font: 10px var(--mono);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.console-button:hover {
  color: var(--acid);
  background: transparent;
}

.home-final {
  padding: 130px 0 150px;
  background: #0a0d0d;
}

.home-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-final-inner > span {
  color: #77827a;
  font: 9px var(--mono);
  letter-spacing: 0.13em;
}

.home-final h2 {
  margin: 26px 0 30px;
}

.home-final h2 em {
  color: var(--cyan);
  font-style: normal;
}

.home-final-inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue svg,
  .story-card.is-active .story-market-rows > div,
  .story-card.is-active .bid-hero strong,
  .story-card.is-active .settlement-ring {
    animation: none;
  }
}

/* V25 / dense default hero deck
   Keep the four outcome cards visible as one composed market instrument on wide screens. */
@media (min-width: 1101px) and (min-height: 700px) {
  .page:has(.vella-stage) .asset-card {
    padding: clamp(18px, 1.15vw, 30px) !important;
    transform-origin: 50% 50%;
  }

  .page:has(.vella-stage) .asset-card-head,
  .page:has(.vella-stage) .asset-card-foot,
  .page:has(.vella-stage) .asset-card-rule {
    gap: clamp(8px, 0.55vw, 14px);
    font-size: clamp(9px, 0.52vw, 13px);
  }

  .page:has(.vella-stage) .card-monogram,
  .page:has(.vella-stage) .card-symbol {
    width: clamp(22px, 1.35vw, 34px);
    height: clamp(22px, 1.35vw, 34px);
    font-size: clamp(10px, 0.58vw, 14px);
  }

  .page:has(.vella-stage) .asset-card-title {
    margin-top: clamp(26px, 1.8vw, 46px);
    font-size: clamp(17px, 1.12vw, 28px);
  }

  .page:has(.vella-stage) .asset-card-value {
    font-size: clamp(52px, 3.25vw, 82px);
  }

  .page:has(.vella-stage) .asset-card-value span {
    font-size: clamp(12px, 0.62vw, 16px);
  }

  .page:has(.vella-stage) .asset-live-chart {
    margin-top: clamp(24px, 1.6vw, 40px);
  }

  .page:has(.vella-stage) .asset-card.card-a {
    top: 42% !important;
    left: 39.5% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 8;
    width: clamp(320px, 20.5vw, 520px) !important;
    min-height: clamp(356px, min(23.5vw, 44vh), 600px) !important;
    animation: radius-dense-card-a 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    top: 7% !important;
    right: 18% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 7;
    width: clamp(320px, 22vw, 560px) !important;
    min-height: clamp(224px, min(17vw, 33vh), 430px) !important;
    animation: radius-dense-card-b 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    top: 27% !important;
    right: 1.5% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10;
    width: clamp(334px, 22vw, 560px) !important;
    min-height: clamp(224px, min(15.5vw, 30vh), 395px) !important;
    animation: radius-dense-card-c 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    top: 49% !important;
    right: 7.5% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 11;
    width: clamp(300px, 19.6vw, 500px) !important;
    min-height: clamp(205px, min(15vw, 29vh), 380px) !important;
    animation: radius-dense-card-d 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .deck-client-list {
    right: 8% !important;
    bottom: 9% !important;
  }
}

@keyframes radius-dense-card-a {
  0%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 100px) rotate(-8deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(-7px, 8px, 112px) rotate(-6.5deg) scale(1.008);
  }
}

@keyframes radius-dense-card-b {
  0%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 70px) rotate(7deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(-6px, 6px, 82px) rotate(8.2deg) scale(1.008);
  }
}

@keyframes radius-dense-card-c {
  0%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 52px) rotate(-2deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(-7px, -6px, 64px) rotate(-3.2deg) scale(1.008);
  }
}

@keyframes radius-dense-card-d {
  0%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 38px) rotate(7deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(-6px, -5px, 48px) rotate(8.2deg) scale(1.006);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page:has(.vella-stage) .asset-card.card-a,
  .page:has(.vella-stage) .asset-card.card-b,
  .page:has(.vella-stage) .asset-card.card-c,
  .page:has(.vella-stage) .asset-card.card-d {
    animation: none !important;
    opacity: 1 !important;
  }
}


@media (max-width: 1100px) {
  .story-grid {
    width: min(1440px, calc(100% - 56px));
    grid-template-columns: minmax(240px, 0.75fr) minmax(480px, 1.25fr);
    gap: 22px;
  }

  .story-card {
    width: min(500px, 96%);
  }

  .home-protocol-grid {
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .hero-scroll-cue {
    right: 28px;
    bottom: 22px;
  }

  .experience-index-inner {
    min-height: 62px;
    justify-content: flex-start;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 8px;
  }

  .experience-index-inner i {
    width: 18px;
    flex: 0 0 auto;
  }

  .scroll-story {
    height: 600vh;
  }

  .story-sticky {
    top: 112px;
    height: calc(100svh - 112px);
    min-height: 610px;
  }

  .story-progress-head {
    top: 18px;
    left: 14px;
    right: 14px;
    font-size: 8px;
  }

  .story-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: 190px minmax(320px, 1fr);
    gap: 12px;
    padding: 50px 0 34px;
  }

  .story-copy-stack {
    min-height: 0;
  }

  .story-copy {
    width: 100%;
  }

  .story-copy .eyebrow {
    font-size: 8px;
  }

  .story-copy h2 {
    max-width: 320px;
    margin: 12px 0 9px;
    font-size: clamp(31px, 9vw, 46px);
  }

  .story-copy p {
    display: none;
  }

  .story-copy .button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }

  .story-visual {
    height: auto;
    min-height: 0;
  }

  .story-field::before {
    width: 460px;
    height: 160px;
  }

  .story-field::after {
    width: 380px;
    height: 135px;
  }

  .story-field span:nth-child(1) {
    width: 290px;
    height: 290px;
  }

  .story-card {
    width: calc(100% - 8px);
    height: 340px;
    min-height: 340px;
    padding: 20px;
  }

  .story-card-head,
  .story-card-foot {
    font-size: 8px;
  }

  .story-card-title {
    margin-top: 25px;
  }

  .story-card-title strong {
    font-size: 34px;
  }

  .story-market-rows {
    margin-top: 25px;
  }

  .story-market-rows > div,
  .account-mini-row,
  .protocol-mini-list > div {
    min-height: 45px;
    gap: 7px;
    font-size: 10px;
  }

  .story-market-rows small,
  .story-market-rows b,
  .account-mini-row small,
  .account-mini-row b {
    font-size: 8px;
  }

  .story-asset {
    width: 21px;
    height: 21px;
    font-size: 8px;
  }

  .builder-mini-grid,
  .account-mini-grid {
    margin-top: 25px;
  }

  .builder-mini-grid > div,
  .account-mini-grid > div {
    min-height: 56px;
    padding: 11px;
  }

  .builder-mini-grid b {
    margin-top: 7px;
    font-size: 16px;
  }

  .builder-mini-range {
    margin-top: 27px;
  }

  .bid-hero {
    margin-top: 42px;
  }

  .bid-hero strong {
    font-size: 61px;
  }

  .bid-depth {
    margin-top: 24px;
  }

  .settlement-mini {
    gap: 13px;
    margin-top: 32px;
  }

  .settlement-ring {
    width: 140px;
    height: 140px;
  }

  .settlement-ring::before {
    width: 102px;
    height: 102px;
  }

  .settlement-ring b {
    font-size: 22px;
  }

  .settlement-output > div {
    padding: 9px 0;
    font-size: 8px;
  }

  .account-mini-total {
    margin-top: 27px;
  }

  .account-mini-total strong {
    font-size: 41px;
  }

  .protocol-mini-title {
    margin-top: 28px;
  }

  .protocol-mini-title strong {
    font-size: 30px;
  }

  .story-card-foot {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .story-dots {
    right: 0;
    bottom: -34px;
  }

  .story-progress-track {
    right: 14px;
    bottom: 20px;
    left: 14px;
  }

  .home-markets {
    padding: 92px 0 100px;
  }

  .home-section-head,
  .home-protocol-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-section-head {
    margin-bottom: 36px;
  }

  .home-section-head h2,
  .home-protocol-copy h2 {
    font-size: 47px;
  }

  .home-section-head p {
    margin-bottom: 18px;
  }

  .home-market-grid {
    grid-template-columns: 1fr;
  }

  .home-market-card {
    min-height: 390px;
  }

  .home-market-card h3 {
    margin-top: 55px;
  }

  .home-protocol {
    padding: 100px 0;
  }

  .network-console {
    padding: 20px;
    box-shadow: 12px 12px 0 rgba(216, 255, 124, 0.06);
  }

  .network-chain {
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
  }

  .network-monogram {
    width: 38px;
    height: 38px;
  }

  .network-chain strong {
    font-size: 15px;
  }

  .network-chain code {
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .network-chain b {
    font-size: 21px;
  }

  .home-final {
    padding: 94px 0 120px;
  }

  .home-final h2 {
    font-size: 49px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(8, 10, 14, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1440px, calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 180px;
  padding: 0;
  color: var(--paper);
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: left;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.brand-sub {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  margin-left: -4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-button,
.utility-button {
  appearance: none;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.nav-button:hover,
.nav-button.active,
.utility-button:hover {
  color: var(--paper);
  border-color: var(--line);
  background: var(--panel);
}

.nav-button.active {
  color: var(--cyan);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  appearance: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--acid);
}
.button:active {
  transform: translateY(0);
}
.button.secondary {
  color: var(--paper);
  background: transparent;
  border-color: var(--line);
}
.button.secondary:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--panel);
}
.button.ghost {
  padding: 0 10px;
  color: var(--soft);
  background: transparent;
  border-color: transparent;
}
.button.ghost:hover {
  color: var(--paper);
  background: var(--panel);
}
.button.danger {
  color: var(--coral);
  background: transparent;
  border-color: rgba(255, 145, 121, 0.45);
}
.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.page {
  min-height: calc(100vh - 76px);
}
.container {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font: 10px var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
}
h1 {
  max-width: 710px;
  margin-bottom: 25px;
  font-size: clamp(52px, 7.5vw, 110px);
  line-height: 0.92;
  font-weight: 600;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 0.98;
  font-weight: 600;
}
h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
}
.lede {
  max-width: 540px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.7;
}
.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 72px 0 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-layout {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-copy h1 em {
  color: var(--cyan);
  font-style: normal;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font: 10px var(--mono);
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1117;
  box-shadow: 0 26px 100px rgba(0, 0, 0, 0.32);
}

#market-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage-label {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.1em;
}
.stage-status {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
  font: 10px var(--mono);
}
.float-card {
  position: absolute;
  z-index: 2;
  min-width: 148px;
  padding: 14px;
  border: 1px solid rgba(243, 242, 235, 0.26);
  border-radius: 7px;
  background: rgba(14, 18, 24, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  user-select: none;
  cursor: grab;
}

.float-card:active {
  cursor: grabbing;
}
.float-card.card-a {
  top: 25%;
  left: 10%;
  transform: rotate(-5deg);
}
.float-card.card-b {
  top: 15%;
  right: 9%;
  transform: rotate(4deg);
}
.float-card.card-c {
  bottom: 13%;
  right: 12%;
  transform: rotate(-3deg);
}
.float-card.card-d {
  bottom: 11%;
  left: 13%;
  transform: rotate(4deg);
}
.float-card .card-label {
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.float-card strong {
  display: block;
  margin-top: 7px;
  font-size: 25px;
  letter-spacing: -0.06em;
}
.float-card .card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--soft);
  font: 10px var(--mono);
}
.positive {
  color: var(--acid) !important;
}
.negative {
  color: var(--coral) !important;
}

.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border-right: 0;
}
.metric-label {
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.metric-value {
  margin-top: 8px;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.band {
  border-bottom: 1px solid var(--line);
}
.band-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.band-copy {
  color: var(--soft);
  font-size: 13px;
}
.band-copy strong {
  color: var(--paper);
}
.ticker {
  display: inline-flex;
  gap: 22px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: start;
}
.section-intro {
  position: sticky;
  top: 118px;
}
.section-intro p {
  max-width: 390px;
  color: var(--soft);
  line-height: 1.7;
}

.principle-list {
  border-top: 1px solid var(--line);
}
.principle-row {
  display: grid;
  grid-template-columns: 62px 1fr 160px;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.principle-number {
  color: var(--cyan);
  font: 12px var(--mono);
}
.principle-row h3 {
  margin: 0 0 7px;
  font-size: 20px;
}
.principle-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.principle-stat {
  color: var(--soft);
  font: 11px var(--mono);
  text-align: right;
}

.app-header {
  padding: 66px 0 36px;
  border-bottom: 1px solid var(--line);
}
.app-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.app-header h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(42px, 6vw, 80px);
}
.app-header p {
  max-width: 550px;
  margin: 18px 0 0;
  color: var(--soft);
  line-height: 1.6;
}
.app-content {
  padding: 32px 0 100px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
}
.search-box {
  width: min(360px, 100%);
  position: relative;
}
.search-box svg {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--muted);
}
.search-box input {
  width: 100%;
  min-height: 40px;
  padding: 0 13px 0 37px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: var(--panel);
}
.search-box input:focus {
  border-color: var(--cyan);
}
.filter-set {
  display: flex;
  gap: 7px;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 11px;
  color: var(--muted);
  background: transparent;
  font: 10px var(--mono);
}
.filter.active,
.filter:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.market-card {
  min-height: 360px;
  padding: 22px;
  background: var(--panel);
  transition: background 0.2s ease;
}
.market-card:hover {
  background: var(--panel-2);
}
.market-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font: 13px var(--mono);
}
.asset-orb {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 9px;
}
.state-pill {
  padding: 6px 7px;
  color: var(--acid);
  border: 1px solid rgba(216, 255, 124, 0.3);
  border-radius: 4px;
  font: 9px var(--mono);
  text-transform: uppercase;
}
.market-card h3 {
  margin: 42px 0 10px;
  font-size: 27px;
}
.market-card > p {
  min-height: 48px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.market-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0;
  border-top: 1px solid var(--line);
}
.market-stat {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.market-stat:nth-child(odd) {
  margin-right: 14px;
}
.market-stat label {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.market-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  letter-spacing: -0.04em;
}
.market-card .button {
  width: 100%;
}

.series-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}
.surface {
  border: 1px solid var(--line);
  background: var(--panel);
}
.surface-pad {
  padding: 22px;
}
.series-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.series-title h2 {
  margin: 8px 0 0;
  font-size: 43px;
}
.series-title p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.series-price {
  text-align: right;
}
.series-price span {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.series-price strong {
  display: block;
  margin-top: 7px;
  color: var(--cyan);
  font-size: 28px;
  letter-spacing: -0.06em;
}
.series-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.series-metric {
  padding: 15px 12px 0 0;
}
.series-metric label {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
}
.series-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.payoff-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  margin-top: 18px;
}
.chart-surface {
  min-height: 430px;
  position: relative;
  overflow: hidden;
}
#payoff-canvas {
  width: 100%;
  height: 320px;
  display: block;
}
.chart-legend {
  display: flex;
  gap: 18px;
  padding: 0 22px 20px;
  color: var(--muted);
  font: 10px var(--mono);
}
.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}
.scenario-control {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}
.scenario-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 17px;
}
.scenario-box {
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.scenario-box span {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
}
.scenario-box strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.bid-surface h3 {
  margin-bottom: 6px;
}
.bid-surface > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.form-field {
  margin-top: 19px;
}
.form-field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font: 10px var(--mono);
}
.form-field input[type="number"],
.form-field input[type="text"],
.form-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: var(--panel-2);
}
.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 12px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.form-field input:focus {
  border-color: var(--cyan);
}
.bid-table {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.bid-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
}
.bid-row:first-child {
  color: var(--cyan);
}
.action-stack {
  display: grid;
  gap: 8px;
}
.micro-note {
  margin: 15px 0 0;
  color: var(--muted);
  font: 10px var(--mono);
  line-height: 1.5;
}

.terms-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.term-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  margin-right: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.term-row span {
  color: var(--muted);
}
.term-row strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.kpi {
  padding: 22px;
  background: var(--panel);
}
.kpi label {
  display: block;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
  letter-spacing: -0.07em;
}
.kpi p {
  margin: 8px 0 0;
  color: var(--muted);
  font: 10px var(--mono);
}
.account-position {
  margin-top: 18px;
}
.position-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.position-row:last-child {
  border-bottom: 1px solid var(--line);
}
.position-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 12px var(--mono);
}
.position-meta span,
.position-value span {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
}
.position-meta strong,
.position-value strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}
.membership-surface {
  min-height: 100%;
}
.membership-orbit {
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #12171c;
}
.orbit-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  animation: orbit 10s linear infinite;
}
.orbit-ring::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}
.orbit-core {
  z-index: 1;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font: 11px var(--mono);
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.membership-copy {
  padding: 22px;
}
.membership-copy h3 {
  margin-top: 0;
}
.membership-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font: 11px var(--mono);
}
.toggle {
  width: 44px;
  height: 24px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-3);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.toggle.on {
  border-color: var(--cyan);
}
.toggle.on::after {
  transform: translateX(19px);
  background: var(--cyan);
}

.protocol-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}
.builder-layout,
.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}
.builder-form {
  min-width: 0;
}
.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.builder-preview {
  min-height: 620px;
  padding: 28px;
  overflow: hidden;
  background: #0d1117;
}
.builder-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.builder-preview-head h3 {
  margin: 11px 0 0;
  font-size: 29px;
}
.builder-parameter-panel {
  margin: 28px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.builder-parameter-note {
  padding: 14px 0;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.builder-parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-bottom: 1px;
  background: var(--line);
}

.builder-parameter-grid > div {
  min-width: 0;
  padding: 18px;
  background: #10161a;
}

.builder-parameter-grid small {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.05em;
}

.builder-parameter-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--paper);
  font-size: 22px;
  letter-spacing: -0.05em;
}

.builder-parameter-grid > div:nth-child(4) strong {
  color: var(--cyan);
  font: 12px/1.5 var(--mono);
  letter-spacing: 0;
}
.builder-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.builder-preview-stats > div {
  min-width: 0;
  padding: 14px;
  background: var(--panel);
}
.builder-preview-stats span {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.builder-preview-stats strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder-rulebook {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.builder-rulebook p {
  max-width: 600px;
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.rulebook-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
}
.rulebook-line code {
  color: var(--cyan);
  text-align: right;
}
.docs-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}
.docs-index {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 102px;
}
.doc-nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 12px 0;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  text-align: left;
}
.doc-nav span {
  color: var(--cyan);
  font: 10px var(--mono);
}
.doc-nav svg {
  margin-left: auto;
  opacity: 0;
}
.doc-nav:hover,
.doc-nav.active {
  color: var(--paper);
}
.doc-nav:hover svg,
.doc-nav.active svg {
  opacity: 1;
  color: var(--acid);
}
.docs-index-note {
  margin-top: 40px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
  line-height: 1.7;
}
.docs-index-note strong {
  color: var(--paper);
  font-weight: 400;
}
.docs-content {
  min-height: 500px;
}
.docs-content h3 {
  max-width: 600px;
  margin: 2px 0 14px;
  font-size: 32px;
}
.docs-content > p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}
.doc-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}
.doc-flow > div {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background: var(--panel-2);
}
.doc-flow b {
  color: var(--cyan);
  font: 11px var(--mono);
}
.doc-flow span {
  font-size: 13px;
}
.code-block {
  position: relative;
  margin-top: 30px;
  padding: 20px 52px 20px 20px;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: #0b1015;
  font: 12px/1.8 var(--mono);
  white-space: pre-wrap;
}
.code-block code {
  font: inherit;
}
.icon-only {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
}
.icon-only:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.status-list {
  border-top: 1px solid var(--line);
}
.status-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.status-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
}
.status-item strong {
  display: block;
  font-size: 13px;
}
.status-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 10px var(--mono);
}
.status-value {
  color: var(--acid);
  font: 10px var(--mono);
}
.address-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.address-row span {
  color: var(--muted);
  font-size: 11px;
}
.address-row code {
  max-width: 55%;
  overflow: hidden;
  color: var(--cyan);
  font: 10px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.risk-banner {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 16px;
  color: var(--amber);
  border: 1px solid rgba(246, 196, 107, 0.35);
  background: rgba(246, 196, 107, 0.06);
  font-size: 12px;
  line-height: 1.5;
}

.footer {
  padding: 30px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
}
.footer-links button:hover {
  color: var(--paper);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}
.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  margin: 0;
  font-size: 24px;
}
.modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font: 10px var(--mono);
}
.modal-body {
  padding: 22px;
}
.close-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
}
.close-button:hover {
  color: var(--paper);
  border-color: var(--paper);
}
.modal-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}
.modal-summary div {
  padding: 14px;
  background: var(--panel-2);
}
.modal-summary span {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
}
.modal-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.modal-actions .button {
  flex: 1;
}
.wide-modal {
  width: min(760px, 100%);
}
.wallet-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.wallet-choice.selected {
  border-color: var(--cyan);
}
.wallet-choice-icon,
.activity-mark {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 50%;
}
.wallet-choice strong,
.wallet-choice span {
  display: block;
}
.wallet-choice strong {
  font-size: 13px;
}
.wallet-choice span {
  margin-top: 5px;
  color: var(--muted);
  font: 10px var(--mono);
}
.wallet-check {
  margin-left: auto;
  color: var(--acid);
}
.command-search {
  position: relative;
  margin-bottom: 14px;
}
.command-search svg {
  position: absolute;
  top: 13px;
  left: 13px;
  color: var(--muted);
}
.command-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px 0 38px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: var(--panel-2);
}
.command-search input:focus {
  border-color: var(--cyan);
}
.command-list {
  display: grid;
  gap: 5px;
}
.command-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  color: var(--paper);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
}
.command-list button:hover {
  border-color: var(--line);
  background: var(--panel-2);
}
.command-list button span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.command-list button span svg {
  color: var(--cyan);
}
.command-list button small {
  color: var(--muted);
  font: 10px var(--mono);
}
.auction-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.auction-flow > div {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--panel-2);
}
.auction-flow b {
  color: var(--cyan);
  font: 10px var(--mono);
}
.auction-flow strong {
  font-size: 15px;
}
.auction-flow span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.activity-list {
  border-top: 1px solid var(--line);
}
.activity-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row strong,
.activity-row small {
  display: block;
}
.activity-row strong {
  font-size: 12px;
}
.activity-row small,
.activity-row time {
  margin-top: 4px;
  color: var(--muted);
  font: 10px var(--mono);
}
.activity-row time {
  margin-top: 0;
  text-align: right;
}
.position-claimed {
  opacity: 0.66;
}
.empty-state .button {
  margin-left: 10px;
}
[hidden] {
  display: none !important;
}

#toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 9px;
}
.toast {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  color: var(--paper);
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.34);
  font: 11px var(--mono);
  animation: toast-in 0.25s ease both;
}
.toast svg {
  color: var(--cyan);
}
@keyframes toast-in {
  from {
    opacity: 1;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  padding: 44px;
  color: var(--muted);
  border: 1px dashed var(--line);
  text-align: center;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  .hero-layout,
  .two-col,
  .series-top,
  .payoff-layout,
  .dashboard-grid,
  .protocol-layout,
  .builder-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: start;
    padding-top: 58px;
  }
  .hero-stage {
    min-height: 520px;
  }
  .section-intro {
    position: static;
  }
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-index {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 70px;
  }
  .topbar-inner {
    width: min(100% - 28px, 1440px);
    min-height: 70px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }
  .brand {
    min-width: 0;
    flex: 1;
  }
  .brand-sub {
    display: none;
  }
  .main-nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .nav-button {
    white-space: nowrap;
  }
  .topbar-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }
  .topbar-actions .utility-button {
    display: none;
  }
  .container,
  .hero-layout {
    width: calc(100% - 28px);
  }
  .hero {
    min-height: auto;
    padding: 46px 0 24px;
    flex-direction: column;
    align-items: stretch;
  }
  h1 {
    font-size: clamp(48px, 15vw, 82px);
  }
  .hero-stage {
    min-height: 460px;
    margin-top: 22px;
  }
  .float-card {
    min-width: 126px;
    padding: 11px;
  }
  .float-card strong {
    font-size: 19px;
  }
  .float-card.card-a {
    top: 25%;
    left: 5%;
  }
  .float-card.card-b {
    top: 16%;
    right: 4%;
  }
  .float-card.card-c {
    bottom: 13%;
    right: 4%;
  }
  .float-card.card-d {
    bottom: 9%;
    left: 5%;
  }
  .hero-bottom {
    position: static;
    margin-top: 25px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .band-inner,
  .app-header-row,
  .toolbar,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
  .ticker {
    white-space: normal;
    flex-wrap: wrap;
  }
  .section {
    padding: 68px 0;
  }
  .principle-row {
    grid-template-columns: 40px 1fr;
  }
  .principle-stat {
    grid-column: 2;
    text-align: left;
  }
  .market-grid {
    grid-template-columns: 1fr;
  }
  .builder-grid,
  .doc-flow,
  .auction-flow {
    grid-template-columns: 1fr;
  }
  .builder-preview {
    min-height: 0;
    padding: 20px;
  }
  .builder-preview-head h3 {
    font-size: 24px;
  }
  .builder-parameter-grid {
    grid-template-columns: 1fr;
  }
  .docs-content h3 {
    font-size: 27px;
  }
  .doc-flow > div,
  .auction-flow > div {
    min-height: 92px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions .button {
    min-width: 140px;
  }
  .activity-row {
    grid-template-columns: 32px 1fr;
  }
  .activity-row time {
    grid-column: 2;
    margin-top: -5px;
    text-align: left;
  }
  .empty-state .button {
    display: block;
    margin: 12px auto 0;
  }
  #toast-root {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
  .series-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .series-title {
    flex-direction: column;
  }
  .series-price {
    text-align: left;
  }
  .terms-table {
    grid-template-columns: 1fr;
  }
  .term-row {
    margin-right: 0;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .position-row {
    grid-template-columns: 1fr 1fr;
  }
  .position-row .button {
    grid-column: 1 / -1;
  }
  .footer-links {
    flex-wrap: wrap;
  }
}

/* v12 motion pass: a full-bleed card stage with the same editorial pacing as the reference. */
.page:has(.vella-stage) .hero {
  min-height: min(960px, 100svh);
  height: min(960px, 100svh);
  padding: 0;
  display: block;
  background: #080a0e;
}

.page:has(.vella-stage) .hero-layout {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
}

.page:has(.vella-stage) .hero-copy {
  position: absolute;
  z-index: 20;
  top: 52%;
  left: max(28px, 10vw);
  width: min(430px, 34vw);
  padding: 0;
  transform: translateY(-10%);
  pointer-events: auto;
}

.page:has(.vella-stage) .hero-copy > * {
  opacity: 0;
  animation: radius-copy-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.page:has(.vella-stage) .hero-copy .eyebrow {
  animation-delay: 0.12s;
}

.page:has(.vella-stage) .hero-copy h1 {
  max-width: 540px;
  margin: 20px 0 0;
  font-size: clamp(54px, 5.8vw, 92px);
  line-height: 0.91;
  letter-spacing: -0.055em;
  animation-delay: 0.2s;
}

.page:has(.vella-stage) .hero-copy h1 em {
  color: var(--paper);
}

.page:has(.vella-stage) .hero-copy h1::after {
  content: "";
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 24px;
  background: #d79a68;
}

.page:has(.vella-stage) .hero-copy .lede {
  max-width: 400px;
  margin-top: 26px;
  color: #b8b8af;
  font-size: 13px;
  line-height: 1.55;
  animation-delay: 0.32s;
}

.page:has(.vella-stage) .hero-copy .hero-actions {
  margin-top: 24px;
  animation-delay: 0.43s;
}

.page:has(.vella-stage) .hero-copy .hero-note {
  margin-top: 28px;
  color: #666d69;
  animation-delay: 0.53s;
}

.page:has(.vella-stage) .hero-stage.vella-stage {
  inset: 0;
  min-height: 0;
  z-index: 5;
  overflow: hidden;
  border: 0;
  background: transparent;
  perspective: 1500px;
}

.page:has(.vella-stage) .stage-topline {
  top: 92px;
  left: 10vw;
  right: 10vw;
  z-index: 24;
  color: #8e948d;
  opacity: 0.9;
  pointer-events: none;
}

.page:has(.vella-stage) .stage-index {
  top: 36%;
  left: 10vw;
  color: #879087;
  opacity: 0.72;
  pointer-events: none;
}

.page:has(.vella-stage) .asset-field {
  inset: -12% -4% -8% 35%;
  opacity: 0.45;
  pointer-events: none;
}

.page:has(.vella-stage) .asset-field::before {
  width: 640px;
  height: 640px;
  border-color: rgba(206, 211, 196, 0.13);
}

.page:has(.vella-stage) .asset-field::after {
  width: 430px;
  height: 430px;
  border-color: rgba(215, 154, 104, 0.2);
}

.page:has(.vella-stage) .asset-orbit {
  width: 680px;
  height: 220px;
  opacity: 0.58;
}

.page:has(.vella-stage) .asset-orbit.orbit-b {
  width: 560px;
  height: 170px;
}

.page:has(.vella-stage) .asset-orbit.orbit-c {
  width: 360px;
  height: 110px;
}

.page:has(.vella-stage) .asset-card {
  border-radius: 4px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.54);
}

.page:has(.vella-stage) .asset-card.card-a {
  top: -5%;
  left: 39%;
  width: 332px;
  min-height: 370px;
  animation: radius-card-a 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: 0.05s;
}

.page:has(.vella-stage) .asset-card.card-b {
  top: 14%;
  right: 20%;
  width: 320px;
  min-height: 224px;
  animation: radius-card-b 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: 0.28s;
}

.page:has(.vella-stage) .asset-card.card-c {
  top: 30%;
  right: 3%;
  width: 334px;
  min-height: 224px;
  animation: radius-card-c 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: 0.5s;
}

.page:has(.vella-stage) .asset-card.card-d {
  top: 51%;
  right: 10%;
  left: auto;
  width: 300px;
  min-height: 205px;
  animation: radius-card-d 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: 0.72s;
}

.page:has(.vella-stage) .asset-card.is-deck-switching {
  --deck-switch: 1;
}

.page:has(.vella-stage) .deck-client-list {
  right: 10vw;
  bottom: 12%;
  z-index: 24;
}

.page:has(.vella-stage) .deck-rail {
  bottom: 5.5%;
  left: 10vw;
  z-index: 24;
}

.page:has(.vella-stage) .stage-footer {
  bottom: 5.5%;
  left: auto;
  right: 10vw;
  z-index: 24;
  pointer-events: none;
}

.page:has(.vella-stage) .hero-bottom {
  display: none;
}

@keyframes radius-copy-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes radius-card-a {
  0%,
  5% {
    opacity: 0;
    transform: translate3d(210px, -118px, 0) rotate(-18deg) scale(0.8);
  }
  17% {
    opacity: 1;
    transform: translate3d(0, 0, 100px) rotate(-8deg) scale(1);
  }
  40% {
    transform: translate3d(-16px, 16px, 130px) rotate(-5deg) scale(1.015);
  }
  68% {
    transform: translate3d(14px, -7px, 92px) rotate(-10deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 100px) rotate(-8deg) scale(1);
  }
}

@keyframes radius-card-b {
  0%,
  8% {
    opacity: 0;
    transform: translate3d(180px, -70px, 0) rotate(18deg) scale(0.82);
  }
  20% {
    opacity: 1;
    transform: translate3d(0, 0, 70px) rotate(7deg) scale(1);
  }
  46% {
    transform: translate3d(-11px, 12px, 95px) rotate(10deg) scale(1.02);
  }
  76% {
    transform: translate3d(11px, -5px, 64px) rotate(4deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 70px) rotate(7deg) scale(1);
  }
}

@keyframes radius-card-c {
  0%,
  11% {
    opacity: 0;
    transform: translate3d(140px, 72px, 0) rotate(18deg) scale(0.82);
  }
  23% {
    opacity: 1;
    transform: translate3d(0, 0, 45px) rotate(-5deg) scale(1);
  }
  52% {
    transform: translate3d(-12px, -10px, 70px) rotate(-2deg) scale(1.015);
  }
  80% {
    transform: translate3d(10px, 7px, 42px) rotate(-7deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 45px) rotate(-5deg) scale(1);
  }
}

@keyframes radius-card-d {
  0%,
  14% {
    opacity: 0;
    transform: translate3d(120px, 82px, 0) rotate(16deg) scale(0.82);
  }
  26% {
    opacity: 1;
    transform: translate3d(0, 0, 28px) rotate(5deg) scale(1);
  }
  56% {
    transform: translate3d(-10px, -9px, 55px) rotate(8deg) scale(1.02);
  }
  84% {
    transform: translate3d(9px, 6px, 32px) rotate(3deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 28px) rotate(5deg) scale(1);
  }
}

@media (max-width: 1100px) {
  .page:has(.vella-stage) .hero-copy {
    left: 7vw;
    width: min(390px, 40vw);
  }

  .page:has(.vella-stage) .asset-card.card-a {
    left: 34%;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    right: 16%;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    right: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 112px;
  }

  .topbar-inner {
    width: calc(100% - 28px);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 62px 50px;
    gap: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-sub {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 3px;
    overflow-x: auto;
  }

  .nav-button {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .page:has(.vella-stage) {
    margin-top: -112px;
  }

  .page:has(.vella-stage) .hero {
    min-height: 920px;
    height: 920px;
  }

  .page:has(.vella-stage) .hero-copy {
    top: 55%;
    left: 28px;
    width: calc(100% - 56px);
    transform: translateY(-10%);
  }

  .page:has(.vella-stage) .hero-copy h1 {
    max-width: 350px;
    font-size: clamp(52px, 14vw, 78px);
  }

  .page:has(.vella-stage) .hero-copy .lede {
    max-width: 350px;
    font-size: 12px;
  }

  .page:has(.vella-stage) .hero-copy .hero-actions,
  .page:has(.vella-stage) .hero-copy .hero-note {
    position: relative;
    z-index: 30;
  }

  .page:has(.vella-stage) .hero-stage.vella-stage {
    inset: 0;
    height: 920px;
  }

  .page:has(.vella-stage) .stage-topline {
    top: 126px;
    left: 28px;
    right: 28px;
  }

  .page:has(.vella-stage) .stage-index {
    top: 28%;
    left: 28px;
  }

  .page:has(.vella-stage) .asset-field {
    inset: -4% -30% 30% 10%;
  }

  .page:has(.vella-stage) .asset-card.card-a {
    top: 7%;
    left: 32%;
    width: 236px;
    min-height: 286px;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    top: 21%;
    right: -7%;
    width: 224px;
    min-height: 174px;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    top: 32%;
    right: -11%;
    width: 232px;
    min-height: 174px;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    top: 43%;
    right: 5%;
    width: 208px;
    min-height: 160px;
  }

  .page:has(.vella-stage) .asset-card-title {
    margin-top: 17px;
    font-size: 13px;
  }

  .page:has(.vella-stage) .asset-card-value {
    font-size: 34px;
  }

  .page:has(.vella-stage) .deck-client-list {
    right: 28px;
    bottom: 9%;
    transform: scale(0.8);
    transform-origin: right bottom;
  }

  .page:has(.vella-stage) .deck-rail {
    bottom: 4.5%;
    left: 28px;
    max-width: calc(100% - 56px);
    gap: 12px;
  }

  .page:has(.vella-stage) .stage-footer {
    display: none;
  }
}

/* Vella-inspired asset deck: restrained materials, layered cards and editorial space. */
:root {
  --ink: #0a0b0b;
  --panel: #141615;
  --panel-2: #1b1d1b;
  --panel-3: #242725;
  --line: #353936;
  --muted: #8b918b;
  --soft: #c3c8c0;
  --paper: #f1efe7;
  --cyan: #c8ddd0;
  --acid: #d6df9a;
  --amber: #d79a68;
  --coral: #df8d73;
}

body {
  background: var(--ink);
}

.topbar {
  background: rgba(10, 11, 11, 0.96);
}

.hero {
  min-height: 860px;
  padding-top: 86px;
  background: var(--ink);
}

.hero-layout {
  grid-template-columns: minmax(340px, 0.72fr) minmax(560px, 1.28fr);
  gap: 72px;
}

.hero-copy {
  padding-top: 32px;
}

.hero-copy h1 {
  max-width: 530px;
  margin-bottom: 30px;
  font-size: clamp(58px, 7vw, 102px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-copy h1 em {
  color: var(--paper);
}

.hero-copy h1 em::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 20px;
  background: var(--amber);
}

.hero-stage.vella-stage {
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  border-color: #3f443f;
  background: #111312;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
  perspective: 1200px;
}

.stage-topline,
.stage-footer {
  position: absolute;
  z-index: 8;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-topline {
  top: 20px;
}

.stage-footer {
  bottom: 18px;
  color: #70776f;
  font-size: 9px;
}

.stage-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
}

.stage-index {
  position: absolute;
  z-index: 8;
  top: 88px;
  left: 22px;
  color: var(--paper);
  font: 11px var(--mono);
}

.stage-index span {
  margin: 0 5px;
  color: var(--muted);
}

.asset-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.asset-field::before,
.asset-field::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 51%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(200, 221, 208, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-15deg) scaleX(1.42);
}

.asset-field::after {
  width: 310px;
  height: 310px;
  border-color: rgba(215, 154, 104, 0.23);
  transform: translate(-50%, -50%) rotate(28deg) scaleX(1.2);
}

.asset-orbit {
  position: absolute;
  top: 50%;
  left: 51%;
  width: 470px;
  height: 170px;
  border: 1px solid rgba(214, 223, 154, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(30deg);
  animation: deck-orbit 13s linear infinite;
}

.asset-orbit.orbit-b {
  width: 400px;
  height: 130px;
  border-color: rgba(200, 221, 208, 0.16);
  transform: translate(-50%, -50%) rotate(-38deg);
  animation-duration: 18s;
  animation-direction: reverse;
}

.asset-orbit.orbit-c {
  width: 260px;
  height: 82px;
  border-color: rgba(215, 154, 104, 0.24);
  transform: translate(-50%, -50%) rotate(8deg);
  animation-duration: 10s;
}

@keyframes deck-orbit {
  to {
    rotate: 360deg;
  }
}

.field-cross {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(200, 221, 208, 0.4);
}

.field-cross::before,
.field-cross::after {
  content: "";
  position: absolute;
  background: rgba(200, 221, 208, 0.4);
}

.field-cross::before {
  top: 10px;
  left: -8px;
  width: 36px;
  height: 1px;
}

.field-cross::after {
  top: -8px;
  left: 10px;
  width: 1px;
  height: 36px;
}

.cross-a {
  top: 28%;
  right: 17%;
}

.cross-b {
  bottom: 25%;
  left: 18%;
  border-color: rgba(215, 154, 104, 0.45);
}

.cross-b::before,
.cross-b::after {
  background: rgba(215, 154, 104, 0.45);
}

.asset-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 236px;
  min-height: 170px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(241, 239, 231, 0.23);
  border-radius: 4px;
  background: #252826;
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.32);
  cursor: grab;
  user-select: none;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.asset-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
}

.asset-card:hover,
.asset-card.is-dragging {
  z-index: 12;
  border-color: var(--paper);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.48);
}

.asset-card.card-a {
  top: 23%;
  left: 32%;
  width: 300px;
  min-height: 356px;
  transform: rotate(-8deg) translateZ(20px);
}

.asset-card.card-b {
  top: 16%;
  right: 7%;
  min-height: 214px;
  color: #242722;
  border-color: #d5d1c2;
  background: #e6e1d4;
  transform: rotate(7deg) translateZ(80px);
}

.asset-card.card-c {
  bottom: 15%;
  right: 8%;
  min-height: 214px;
  color: #241a14;
  border-color: #c98955;
  background: #b97643;
  transform: rotate(-5deg) translateZ(50px);
}

.asset-card.card-d {
  bottom: 12%;
  left: 8%;
  min-height: 196px;
  color: #e0e7db;
  border-color: #718071;
  background: #465349;
  transform: rotate(5deg) translateZ(35px);
}

.asset-card-paper::after {
  color: #8d8b7b;
}

.asset-card-copper::after {
  color: #f0c093;
}

.asset-card-green::after {
  color: #c8ddd0;
}

.asset-card-head,
.asset-card-foot,
.asset-card-rule {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font: 9px var(--mono);
  text-transform: uppercase;
}

.asset-card-head {
  justify-content: flex-start;
  opacity: 0.82;
}

.asset-card-head > span:nth-child(2) {
  flex: 1;
}

.card-monogram,
.card-symbol {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 10px var(--mono);
}

.card-chip {
  padding: 4px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.72;
}

.asset-card-title {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.asset-card-value {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.asset-card-value span {
  margin-left: 5px;
  font: 12px var(--mono);
  letter-spacing: 0;
}

.asset-card-rule {
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid currentColor;
  opacity: 0.72;
}

.asset-card-rule strong {
  font-weight: 400;
}

.asset-card-foot {
  justify-content: space-between;
  margin-top: 14px;
  opacity: 0.75;
}

.asset-card-foot strong {
  font-weight: 400;
}

.asset-live-chart {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-family: var(--mono);
}

.asset-live-chart-head,
.asset-live-chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 0.06em;
  opacity: 0.78;
}

.asset-live-chart-head strong {
  color: var(--paper);
  font-weight: 500;
}

.asset-live-chart-plot {
  position: relative;
  height: 76px;
  margin-top: 7px;
  overflow: hidden;
  border-top: 1px solid rgba(241, 239, 231, 0.16);
  border-bottom: 1px solid rgba(241, 239, 231, 0.16);
}

.asset-live-chart-plot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.asset-live-chart-area {
  fill: rgba(142, 243, 219, 0.1);
}

.asset-live-chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.asset-live-chart-point {
  fill: var(--acid);
  stroke: #20251f;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.asset-live-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: rgba(241, 239, 231, 0.55);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.asset-live-chart-empty[hidden] {
  display: none;
}

.asset-live-chart-meta {
  margin-top: 7px;
  font-size: 7px;
}

.asset-live-chart-range {
  margin-top: 3px;
  color: rgba(241, 239, 231, 0.55);
  font-size: 7px;
  text-align: right;
}

.asset-live-chart.is-unavailable .asset-live-chart-meta,
.asset-live-chart.is-unavailable .asset-live-chart-empty {
  color: var(--coral);
}

.band,
.section,
.app-header,
.footer {
  border-color: #303430;
}

.surface,
.market-card,
.kpi,
.membership-surface,
.chart-surface {
  border-radius: 4px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
}

.market-card:hover,
.surface:hover {
  border-color: #4b514b;
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-stage.vella-stage {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 46px 0 24px;
  }

  .hero-layout {
    width: calc(100% - 28px);
    gap: 0;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 15vw, 78px);
  }

  .hero-stage.vella-stage {
    min-height: 610px;
  }

  .stage-topline,
  .stage-footer {
    left: 14px;
    right: 14px;
    font-size: 8px;
  }

  .stage-index {
    top: 64px;
    left: 14px;
  }

  .asset-field::before,
  .asset-field::after {
    left: 50%;
    width: 280px;
    height: 280px;
  }

  .asset-orbit {
    left: 50%;
    width: 320px;
  }

  .asset-card {
    width: 176px;
    min-height: 145px;
    padding: 13px;
  }

  .asset-card.card-a {
    top: 26%;
    left: 18%;
    width: 228px;
    min-height: 286px;
  }

  .asset-card.card-b {
    top: 17%;
    right: 2%;
    min-height: 170px;
  }

  .asset-card.card-c {
    right: 1%;
    bottom: 17%;
    min-height: 170px;
  }

  .asset-card.card-d {
    bottom: 13%;
    left: 2%;
    min-height: 160px;
  }

  .asset-card-title {
    margin-top: 18px;
    font-size: 13px;
  }

  .asset-card-value {
    font-size: 34px;
  }

  .asset-card-foot,
  .asset-card-rule,
  .asset-card-head {
    font-size: 8px;
  }

  .asset-live-chart {
    margin-top: 18px;
  }

  .asset-live-chart-plot {
    height: 58px;
  }
}

/* Full-screen motion system inspired by the Vella presentation language. */
.page:has(.vella-stage) {
  margin-top: -76px;
}

.page:has(.vella-stage) .hero {
  min-height: min(940px, calc(100vh + 120px));
  padding-top: 0;
  align-items: stretch;
}

.page:has(.vella-stage) .hero-layout {
  position: relative;
  display: block;
  height: 760px;
  min-height: 760px;
}

.page:has(.vella-stage) .hero-copy {
  width: min(510px, 43vw);
  padding-top: 258px;
}

.page:has(.vella-stage) .hero-stage.vella-stage {
  position: absolute;
  inset: 0 0 0 27%;
  min-height: 760px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  perspective: 1400px;
  --scene-x: 0;
  --scene-y: 0;
}

.page:has(.vella-stage) .stage-topline {
  top: 94px;
  left: 4%;
  right: 4%;
  opacity: 0.78;
}

.page:has(.vella-stage) .stage-index {
  top: 154px;
  left: 7%;
  opacity: 0.7;
}

.page:has(.vella-stage) .asset-field {
  inset: 4% 0 10%;
  opacity: 0.38;
  pointer-events: none;
}

.page:has(.vella-stage) .asset-field::before,
.page:has(.vella-stage) .asset-field::after {
  opacity: 0.42;
}

.page:has(.vella-stage) .asset-orbit {
  opacity: 0.45;
}

.page:has(.vella-stage) .asset-card {
  --motion-x: 0px;
  --motion-y: 0px;
  --drag-x: 0px;
  --drag-y: 0px;
  translate: calc(var(--motion-x) + var(--drag-x))
    calc(var(--motion-y) + var(--drag-y));
  transition:
    translate 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  touch-action: none;
  will-change: translate, transform;
}

.page:has(.vella-stage) .asset-card.card-a {
  top: 20%;
  left: 34%;
  animation: vella-card-a 10s ease-in-out infinite;
  animation-delay: 0.1s;
}

.page:has(.vella-stage) .asset-card.card-b {
  top: 0;
  right: 17%;
  animation: vella-card-b 10s 0.35s ease-in-out infinite;
}

.page:has(.vella-stage) .asset-card.card-c {
  top: 28%;
  right: 2%;
  bottom: auto;
  animation: vella-card-c 10s 0.55s ease-in-out infinite;
}

.page:has(.vella-stage) .asset-card.card-d {
  top: 48%;
  right: 12%;
  bottom: auto;
  left: auto;
  animation: vella-card-d 10s 0.75s ease-in-out infinite;
}

.page:has(.vella-stage) .asset-card.is-selected {
  z-index: 18;
  border-color: var(--paper);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.56);
}

.page:has(.vella-stage) .stage-footer {
  bottom: 18px;
  left: 7%;
  right: 5%;
  opacity: 0.72;
}

.deck-client-list {
  position: absolute;
  z-index: 9;
  right: 7%;
  bottom: 88px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px;
  transform: translate3d(
    calc(var(--scene-x) * -8px),
    calc(var(--scene-y) * -5px),
    0
  );
  transition: transform 0.36s ease;
}

.deck-client-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  padding: 6px 9px 6px 6px;
  color: #d0d3cc;
  border: 1px solid rgba(241, 239, 231, 0.17);
  border-radius: 999px;
  background: rgba(18, 19, 18, 0.78);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  font: 8px var(--mono);
}

.deck-client-pill.is-active {
  color: #201810;
  border-color: #d79a68;
  background: #d79a68;
}

.deck-client-pill strong,
.deck-client-pill small {
  display: block;
  white-space: nowrap;
}

.deck-client-pill strong {
  font-weight: 500;
}

.deck-client-pill small {
  margin-top: 2px;
  opacity: 0.66;
}

.client-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 9px;
}

.avatar-gold {
  background: #edb36c;
}
.avatar-light {
  color: #30352e;
  background: #d4d7c7;
}
.avatar-copper {
  background: #a5653b;
}
.avatar-olive {
  background: #687460;
}

.deck-rail {
  position: absolute;
  z-index: 9;
  bottom: 55px;
  left: 7%;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  max-width: 72%;
  transform: translate3d(
    calc(var(--scene-x) * 5px),
    calc(var(--scene-y) * 3px),
    0
  );
  transition: transform 0.36s ease;
}

.deck-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: #6c716b;
  border: 0;
  background: transparent;
  font: 9px var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.deck-rail-item:hover,
.deck-rail-item.is-active {
  color: var(--paper);
}

@keyframes vella-card-a {
  0%,
  8% {
    opacity: 1;
    transform: rotate(-1deg) translateZ(0) scale(0.96);
  }
  20% {
    opacity: 1;
    transform: rotate(-8deg) translateZ(20px) scale(1);
  }
  48% {
    transform: rotate(-5deg) translate3d(-8px, 12px, 36px) scale(1.01);
  }
  78% {
    transform: rotate(-9deg) translate3d(7px, -5px, 24px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: rotate(-8deg) translateZ(20px) scale(1);
  }
}

@keyframes vella-card-b {
  0%,
  12% {
    opacity: 1;
    transform: rotate(0deg) translate3d(22px, -18px, 0) scale(0.96);
  }
  24% {
    opacity: 1;
    transform: rotate(7deg) translateZ(80px) scale(1);
  }
  52% {
    transform: rotate(9deg) translate3d(-7px, 10px, 88px) scale(1.015);
  }
  82% {
    transform: rotate(5deg) translate3d(5px, -4px, 76px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: rotate(7deg) translateZ(80px) scale(1);
  }
}

@keyframes vella-card-c {
  0%,
  16% {
    opacity: 1;
    transform: rotate(2deg) translate3d(28px, 20px, 0) scale(0.96);
  }
  28% {
    opacity: 1;
    transform: rotate(-5deg) translateZ(50px) scale(1);
  }
  55% {
    transform: rotate(-2deg) translate3d(-6px, -8px, 58px) scale(1.015);
  }
  84% {
    transform: rotate(-7deg) translate3d(8px, 6px, 46px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: rotate(-5deg) translateZ(50px) scale(1);
  }
}

@keyframes vella-card-d {
  0%,
  19% {
    opacity: 1;
    transform: rotate(0deg) translate3d(18px, 25px, 0) scale(0.96);
  }
  31% {
    opacity: 1;
    transform: rotate(5deg) translateZ(35px) scale(1);
  }
  57% {
    transform: rotate(8deg) translate3d(-7px, -8px, 44px) scale(1.01);
  }
  86% {
    transform: rotate(3deg) translate3d(5px, 5px, 28px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: rotate(5deg) translateZ(35px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page:has(.vella-stage) .asset-card {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .page:has(.vella-stage) .hero {
    min-height: 940px;
  }

  .page:has(.vella-stage) .hero-copy {
    width: min(510px, 52vw);
    padding-top: 70px;
  }

  .page:has(.vella-stage) .hero-stage.vella-stage {
    inset: 0 0 0 22%;
  }
}

@media (max-width: 760px) {
  .page:has(.vella-stage) {
    margin-top: -103px;
  }

  .page:has(.vella-stage) .hero {
    min-height: 1390px;
    padding-top: 145px;
  }

  .page:has(.vella-stage) .hero-layout {
    height: 1120px;
    min-height: 1120px;
  }

  .page:has(.vella-stage) .hero-copy {
    width: 100%;
    padding-top: 30px;
  }

  .page:has(.vella-stage) .hero-copy h1 {
    max-width: 350px;
  }

  .page:has(.vella-stage) .hero-stage.vella-stage {
    inset: 500px 0 auto;
    height: 610px;
    min-height: 610px;
  }

  .page:has(.vella-stage) .stage-topline {
    left: 14px;
    right: 14px;
    top: 20px;
    font-size: 8px;
  }

  .page:has(.vella-stage) .stage-index {
    top: 60px;
    left: 14px;
  }

  .page:has(.vella-stage) .asset-card.card-a {
    top: 24%;
    left: 17%;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    top: 8%;
    right: 2%;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    top: 40%;
    right: 0;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    top: 55%;
    right: auto;
    left: 2%;
  }

  .deck-client-list {
    right: 4%;
    bottom: 74px;
    transform: scale(0.86)
      translate3d(calc(var(--scene-x) * -8px), calc(var(--scene-y) * -5px), 0);
    transform-origin: right bottom;
  }

  .deck-rail {
    bottom: 43px;
    left: 14px;
    gap: 11px;
    max-width: 90%;
  }

  .deck-rail-item {
    font-size: 8px;
  }

  .page:has(.vella-stage) .stage-footer {
    bottom: 14px;
    left: 14px;
    right: 14px;
    font-size: 8px;
  }
}

/* Final cascade for the full-bleed reference motion layout. */
@media (min-width: 761px) {
  .page:has(.vella-stage) .hero {
    min-height: min(960px, 100svh) !important;
    height: min(960px, 100svh) !important;
    padding: 0 !important;
    display: block !important;
  }

  .page:has(.vella-stage) .hero-layout {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
  }

  .page:has(.vella-stage) .hero-copy {
    position: absolute !important;
    top: 52% !important;
    left: max(28px, 10vw) !important;
    width: min(430px, 34vw) !important;
    padding: 0 !important;
    transform: translateY(-10%) !important;
  }

  .page:has(.vella-stage) .hero-copy h1 {
    max-width: 540px !important;
    margin: 20px 0 0 !important;
    font-size: clamp(54px, 5.8vw, 92px) !important;
    line-height: 0.91 !important;
  }

  .page:has(.vella-stage) .hero-copy h1 em {
    color: var(--paper) !important;
  }

  .page:has(.vella-stage) .hero-stage.vella-stage {
    inset: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .page:has(.vella-stage) .stage-topline {
    top: 92px !important;
    left: 10vw !important;
    right: 10vw !important;
  }

  .page:has(.vella-stage) .stage-index {
    top: 36% !important;
    left: 10vw !important;
  }

  .page:has(.vella-stage) .asset-field {
    inset: -12% -4% -8% 35% !important;
  }

  .page:has(.vella-stage) .asset-card.card-a {
    top: -5% !important;
    left: 39% !important;
    width: 332px !important;
    min-height: 370px !important;
    animation: radius-card-a 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    top: 14% !important;
    right: 20% !important;
    width: 320px !important;
    min-height: 224px !important;
    animation: radius-card-b 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    top: 30% !important;
    right: 3% !important;
    bottom: auto !important;
    width: 334px !important;
    min-height: 224px !important;
    animation: radius-card-c 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    top: 51% !important;
    right: 10% !important;
    bottom: auto !important;
    left: auto !important;
    width: 300px !important;
    min-height: 205px !important;
    animation: radius-card-d 12s cubic-bezier(0.22, 0.61, 0.36, 1) infinite !important;
  }

  .page:has(.vella-stage) .deck-client-list {
    right: 10vw !important;
    bottom: 12% !important;
  }

  .page:has(.vella-stage) .deck-rail {
    bottom: 5.5% !important;
    left: 10vw !important;
  }

  .page:has(.vella-stage) .stage-footer {
    bottom: 5.5% !important;
    left: auto !important;
    right: 10vw !important;
  }

  .page:has(.vella-stage) .hero-bottom {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 112px !important;
  }

  .topbar-inner {
    width: calc(100% - 28px) !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: 62px 50px !important;
    gap: 0 !important;
  }

  .main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    gap: 3px !important;
    overflow-x: auto !important;
  }

  .page:has(.vella-stage) {
    margin-top: -112px !important;
  }

  .page:has(.vella-stage) .hero {
    min-height: 920px !important;
    height: 920px !important;
    padding: 0 !important;
    display: block !important;
  }

  .page:has(.vella-stage) .hero-layout {
    height: 100% !important;
    min-height: 100% !important;
  }

  .page:has(.vella-stage) .hero-copy {
    top: 55% !important;
    left: 28px !important;
    width: calc(100% - 56px) !important;
    padding: 0 !important;
    transform: translateY(-10%) !important;
  }

  .page:has(.vella-stage) .hero-copy h1 {
    max-width: 350px !important;
    font-size: clamp(52px, 14vw, 78px) !important;
  }

  .page:has(.vella-stage) .hero-stage.vella-stage {
    inset: 0 !important;
    height: 920px !important;
    min-height: 0 !important;
  }

  .page:has(.vella-stage) .stage-topline {
    top: 126px !important;
    left: 28px !important;
    right: 28px !important;
  }

  .page:has(.vella-stage) .stage-index {
    top: 28% !important;
    left: 28px !important;
  }

  .page:has(.vella-stage) .asset-field {
    inset: -4% -30% 30% 10% !important;
  }

  .page:has(.vella-stage) .asset-card.card-a {
    top: 7% !important;
    left: 32% !important;
    width: 236px !important;
    min-height: 286px !important;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    top: 21% !important;
    right: -7% !important;
    width: 224px !important;
    min-height: 174px !important;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    top: 32% !important;
    right: -11% !important;
    width: 232px !important;
    min-height: 174px !important;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    top: 43% !important;
    right: 5% !important;
    left: auto !important;
    width: 208px !important;
    min-height: 160px !important;
  }

  .page:has(.vella-stage) .deck-client-list {
    right: 28px !important;
    bottom: 9% !important;
    transform: scale(0.8) !important;
  }

  .page:has(.vella-stage) .deck-rail {
    bottom: 4.5% !important;
    left: 28px !important;
    max-width: calc(100% - 56px) !important;
  }

  .page:has(.vella-stage) .stage-footer {
    display: none !important;
  }
}

/* Completion pass: truthful prototype state, accessible focus and stable breakpoints. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--acid);
  font: 11px var(--mono);
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  padding: 5px 7px;
  border: 1px solid rgba(214, 223, 154, 0.3);
  border-radius: 999px;
  color: var(--acid);
  background: rgba(214, 223, 154, 0.06);
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

i[data-lucide] {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-style: normal;
  line-height: 1;
}

:where(button, a, input, select, textarea, [role="button"]):focus-visible {
  outline: 2px solid var(--acid) !important;
  outline-offset: 3px;
}

[data-drag-card][role="button"] {
  cursor: grab;
}

[data-drag-card][role="button"]:active {
  cursor: grabbing;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .topbar-inner {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-sub,
  .topbar-actions .utility-button {
    display: none;
  }

  .main-nav {
    gap: 2px;
  }

  .nav-button {
    padding: 8px 9px;
    font-size: 9px;
  }

  .topbar-actions .button {
    padding-inline: 11px;
    font-size: 9px;
  }

  .story-grid {
    width: calc(100% - 32px);
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
    gap: 16px;
  }

  .story-card {
    width: min(500px, 96%);
  }

  .page:has(.vella-stage) .hero-copy {
    top: 53% !important;
    left: 32px !important;
    width: min(370px, 43vw) !important;
  }

  .page:has(.vella-stage) .hero-copy h1 {
    font-size: clamp(46px, 6.4vw, 64px) !important;
    line-height: 0.94 !important;
  }

  .page:has(.vella-stage) .hero-copy .lede {
    max-width: 330px;
  }

  .page:has(.vella-stage) .stage-topline {
    left: 32px !important;
    right: 32px !important;
  }

  .page:has(.vella-stage) .stage-index {
    left: 32px !important;
  }

  .page:has(.vella-stage) .asset-card.card-a {
    left: 49% !important;
    width: 260px !important;
    min-height: 320px !important;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    right: 3% !important;
    width: 244px !important;
    min-height: 195px !important;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    right: -1% !important;
    width: 250px !important;
    min-height: 195px !important;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    right: 5% !important;
    width: 230px !important;
    min-height: 180px !important;
  }

  .page:has(.vella-stage) .deck-client-list {
    display: none !important;
  }

  .page:has(.vella-stage) .deck-rail {
    left: 32px !important;
    max-width: calc(100% - 64px) !important;
  }

  .page:has(.vella-stage) .stage-footer {
    right: 32px !important;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    height: 112px !important;
    min-height: 112px !important;
    padding: 0 !important;
  }

  .brand {
    gap: 8px;
  }

  .prototype-badge {
    padding: 4px 6px;
    font-size: 7px;
  }

  .story-sticky {
    min-height: 0;
  }

  .story-grid {
    height: 100%;
    grid-template-rows: minmax(126px, 31%) minmax(0, 1fr);
    gap: 8px;
    padding: 42px 0 22px;
  }

  .story-copy h2 {
    margin: 9px 0 8px;
    font-size: clamp(29px, 8.5vw, 42px);
  }

  .story-visual {
    height: 100%;
  }

  .story-card {
    height: calc(100% - 8px);
    min-height: 0;
    padding: 18px;
  }

  .story-card-title {
    margin-top: 17px;
  }

  .story-market-rows,
  .builder-mini-grid,
  .account-mini-grid {
    margin-top: 16px;
  }

  .scroll-story {
    height: auto;
  }

  .story-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .story-progress-head,
  .story-progress-track,
  .story-field,
  .story-dots {
    display: none;
  }

  .story-grid {
    width: calc(100% - 28px);
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 22px;
    padding: 54px 0 64px;
  }

  .story-copy-stack,
  .story-visual {
    display: contents;
  }

  .story-copy {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 26px 10px 2px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .story-copy p {
    display: block;
    max-width: 42rem;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.6;
  }

  .story-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: clamp(320px, 92vw, 430px);
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    pointer-events: auto;
  }

  .story-copy[data-story-copy="0"] {
    order: 1;
  }
  .story-card[data-story-card="0"] {
    order: 2;
  }
  .story-copy[data-story-copy="1"] {
    order: 3;
  }
  .story-card[data-story-card="1"] {
    order: 4;
  }
  .story-copy[data-story-copy="2"] {
    order: 5;
  }
  .story-card[data-story-card="2"] {
    order: 6;
  }
  .story-copy[data-story-copy="3"] {
    order: 7;
  }
  .story-card[data-story-card="3"] {
    order: 8;
  }
  .story-copy[data-story-copy="4"] {
    order: 9;
  }
  .story-card[data-story-card="4"] {
    order: 10;
  }
  .story-copy[data-story-copy="5"] {
    order: 11;
  }
  .story-card[data-story-card="5"] {
    order: 12;
  }
}

@media (max-width: 430px) {
  .prototype-badge {
    display: none;
  }

  .story-card-title strong {
    font-size: 29px;
  }

  .story-card-foot {
    display: none;
  }
}

@media (pointer: coarse) {
  .page:has(.vella-stage) .asset-card {
    touch-action: pan-y;
  }
}

@media (min-width: 761px) and (max-height: 695px) {
  .story-sticky {
    min-height: 0;
  }

  .story-grid {
    padding-top: 52px;
    padding-bottom: 22px;
  }

  .story-copy-stack {
    min-height: 250px;
  }

  .story-copy h2 {
    margin: 12px 0;
    font-size: clamp(32px, 4vw, 52px);
  }

  .story-copy p {
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
  }

  .story-visual {
    height: calc(100svh - 150px);
    min-height: 0;
  }

  .story-card {
    height: calc(100% - 8px);
    min-height: 0;
    padding: 20px;
  }
}

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

  .page:has(.vella-stage) .asset-card,
  .page:has(.vella-stage) .asset-card.card-a,
  .page:has(.vella-stage) .asset-card.card-b,
  .page:has(.vella-stage) .asset-card.card-c,
  .page:has(.vella-stage) .asset-card.card-d,
  .hero-scroll-cue svg,
  .story-copy,
  .story-card,
  .story-card *,
  .deck-client-pill,
  .deck-rail-item {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

.hero-telemetry {
  display: none;
}

/* V26 final cascade / denser desktop composition with a light market readout. */
@media (min-width: 1101px) and (min-height: 700px) {
  .page:has(.vella-stage) .hero-telemetry {
    position: absolute;
    top: 15.5%;
    left: 10vw;
    z-index: 23;
    display: block;
    width: min(760px, 44vw);
    max-height: 126px;
    padding: 13px 0 12px;
    overflow: hidden;
    border-top: 1px solid rgba(205, 216, 207, 0.18);
    border-bottom: 1px solid rgba(205, 216, 207, 0.12);
    background: linear-gradient(90deg, rgba(16, 20, 22, 0.7), rgba(10, 13, 16, 0.22) 78%, transparent);
    color: var(--paper);
    pointer-events: none;
    opacity: 0;
    animation: radius-copy-in 0.9s 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  .page:has(.vella-stage) .telemetry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-right: 12px;
    color: #7f8983;
    font-family: var(--mono);
    font-size: clamp(7px, 0.46vw, 10px);
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1;
  }

  .page:has(.vella-stage) .telemetry-preview {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #aab39c;
    white-space: nowrap;
  }

  .page:has(.vella-stage) .telemetry-preview i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b6c67b;
    box-shadow: 0 0 12px rgba(182, 198, 123, 0.48);
  }

  .page:has(.vella-stage) .telemetry-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 11px;
  }

  .page:has(.vella-stage) .telemetry-metrics > div {
    min-width: 0;
    padding: 0 clamp(9px, 0.9vw, 19px);
    border-left: 1px solid rgba(205, 216, 207, 0.11);
  }

  .page:has(.vella-stage) .telemetry-metrics > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .page:has(.vella-stage) .telemetry-metrics small {
    display: block;
    overflow: hidden;
    color: #616a65;
    font-family: var(--mono);
    font-size: clamp(6px, 0.39vw, 9px);
    letter-spacing: 0.08em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page:has(.vella-stage) .telemetry-metrics strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #d9d9d1;
    font-size: clamp(15px, 1.06vw, 25px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page:has(.vella-stage) .telemetry-metrics strong em {
    margin-left: 2px;
    color: #8e978f;
    font-family: var(--mono);
    font-size: 0.42em;
    font-style: normal;
    letter-spacing: 0.04em;
  }

  .page:has(.vella-stage) .telemetry-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    padding-top: 11px;
    color: #68716c;
    font-family: var(--mono);
    font-size: clamp(6px, 0.39vw, 9px);
    font-weight: 500;
    letter-spacing: 0.11em;
    line-height: 1;
  }

  .page:has(.vella-stage) .telemetry-flow::before {
    content: "";
    position: absolute;
    top: 3px;
    right: 10px;
    left: 3px;
    height: 1px;
    background: linear-gradient(90deg, rgba(142, 243, 219, 0.56), rgba(142, 243, 219, 0.24) 67%, rgba(182, 198, 123, 0.26));
  }

  .page:has(.vella-stage) .telemetry-flow span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
  }

  .page:has(.vella-stage) .telemetry-flow span::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 0;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(142, 243, 219, 0.62);
    border-radius: 50%;
    background: #0a0d10;
  }

  .page:has(.vella-stage) .telemetry-flow span:nth-child(-n + 3)::before {
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(142, 243, 219, 0.34);
  }

  .page:has(.vella-stage) .telemetry-flow span:last-child::before {
    border-color: rgba(182, 198, 123, 0.72);
  }

  .page:has(.vella-stage) .telemetry-flow i {
    color: #3f4843;
    font-style: normal;
  }

  .page:has(.vella-stage) .asset-card {
    padding: clamp(18px, 1.15vw, 30px) !important;
    transform-origin: 50% 50%;
  }

  .page:has(.vella-stage) .asset-card-head,
  .page:has(.vella-stage) .asset-card-foot,
  .page:has(.vella-stage) .asset-card-rule {
    gap: clamp(8px, 0.55vw, 14px);
    font-size: clamp(9px, 0.52vw, 13px);
  }

  .page:has(.vella-stage) .card-monogram,
  .page:has(.vella-stage) .card-symbol {
    width: clamp(22px, 1.35vw, 34px);
    height: clamp(22px, 1.35vw, 34px);
    font-size: clamp(10px, 0.58vw, 14px);
  }

  .page:has(.vella-stage) .asset-card-title {
    margin-top: clamp(26px, 1.8vw, 46px);
    font-size: clamp(17px, 1.12vw, 28px);
  }

  .page:has(.vella-stage) .asset-card-value {
    font-size: clamp(52px, 3.25vw, 82px);
  }

  .page:has(.vella-stage) .asset-card-value span {
    font-size: clamp(12px, 0.62vw, 16px);
  }

  .page:has(.vella-stage) .asset-live-chart {
    margin-top: clamp(24px, 1.6vw, 40px);
  }

  .page:has(.vella-stage) .asset-card.card-a {
    top: 42% !important;
    left: 39.5% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 8;
    width: clamp(320px, 20.5vw, 520px) !important;
    min-height: clamp(356px, min(23.5vw, 44vh), 600px) !important;
    animation: radius-dense-card-a 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-b {
    top: 7% !important;
    right: 18% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 7;
    width: clamp(320px, 22vw, 560px) !important;
    min-height: clamp(224px, min(17vw, 33vh), 430px) !important;
    animation: radius-dense-card-b 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-c {
    top: 27% !important;
    right: 1.5% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10;
    width: clamp(334px, 22vw, 560px) !important;
    min-height: clamp(224px, min(15.5vw, 30vh), 395px) !important;
    animation: radius-dense-card-c 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .asset-card.card-d {
    top: 49% !important;
    right: 7.5% !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 11;
    width: clamp(300px, 19.6vw, 500px) !important;
    min-height: clamp(205px, min(15vw, 29vh), 380px) !important;
    animation: radius-dense-card-d 12s ease-in-out infinite !important;
  }

  .page:has(.vella-stage) .deck-client-list {
    right: 8% !important;
    bottom: 9% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page:has(.vella-stage) .hero-telemetry,
  .page:has(.vella-stage) .asset-card.card-a,
  .page:has(.vella-stage) .asset-card.card-b,
  .page:has(.vella-stage) .asset-card.card-c,
  .page:has(.vella-stage) .asset-card.card-d {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* V27 functional-state and clickable-card affordances. */
.source-status-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  max-width: 190px;
  padding: 0 11px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid rgba(184, 193, 200, 0.16);
  border-radius: 999px;
  background: rgba(16, 20, 26, 0.72);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.source-status-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-status-button:hover {
  color: var(--paper);
  border-color: rgba(142, 243, 219, 0.34);
  background: rgba(142, 243, 219, 0.06);
}

.source-status-button.is-ready {
  color: var(--cyan);
  border-color: rgba(142, 243, 219, 0.27);
}

.source-status-button.is-error {
  color: var(--coral);
  border-color: rgba(255, 145, 121, 0.3);
}

[data-card-link] {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

[data-card-link]:hover {
  border-color: rgba(142, 243, 219, 0.3);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  filter: brightness(1.035);
}

[data-card-link]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
  border-color: rgba(216, 255, 124, 0.42);
}

[data-card-link]:active {
  filter: brightness(0.94);
}

.deck-client-pill {
  appearance: none;
  cursor: pointer;
  text-align: left;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.deck-client-pill:hover {
  color: var(--paper);
  border-color: rgba(142, 243, 219, 0.36);
  background: rgba(31, 36, 34, 0.94);
}

.deck-client-pill:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.deck-client-pill:active {
  filter: brightness(0.9);
}

.deck-client-pill.is-active:hover {
  color: #201810;
  border-color: #e8ad7b;
  background: #e8ad7b;
}

.series-price small {
  display: block;
  max-width: 210px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font: 8px/1.35 var(--mono);
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .source-status-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .source-status-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .source-status-button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
  }

  .source-status-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .series-price small {
    max-width: 150px;
  }
}
