/* Metaphor shared website system */
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,400..900;1,400..900&family=IBM+Plex+Sans:wght@500;600;700&family=Outfit:wght@300..700&display=swap");

:root {
  color-scheme: dark;
  --site-bg: #111212;
  --site-bg-deep: #0d0e0e;
  --site-panel: #181919;
  --site-panel-raised: #1d1e1f;
  --site-panel-soft: #222323;
  --site-ink: #f2f2ee;
  --site-ink-soft: #c4c4bf;
  --site-muted: #858681;
  --site-faint: #62635f;
  --site-line: rgba(255, 255, 255, 0.09);
  --site-line-strong: rgba(255, 255, 255, 0.16);
  --site-accent: #aab3ff;
  --site-accent-strong: #7d8cf4;
  --site-live: #83c8a9;
  --site-risk: #d08374;
  --site-warm: #d7ae6f;
  --site-radius: 13px;
  --site-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --site-bevel: inset 0 1px rgba(255, 255, 255, 0.055), inset 0 -1px rgba(0, 0, 0, 0.35);
  --site-body: "Outfit", "Avenir Next", Avenir, sans-serif;
  --site-display: "Albert Sans", "Avenir Next", Avenir, sans-serif;
  --site-wordmark: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --site-mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body.site-page {
  min-width: 320px;
  margin: 0;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 82% -4%, rgba(125, 140, 244, 0.11), transparent 28rem),
    linear-gradient(180deg, #151616 0%, var(--site-bg) 48%, var(--site-bg-deep) 100%);
  font-family: var(--site-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

body.site-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.site-page button,
.site-page input,
.site-page select,
.site-page textarea { font-family: var(--site-body); }

.site-page h1,
.site-page h2,
.site-page h3,
.site-page .composer-label,
.site-page .interpretation-copy p,
.site-page .metric strong,
.site-page .demand-stat strong {
  font-family: var(--site-display);
}

.site-page a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 48px));
  margin: 14px auto 0;
  background: rgba(20, 21, 21, 0.88);
  border: 1px solid var(--site-line-strong);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24), var(--site-bevel);
  backdrop-filter: blur(18px) saturate(120%);
}

.site-header-inner {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 0 22px;
}

.site-wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
}

.site-wordmark-symbol {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.site-wordmark-symbol img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-wordmark-name {
  color: var(--site-ink);
  font-family: var(--site-display);
  font-size: 1.27rem;
  font-weight: 430;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.site-mark {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--site-line-strong);
  border-radius: 8px;
  box-shadow: var(--site-bevel);
}

.site-mark::before,
.site-mark::after {
  position: absolute;
  border: 1px solid var(--site-accent);
  border-radius: 50%;
  content: "";
}

.site-mark::before { width: 12px; height: 12px; }
.site-mark::after { width: 4px; height: 4px; background: var(--site-accent); }

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  position: relative;
  min-width: 0;
  padding: 8px 0;
  color: var(--site-muted);
  font-size: 1rem;
  font-weight: 620;
  text-align: center;
  transition: color 150ms ease, transform 90ms ease;
}

.site-nav a:hover { color: var(--site-ink-soft); }
.site-nav a:active { transform: translateY(1px) scale(0.98); }
.site-nav a[aria-current="page"] {
  color: var(--site-ink);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--site-accent);
  content: "";
}

.site-page .site-status {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  color: var(--site-ink);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--site-line-strong);
  border-radius: 8px;
  box-shadow: var(--site-bevel);
  font-family: var(--site-mono);
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-page .site-status span { font-size: 0.74rem; transition: transform 160ms ease; }
.enterprise-page .site-status { font-size: 0.72rem; font-weight: 740; }
.site-page .site-status:hover { color: #151616; background: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
.site-page .site-status:hover span { transform: translate(2px, -2px); }
.site-page .site-status:active { transform: translateY(0) scale(0.98); }

.site-page :focus-visible {
  outline: 2px solid var(--site-accent-strong);
  outline-offset: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-top: 110px;
  padding: 30px 0 44px;
  color: var(--site-faint);
  border-top: 1px solid var(--site-line);
  font-family: var(--site-mono);
  font-size: 0.58rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.site-footer-links { display: flex; gap: 20px; }
.site-footer a { color: var(--site-muted); }
.site-footer a:hover { color: var(--site-ink); }

.utility-footer {
  margin-top: 0;
  background: rgba(12, 13, 13, 0.72);
  border-top: 1px solid var(--site-line);
}

.utility-bar {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: clamp(24px, 3.2vw, 52px);
  overflow-x: auto;
  color: var(--site-muted);
  font-family: var(--site-body);
  font-size: clamp(0.92rem, 1.25vw, 1.15rem);
  letter-spacing: -0.025em;
  scrollbar-width: none;
  white-space: nowrap;
}

.utility-bar::-webkit-scrollbar { display: none; }
.utility-bar a { flex: 0 0 auto; transition: color 150ms ease, transform 150ms ease; }
.utility-bar a:hover { color: var(--site-ink); transform: translateY(-1px); }

.utility-app-store { display: inline-flex; align-items: center; gap: 9px; color: var(--site-ink-soft); }
.utility-app-store-icon { display: grid; width: 32px; height: 32px; place-items: center; background: #1677ff; border-radius: 7px; box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 7px 20px rgba(22, 119, 255, 0.2); }
.utility-app-store-icon svg { width: 21px; height: 21px; fill: none; stroke: white; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.8; }
.utility-app-store > span:last-child { display: grid; gap: 1px; }
.utility-app-store small { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.06em; text-transform: uppercase; }
.utility-app-store strong { color: var(--site-ink-soft); font-size: 0.7rem; font-weight: 590; letter-spacing: -0.015em; }

.utility-market-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.utility-market-status i {
  width: 6px;
  height: 6px;
  background: var(--site-live);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(131, 200, 169, 0.08);
}

/* Thesis */

.thesis-page main { overflow: clip; }

.thesis-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: end;
  padding: clamp(88px, 11vw, 150px) 0 86px;
}

.thesis-hero::after {
  position: absolute;
  top: 84px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(170, 179, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.site-kicker,
.section-number,
.artifact-label,
.mini-label {
  color: var(--site-accent);
  font-family: var(--site-mono);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.thesis-hero h1 {
  max-width: 850px;
  margin: 22px 0 28px;
  font-size: clamp(3.7rem, 7.2vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.079em;
  line-height: 0.92;
}

.thesis-hero h1 span { color: var(--site-accent); }

.thesis-deck {
  max-width: 690px;
  margin: 0;
  color: var(--site-ink-soft);
  font-size: clamp(1.06rem, 1.55vw, 1.3rem);
  line-height: 1.55;
}

.thesis-hero-aside {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: rgba(29, 30, 31, 0.72);
  border: 1px solid var(--site-line-strong);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel), var(--site-shadow);
}

.thesis-hero-aside p {
  margin: 12px 0 22px;
  color: var(--site-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 620;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease,
    transform 90ms ease;
}

.site-page .primary-action {
  width: 100%;
  color: #151616;
  background: var(--site-ink);
  border: 1px solid var(--site-ink);
  box-shadow: var(--site-bevel);
}

.site-page .primary-action:hover { background: #dcdcd7; }
.site-page .primary-action:active,
.secondary-action:active { transform: translateY(1px) scale(0.985); }
.action-glyph {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--site-ink);
  background: #171818;
  border-radius: 50%;
  font-size: 0.82rem;
}

.thesis-principle {
  margin: 0 auto;
  padding: 26px 0;
  color: var(--site-muted);
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  font-family: var(--site-mono);
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  line-height: 1.7;
  text-transform: uppercase;
}

.thesis-principle strong { color: var(--site-ink-soft); font-weight: 560; }

.thesis-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(52px, 8vw, 110px);
  align-items: start;
  padding-top: 90px;
}

.thesis-index {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 26px;
}

.index-label {
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thesis-index nav { display: grid; gap: 4px; }
.thesis-index nav a {
  position: relative;
  padding: 8px 0 8px 15px;
  color: var(--site-faint);
  border-left: 1px solid var(--site-line);
  font-size: 0.72rem;
  transition: color 150ms ease, border-color 150ms ease;
}
.thesis-index nav a:hover { color: var(--site-ink); border-color: var(--site-accent); }

.index-meta {
  display: grid;
  gap: 8px;
  padding-top: 19px;
  color: var(--site-faint);
  border-top: 1px solid var(--site-line);
  font-family: var(--site-mono);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thesis-content { min-width: 0; }
.thesis-section {
  scroll-margin-top: 100px;
  padding: 0 0 104px;
}
.thesis-section + .thesis-section {
  padding-top: 8px;
  border-top: 1px solid var(--site-line);
}

.thesis-section-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 38px 0 35px;
}

.thesis-section h2 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 510;
  letter-spacing: -0.062em;
  line-height: 1.04;
}

.section-intro {
  max-width: 750px;
  margin: -12px 0 36px 96px;
  color: var(--site-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.system-card {
  position: relative;
  min-height: 240px;
  padding: 20px;
  overflow: hidden;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel);
}

.system-card::after {
  position: absolute;
  right: -30px;
  bottom: -38px;
  color: rgba(255, 255, 255, 0.025);
  font-size: 7rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  content: attr(data-step);
}

.system-card:nth-child(4),
.system-card:nth-child(5) { border-color: rgba(170, 179, 255, 0.22); }
.system-card .mini-label { display: block; margin-bottom: 52px; color: var(--site-faint); }
.system-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.system-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.75rem;
  line-height: 1.52;
}

.system-walkthrough {
  position: relative;
  overflow: hidden;
  background: var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: 16px;
  box-shadow: var(--site-shadow), var(--site-bevel);
}

.system-walkthrough::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, var(--site-accent), var(--site-live), var(--site-accent));
  content: "";
  transform-origin: left;
}

.motion-enabled .system-walkthrough::before { transform: scaleX(0); }
.motion-enabled .system-walkthrough.is-running::before {
  animation: workflow-progress 2.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.walkthrough-step {
  display: block;
  color: var(--site-accent);
  font-family: var(--site-mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.walkthrough-request {
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 92% 10%, rgba(170, 179, 255, 0.12), transparent 17rem),
    rgba(255, 255, 255, 0.012);
  border-bottom: 1px solid var(--site-line);
}

.walkthrough-request blockquote {
  max-width: 780px;
  margin: 18px 0 22px;
  font-family: var(--site-display);
  font-size: clamp(1.65rem, 3.4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.walkthrough-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.walkthrough-tags span {
  padding: 6px 9px;
  color: var(--site-ink-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--site-line);
  border-radius: 7px;
  font-family: var(--site-mono);
  font-size: 0.52rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.walkthrough-compile {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(390px, 1.28fr);
  border-bottom: 1px solid var(--site-line);
}

.walkthrough-copy {
  padding: 30px;
  border-right: 1px solid var(--site-line);
}

.walkthrough-copy h3 {
  margin: 46px 0 10px;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.walkthrough-copy p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.walkthrough-basket {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  gap: 8px;
}

.basket-side {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--site-line);
  border-radius: 10px;
}

.basket-side > span {
  display: block;
  margin-bottom: 12px;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.5rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.basket-side > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  padding: 0 8px;
  border-top: 1px solid var(--site-line);
  font-size: 0.68rem;
}

.basket-side strong { font-weight: 620; }
.basket-side b { font-family: var(--site-mono); font-size: 0.57rem; font-weight: 500; }
.basket-side--long b { color: var(--site-live); }
.basket-side--short b { color: var(--site-risk); }

.walkthrough-trade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
}

.walkthrough-trade > div { display: grid; gap: 7px; }
.walkthrough-trade strong { font-size: 0.85rem; font-weight: 600; }
.walkthrough-trade small { max-width: 280px; color: var(--site-muted); font-size: 0.67rem; line-height: 1.45; }
.walkthrough-arrow { color: var(--site-accent); font-size: 1.2rem; }

.walkthrough-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 14px 0 16px;
  color: #161717;
  background: var(--site-ink);
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 620;
  transition: background-color 160ms ease, transform 160ms ease;
}

.walkthrough-action:hover { background: #fff; transform: translateY(-2px); }

.motion-enabled .system-walkthrough .walkthrough-request > *,
.motion-enabled .system-walkthrough .walkthrough-copy > *,
.motion-enabled .system-walkthrough .basket-side,
.motion-enabled .system-walkthrough .basket-side > div,
.motion-enabled .system-walkthrough .walkthrough-trade > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .system-walkthrough.is-running .walkthrough-request > *,
.motion-enabled .system-walkthrough.is-running .walkthrough-copy > *,
.motion-enabled .system-walkthrough.is-running .basket-side,
.motion-enabled .system-walkthrough.is-running .basket-side > div,
.motion-enabled .system-walkthrough.is-running .walkthrough-trade > * {
  opacity: 1;
  transform: translateY(0);
}

.motion-enabled .system-walkthrough.is-running .walkthrough-request .walkthrough-step { transition-delay: 80ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-request blockquote { transition-delay: 190ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-tags { transition-delay: 360ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-copy .walkthrough-step { transition-delay: 560ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-copy h3 { transition-delay: 670ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-copy p { transition-delay: 790ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--long { transition-delay: 860ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--short { transition-delay: 1120ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--long > div:nth-of-type(1) { transition-delay: 980ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--long > div:nth-of-type(2) { transition-delay: 1050ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--long > div:nth-of-type(3) { transition-delay: 1120ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--long > div:nth-of-type(4) { transition-delay: 1190ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--long > div:nth-of-type(5) { transition-delay: 1260ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--short > div:nth-of-type(1) { transition-delay: 1320ms; }
.motion-enabled .system-walkthrough.is-running .basket-side--short > div:nth-of-type(2) { transition-delay: 1410ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-trade > div:first-child { transition-delay: 1580ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-arrow { transition-delay: 1740ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-trade > div:nth-of-type(2) { transition-delay: 1900ms; }
.motion-enabled .system-walkthrough.is-running .walkthrough-action { transition-delay: 2080ms; }

/* Trade construction timeline */

.trade-construction { touch-action: pan-y; }
.trade-construction::before { display: none; }

.trade-timeline {
  --trade-stage-gutter: 28px;
  --trade-stage-gap: 20px;
  --trade-marker-size: 28px;
  --trade-rail-x: 41px;
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trade-timeline::before,
.trade-timeline::after {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: var(--trade-rail-x);
  width: 2px;
  border-radius: 2px;
  content: "";
  transform-origin: top;
}

.trade-timeline::before { background: var(--site-line-strong); }
.trade-timeline::after { background: linear-gradient(var(--site-accent), var(--site-live)); }
.motion-enabled .trade-timeline::after { transform: scaleY(0); }
.motion-enabled .trade-construction.is-running .trade-timeline::after { animation: timeline-fill 2.4s 120ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.trade-stage {
  position: relative;
  display: grid;
  grid-template-columns: var(--trade-marker-size) minmax(0, 1fr);
  gap: var(--trade-stage-gap);
  padding: 28px 32px 28px var(--trade-stage-gutter);
  border-bottom: 1px solid var(--site-line);
}

.trade-stage:last-child { border-bottom: 0; }

.trade-stage-marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--trade-marker-size);
  height: var(--trade-marker-size);
  place-items: center;
  margin-top: 1px;
  color: var(--site-faint);
  background: var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: 50%;
  font-family: var(--site-mono);
  font-size: 0.48rem;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.trade-stage-content { min-width: 0; }
.trade-example-meta { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.trade-example-controls { display: flex; align-items: center; gap: 7px; }
.trade-example-counter {
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.5rem;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.site-page .trade-example-nav {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  color: var(--site-ink-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--site-line-strong);
  border-radius: 50%;
  font-family: var(--site-mono);
  font-size: 0.66rem;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.site-page .trade-example-nav:hover {
  color: #151616;
  background: var(--site-ink);
  border-color: var(--site-ink);
  transform: translateY(-1px);
}
.trade-stage-content blockquote {
  max-width: 760px;
  margin: 12px 0 18px;
  font-family: var(--site-display);
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  font-weight: 520;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.trade-stage-content h3 {
  margin: 10px 0 15px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.trade-leg-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.trade-leg {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--site-line);
  border-radius: 8px;
  font-family: var(--site-mono);
  font-size: 0.53rem;
}
.trade-leg b { color: var(--site-ink); font-weight: 650; }
.trade-leg--long { color: var(--site-live); }
.trade-leg--short { color: var(--site-risk); }
.trade-leg--hedge { color: var(--site-accent); }

.market-logo {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  overflow: hidden;
  place-items: center;
  color: #151616;
  background: #efefeb;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 7px rgba(0, 0, 0, 0.24);
}

.market-logo img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.market-logo-fallback {
  display: none;
  font-family: var(--site-mono);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.market-logo.is-fallback img { display: none; }
.market-logo.is-fallback .market-logo-fallback { display: block; }
.market-logo--table { width: 30px; height: 30px; border-radius: 8px; }
.market-logo--table .market-logo-fallback { font-size: 0.5rem; }
.market-logo--cluster { width: 21px; height: 21px; border-radius: 6px; }
.market-logo--universe { width: 22px; height: 22px; border-radius: 7px; }
.market-logo--universe .market-logo-fallback { font-size: 0.42rem; }

.market-logo-cluster {
  display: flex;
  align-items: center;
  width: 45px;
  padding-left: 1px;
}

.market-logo-cluster .market-logo + .market-logo { margin-left: -9px; }
.market-logo-cluster .market-logo:nth-child(1) { z-index: 3; }
.market-logo-cluster .market-logo:nth-child(2) { z-index: 2; }
.market-logo-cluster .market-logo:nth-child(3) { z-index: 1; }

.trade-construction:not(.is-switching) .trade-leg .market-logo {
  animation: market-logo-pop 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.trade-construction:not(.is-switching) .trade-leg:nth-child(2) .market-logo { animation-delay: 40ms; }
.trade-construction:not(.is-switching) .trade-leg:nth-child(3) .market-logo { animation-delay: 80ms; }
.trade-construction:not(.is-switching) .trade-leg:nth-child(4) .market-logo { animation-delay: 120ms; }
.trade-construction:not(.is-switching) .trade-leg:nth-child(5) .market-logo { animation-delay: 160ms; }
.trade-construction:not(.is-switching) .trade-leg:nth-child(6) .market-logo { animation-delay: 200ms; }
.trade-construction:not(.is-switching) .trade-leg:nth-child(7) .market-logo { animation-delay: 240ms; }

@keyframes market-logo-pop {
  from { opacity: 0; transform: translateY(5px) scale(0.76); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.trade-quote {
  display: grid;
  gap: 13px;
}
.trade-quote-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.trade-quote-head > div { display: grid; gap: 8px; }
.trade-quote-head strong { font-size: 0.9rem; }
.trade-quote-status { display: inline-flex; align-items: center; gap: 7px; color: var(--site-live); font-family: var(--site-mono); font-size: 0.48rem; letter-spacing: 0.055em; text-transform: uppercase; }
.trade-quote-status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(131, 200, 169, 0.08); }
.trade-quote-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--site-line); border-radius: 9px; }
.trade-quote-grid > span { min-width: 0; padding: 10px 11px 11px; border-right: 1px solid var(--site-line); }
.trade-quote-grid > span:last-child { border-right: 0; }
.trade-quote-grid small,
.trade-quote-foot small { display: block; margin-bottom: 4px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.43rem; letter-spacing: 0.055em; text-transform: uppercase; }
.trade-quote-grid strong { display: block; overflow-wrap: anywhere; color: var(--site-ink); font-family: var(--site-mono); font-size: 0.57rem; }
.trade-quote-grid > span:nth-child(1) strong { color: var(--site-live); }
.trade-quote-grid > span:nth-child(2) strong { color: var(--site-risk); }
.trade-quote-grid > span:nth-child(3) strong { color: var(--site-accent); }
.trade-quote-foot { display: grid; grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr); gap: 24px; align-items: end; }
.trade-quote-foot > div { min-width: 0; }
.trade-quote-foot strong { color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.54rem; }
.trade-quote-foot p { margin: 0; color: var(--site-muted); font-size: 0.64rem; line-height: 1.45; }
.trade-quote-foot p span { margin-right: 7px; color: var(--site-accent); font-family: var(--site-mono); font-size: 0.45rem; letter-spacing: 0.055em; text-transform: uppercase; }

.trade-stage-content {
  transition: opacity 220ms ease, transform 220ms ease;
}
.trade-construction.is-switching .trade-stage-content {
  opacity: 0;
  transform: translateY(6px);
}
.trade-construction.is-switching .trade-stage-marker { opacity: 0.45; }

.motion-enabled .trade-stage { opacity: 0; transform: translateY(14px); }
.motion-enabled .trade-construction.is-running .trade-stage {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(1) { transition-delay: 80ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(2) { transition-delay: 560ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(3) { transition-delay: 1080ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(4) { transition-delay: 1540ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(1) .trade-stage-marker { transition-delay: 180ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(2) .trade-stage-marker { transition-delay: 660ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(3) .trade-stage-marker { transition-delay: 1180ms; }
.motion-enabled .trade-construction.is-running .trade-stage:nth-child(4) .trade-stage-marker { transition-delay: 1640ms; }
.motion-enabled .trade-construction.is-running .trade-stage-marker {
  color: #151616;
  background: var(--site-accent);
  border-color: var(--site-accent);
  box-shadow: 0 0 0 5px rgba(170, 179, 255, 0.08);
}

/* Eight-zone 3D interaction adapted to the final trade ticket. */

.trade-hover-3d {
  position: relative;
  display: block;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin-top: 12px;
  perspective: 900px;
}

.tilt-zone { position: absolute; z-index: 3; width: 25%; height: 50%; }
.tilt-zone:nth-child(1) { top: 0; left: 0; }
.tilt-zone:nth-child(2) { top: 0; left: 25%; }
.tilt-zone:nth-child(3) { top: 0; left: 50%; }
.tilt-zone:nth-child(4) { top: 0; left: 75%; }
.tilt-zone:nth-child(5) { bottom: 0; left: 0; }
.tilt-zone:nth-child(6) { bottom: 0; left: 25%; }
.tilt-zone:nth-child(7) { right: 25%; bottom: 0; }
.tilt-zone:nth-child(8) { right: 0; bottom: 0; }

.final-trade-card {
  position: relative;
  overflow: hidden;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(131, 200, 169, 0.16), transparent 14rem),
    linear-gradient(135deg, #202223, #151616 72%);
  border: 1px solid rgba(170, 179, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34), var(--site-bevel);
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.trade-hover-3d:hover .final-trade-card { border-color: rgba(170, 179, 255, 0.52); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), var(--site-bevel); transform: translateY(-3px) rotateX(1deg); }
.tilt-zone:nth-child(1):hover ~ .final-trade-card { transform: rotateX(4deg) rotateY(-5deg) translateZ(8px); }
.tilt-zone:nth-child(2):hover ~ .final-trade-card { transform: rotateX(4deg) rotateY(-2deg) translateZ(8px); }
.tilt-zone:nth-child(3):hover ~ .final-trade-card { transform: rotateX(4deg) rotateY(2deg) translateZ(8px); }
.tilt-zone:nth-child(4):hover ~ .final-trade-card { transform: rotateX(4deg) rotateY(5deg) translateZ(8px); }
.tilt-zone:nth-child(5):hover ~ .final-trade-card { transform: rotateX(-4deg) rotateY(-5deg) translateZ(8px); }
.tilt-zone:nth-child(6):hover ~ .final-trade-card { transform: rotateX(-4deg) rotateY(-2deg) translateZ(8px); }
.tilt-zone:nth-child(7):hover ~ .final-trade-card { transform: rotateX(-4deg) rotateY(2deg) translateZ(8px); }
.tilt-zone:nth-child(8):hover ~ .final-trade-card { transform: rotateX(-4deg) rotateY(5deg) translateZ(8px); }
.trade-hover-3d:focus-visible { outline: none; }
.trade-hover-3d:focus-visible .final-trade-card { border-color: var(--site-accent); box-shadow: 0 0 0 3px rgba(170, 179, 255, 0.18), var(--site-shadow); }

.final-trade-head,
.final-trade-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; }
.final-trade-head { color: var(--site-faint); border-bottom: 1px solid var(--site-line); font-family: var(--site-mono); font-size: 0.5rem; letter-spacing: 0.055em; }
.trade-ready { display: inline-flex; align-items: center; gap: 7px; color: var(--site-live); }
.trade-ready i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(131, 200, 169, 0.09); }
.final-trade-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 20px 16px 18px; }
.final-trade-body small,
.final-trade-metrics small { display: block; margin-bottom: 5px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.48rem; letter-spacing: 0.06em; text-transform: uppercase; }
.final-trade-body > div > strong { display: block; max-width: 390px; font-size: clamp(1.15rem, 2.4vw, 1.75rem); line-height: 1.05; }
.final-trade-identity p { max-width: 480px; margin: 9px 0 0; color: var(--site-ink-soft); font-size: 0.66rem; line-height: 1.45; }
.final-trade-metrics { display: flex; gap: 22px; }
.final-trade-metrics b { font-family: var(--site-display); font-size: 0.9rem; }
.final-trade-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr); border-top: 1px solid var(--site-line); }
.final-trade-book { min-width: 0; padding: 14px 16px 15px; border-right: 1px solid var(--site-line); }
.final-trade-detail-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.48rem; letter-spacing: 0.055em; text-transform: uppercase; }
.final-trade-detail-head strong { color: var(--site-ink-soft); font-weight: 500; }
.final-trade-allocation { display: grid; grid-template-columns: var(--long-share) var(--short-share) var(--hedge-share); height: 4px; overflow: hidden; background: var(--site-line); border-radius: 2px; }
.final-trade-allocation i:nth-child(1) { background: var(--site-live); }
.final-trade-allocation i:nth-child(2) { background: #d08374; }
.final-trade-allocation i:nth-child(3) { background: var(--site-accent); }
.final-trade-holdings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.final-trade-holding { display: inline-grid; grid-template-columns: 19px auto auto; align-items: center; gap: 5px; min-height: 27px; padding: 3px 7px 3px 4px; color: var(--site-ink-soft); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--site-line); border-radius: 7px; }
.final-trade-holding .market-logo { width: 19px; height: 19px; border-radius: 5px; }
.final-trade-holding b { color: var(--site-ink); font-family: var(--site-mono); font-size: 0.52rem; }
.final-trade-holding small { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.46rem; }
.final-trade-holding--long { border-bottom-color: rgba(131, 200, 169, 0.38); }
.final-trade-holding--short { border-bottom-color: rgba(208, 131, 116, 0.42); }
.final-trade-holding--hedge { border-bottom-color: rgba(170, 179, 255, 0.42); }
.final-trade-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.final-trade-order div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
.final-trade-order div:nth-child(2n) { border-right: 0; }
.final-trade-order div:nth-last-child(-n + 2) { border-bottom: 0; }
.final-trade-order dt { margin-bottom: 4px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.44rem; letter-spacing: 0.06em; text-transform: uppercase; }
.final-trade-order dd { margin: 0; overflow-wrap: anywhere; color: var(--site-ink); font-family: var(--site-mono); font-size: 0.52rem; line-height: 1.25; }
.final-trade-risk { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 16px; color: var(--site-ink-soft); background: rgba(208, 131, 116, 0.035); border-top: 1px solid var(--site-line); }
.final-trade-risk span { color: #d89a8d; font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.055em; text-transform: uppercase; }
.final-trade-risk p { margin: 0; font-size: 0.58rem; line-height: 1.42; }
.final-trade-foot { color: var(--site-ink-soft); background: rgba(255, 255, 255, 0.025); border-top: 1px solid var(--site-line); font-size: 0.67rem; }
.final-trade-foot > span { display: grid; gap: 2px; }
.final-trade-foot strong { color: var(--site-ink); font-size: 0.64rem; }
.final-trade-foot small { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.46rem; }
.final-trade-foot b { display: grid; width: 24px; height: 24px; place-items: center; color: #151616; background: var(--site-ink); border-radius: 50%; }

@media (hover: none) {
  .tilt-zone { display: none; }
  .trade-hover-3d:hover .final-trade-card { transform: none; }
}

.exposure-record {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% -18%, rgba(129, 144, 255, 0.13), transparent 29rem),
    linear-gradient(145deg, rgba(27, 29, 29, 0.98), rgba(19, 20, 20, 0.98));
  border: 1px solid var(--site-line-strong);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel), 0 34px 90px rgba(0, 0, 0, 0.24);
}

.exposure-record::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 26%;
  height: 1px;
  background: linear-gradient(90deg, var(--site-accent), transparent);
  content: "";
}

.exposure-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--site-line);
}

.record-identity { display: grid; gap: 6px; }
.record-identity > span,
.record-panel-head span,
.record-history-label > span,
.record-status small {
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.49rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.record-identity strong {
  color: var(--site-ink);
  font-family: var(--site-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 580;
  letter-spacing: -0.03em;
}

.record-status { display: flex; align-items: center; gap: 10px; color: var(--site-live); }
.record-status i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(131, 200, 169, 0.08), 0 0 16px rgba(131, 200, 169, 0.34);
}
.record-status > span { display: grid; gap: 2px; font-family: var(--site-mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; }
.record-status small { color: var(--site-faint); font-size: 0.42rem; }

.exposure-record-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr); }
.record-performance { min-width: 0; padding: 24px 24px 20px; border-right: 1px solid var(--site-line); }
.record-book { min-width: 0; padding: 24px; }
.record-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.record-panel-head > div { display: grid; gap: 6px; }
.record-panel-head strong { color: var(--site-ink); font-family: var(--site-display); font-size: 1.45rem; letter-spacing: -0.035em; }
.record-fidelity,
.record-net { text-align: right; }
.record-fidelity b {
  color: var(--site-live);
  font-family: var(--site-display);
  font-size: 1.25rem;
  font-weight: 620;
}
.record-net b { color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.78rem; }

.record-chart { position: relative; height: 220px; margin-top: 18px; }
.record-chart svg { display: block; width: 100%; height: 190px; overflow: visible; }
.record-grid { fill: none; stroke: rgba(255, 255, 255, 0.055); stroke-width: 1; vector-effect: non-scaling-stroke; }
.record-area { fill: url(#record-area); opacity: 0.8; }
.record-line {
  fill: none;
  stroke: url(#record-line);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}
.record-point { fill: var(--site-live); stroke: #1a1c1c; stroke-width: 3; vector-effect: non-scaling-stroke; }
.record-chart-axis { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.43rem; letter-spacing: 0.04em; text-transform: uppercase; }

.record-attribution { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 7px; background: var(--site-line); border: 1px solid var(--site-line); border-radius: 9px; overflow: hidden; }
.record-attribution > span { display: grid; gap: 5px; padding: 12px; background: rgba(17, 18, 18, 0.94); }
.record-attribution small { color: var(--site-faint); font-size: 0.5rem; }
.record-attribution b { color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.62rem; }
.record-attribution b.positive { color: var(--site-live); }
.record-attribution b.negative { color: var(--site-risk); }

.record-positions { display: grid; gap: 13px; margin-top: 24px; }
.record-position { display: grid; grid-template-columns: 56px minmax(50px, 1fr) 47px; gap: 10px; align-items: center; }
.record-position > span { display: grid; gap: 1px; }
.record-position b,
.record-position strong { color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.56rem; }
.record-position small { color: var(--site-faint); font-size: 0.45rem; text-transform: uppercase; }
.record-position i { position: relative; height: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.055); border-radius: 2px; }
.record-position i::after { display: block; width: var(--weight); height: 100%; background: var(--site-live); border-radius: inherit; content: ""; transform-origin: left; }
.record-position.short i::after { background: var(--site-risk); }
.record-position.hedge i::after { background: var(--site-accent); }
.record-position strong { text-align: right; }
.record-position.short strong { color: var(--site-risk); }

.record-history { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 20px 24px 22px; border-top: 1px solid var(--site-line); background: rgba(255, 255, 255, 0.012); }
.record-history-label { display: grid; align-content: start; gap: 7px; }
.record-history-label strong { color: var(--site-ink-soft); font-size: 0.64rem; font-weight: 540; }
.record-history ol { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.record-history ol::before { position: absolute; top: 5px; right: 4px; left: 4px; height: 1px; background: linear-gradient(90deg, var(--site-accent), var(--site-line-strong) 55%, var(--site-live)); content: ""; }
.record-history li { position: relative; display: grid; grid-template-columns: 9px 1fr; gap: 9px; }
.record-history li > i { position: relative; z-index: 1; width: 9px; height: 9px; background: #1c1d1d; border: 2px solid var(--site-accent); border-radius: 50%; }
.record-history li.current > i { background: var(--site-live); border-color: var(--site-live); box-shadow: 0 0 0 5px rgba(131, 200, 169, 0.07); }
.record-history time { grid-column: 2; margin-top: -11px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.44rem; }
.record-history li > span { grid-column: 2; display: grid; gap: 4px; }
.record-history li b { color: var(--site-ink-soft); font-size: 0.61rem; font-weight: 570; }
.record-history li small { max-width: 190px; color: var(--site-faint); font-size: 0.53rem; line-height: 1.42; }

.motion-enabled .exposure-record .record-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion-enabled .exposure-record .record-area { opacity: 0; }
.motion-enabled .exposure-record .record-point { opacity: 0; transform: scale(0); transform-origin: center; }
.motion-enabled .exposure-record .record-position i::after { transform: scaleX(0); }
.motion-enabled .exposure-record.is-visible .record-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.45s 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.motion-enabled .exposure-record.is-visible .record-area { opacity: 0.8; transition: opacity 600ms 1.05s ease; }
.motion-enabled .exposure-record.is-visible .record-point { opacity: 1; transform: scale(1); transition: opacity 220ms 1.5s ease, transform 480ms 1.5s cubic-bezier(0.22, 1, 0.36, 1); }
.motion-enabled .exposure-record.is-visible .record-position i::after { transform: scaleX(1); transition: transform 720ms var(--position-delay, 380ms) cubic-bezier(0.22, 1, 0.36, 1); }
.record-position:nth-child(1) { --position-delay: 450ms; }
.record-position:nth-child(2) { --position-delay: 520ms; }
.record-position:nth-child(3) { --position-delay: 590ms; }
.record-position:nth-child(4) { --position-delay: 660ms; }
.record-position:nth-child(5) { --position-delay: 730ms; }
.record-position:nth-child(6) { --position-delay: 800ms; }
.record-position:nth-child(7) { --position-delay: 870ms; }
.exposure-record:hover .record-point { filter: drop-shadow(0 0 8px rgba(131, 200, 169, 0.8)); }

.economics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.economics-card {
  padding: 25px;
  background: rgba(24, 25, 25, 0.78);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel);
}
.economics-card h3 { margin: 0 0 9px; font-size: 0.94rem; font-weight: 600; }
.economics-card p { margin: 0; color: var(--site-muted); font-size: 0.78rem; line-height: 1.58; }

.index-anatomy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% -20%, rgba(131, 200, 169, 0.08), transparent 28rem),
    radial-gradient(circle at 8% 0%, rgba(170, 179, 255, 0.09), transparent 25rem),
    var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel), var(--site-shadow);
}

.index-anatomy::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, var(--site-accent), transparent);
  content: "";
}

.index-anatomy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--site-line);
}
.index-anatomy-head > div:first-child { display: grid; gap: 6px; }
.index-anatomy-head span,
.index-chart-meta,
.composition-heading span,
.component-graph small,
.component-graph footer span,
.index-method-note {
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.48rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.index-anatomy-head > div:first-child strong { color: var(--site-ink); font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: -0.03em; }
.index-level { display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: end; text-align: right; }
.index-level span { grid-column: 1 / -1; }
.index-level strong { color: var(--site-ink); font-family: var(--site-display); font-size: 1.5rem; letter-spacing: -0.04em; }
.index-level b { padding-bottom: 3px; color: var(--site-live); font-family: var(--site-mono); font-size: 0.58rem; }

.index-anatomy-overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.7fr); border-bottom: 1px solid var(--site-line); }
.index-chart-panel { min-width: 0; padding: 22px 24px 20px; border-right: 1px solid var(--site-line); }
.index-chart-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.index-chart-meta > div { display: flex; align-items: center; gap: 8px; }
.index-key { width: 17px; height: 2px; margin-left: 5px; background: var(--site-accent); }
.index-key--beta { height: 1px; background: repeating-linear-gradient(90deg, var(--site-faint) 0 3px, transparent 3px 6px); }

.index-chart { position: relative; height: 278px; margin-top: 12px; padding-left: 23px; }
.index-chart svg { display: block; width: 100%; height: 250px; overflow: visible; }
.index-grid { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.index-base { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-dasharray: 4 6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.index-beta-path { fill: none; stroke: var(--site-faint); stroke-dasharray: 3 5; stroke-linecap: round; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.index-area-path { fill: url(#index-area-fill); }
.index-main-path { fill: none; stroke: url(#index-stroke); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.15; vector-effect: non-scaling-stroke; }
.index-endpoint { fill: var(--site-live); stroke: #1a1b1b; stroke-width: 3; vector-effect: non-scaling-stroke; }
.index-y-axis { position: absolute; top: 7px; bottom: 28px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.42rem; }
.index-x-axis { position: absolute; right: 0; bottom: 0; left: 23px; display: flex; justify-content: space-between; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.42rem; text-transform: uppercase; }

.index-composition { padding: 22px 24px; }
.composition-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.composition-heading strong { color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.54rem; font-weight: 540; }
.composition-stack { display: flex; height: 13px; margin: 28px 0 27px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border-radius: 2px; }
.composition-stack > i { width: var(--share); transform-origin: left; }
.composition-stack > i + i { border-left: 2px solid var(--site-panel); }
.composition-stack .long,
.composition-groups i.long { background: var(--site-live); }
.composition-stack .short,
.composition-groups i.short { background: var(--site-risk); }
.composition-stack .hedge,
.composition-groups i.hedge { background: var(--site-accent); }
.composition-groups { display: grid; gap: 18px; }
.composition-groups > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; }
.composition-groups span { display: flex; align-items: center; gap: 8px; color: var(--site-ink-soft); font-size: 0.61rem; }
.composition-groups span i { width: 6px; height: 6px; border-radius: 50%; }
.composition-groups strong { color: var(--site-ink); font-family: var(--site-mono); font-size: 0.58rem; }
.composition-groups small { grid-column: 1 / -1; margin-left: 14px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.43rem; }
.composition-equation { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--site-line); font-family: var(--site-mono); }
.composition-equation span { color: var(--site-ink-soft); font-size: 0.6rem; }
.composition-equation i { color: var(--site-faint); font-style: normal; }
.composition-equation b { color: var(--site-live); font-size: 0.58rem; }

.component-graphs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--site-line); }
.component-graph { min-width: 0; padding: 16px; overflow: hidden; background: rgba(18, 19, 19, 0.97); transition: background-color 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1); }
.component-graph:last-child { grid-column: span 2; }
.component-graph:hover { position: relative; z-index: 2; background: #202222; transform: translateY(-3px); }
.component-graph header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.component-graph header > span { display: grid; gap: 2px; }
.component-graph header b,
.component-graph header strong { color: var(--site-ink); font-family: var(--site-mono); font-size: 0.58rem; }
.component-graph.long header strong { color: var(--site-live); }
.component-graph.short header strong { color: var(--site-risk); }
.component-graph.hedge header strong { color: var(--site-accent); }
.component-graph svg { display: block; width: 100%; height: 54px; margin: 13px 0 11px; overflow: visible; }
.component-line { fill: none; stroke: var(--site-live); stroke-linecap: round; stroke-width: 1.45; vector-effect: non-scaling-stroke; }
.component-fill { fill: rgba(131, 200, 169, 0.07); }
.component-graph.short .component-line { stroke: var(--site-risk); }
.component-graph.short .component-fill { fill: rgba(212, 134, 116, 0.07); }
.component-graph.hedge .component-line { stroke: var(--site-accent); }
.component-graph.hedge .component-fill { fill: rgba(170, 179, 255, 0.07); }
.component-graph footer { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.component-graph footer b { color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.5rem; text-align: right; }

.index-method-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 0 24px; border-top: 1px solid var(--site-line); font-size: 0.43rem; }
.index-method-note span { display: inline-flex; align-items: center; gap: 7px; }
.index-method-note span::before { width: 4px; height: 4px; background: var(--site-faint); border-radius: 50%; content: ""; }

.motion-enabled .index-anatomy .index-main-path,
.motion-enabled .index-anatomy .index-beta-path,
.motion-enabled .index-anatomy .component-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion-enabled .index-anatomy .index-area-path,
.motion-enabled .index-anatomy .index-endpoint,
.motion-enabled .index-anatomy .component-fill { opacity: 0; }
.motion-enabled .index-anatomy .composition-stack > i { transform: scaleX(0); }
.motion-enabled .index-anatomy.is-visible .index-main-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s 180ms cubic-bezier(0.22, 1, 0.36, 1); }
.motion-enabled .index-anatomy.is-visible .index-beta-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s 320ms ease; }
.motion-enabled .index-anatomy.is-visible .index-area-path { opacity: 1; transition: opacity 600ms 1s ease; }
.motion-enabled .index-anatomy.is-visible .index-endpoint { opacity: 1; transition: opacity 240ms 1.5s ease; }
.motion-enabled .index-anatomy.is-visible .composition-stack > i { transform: scaleX(1); transition: transform 620ms 440ms cubic-bezier(0.22, 1, 0.36, 1); }
.motion-enabled .index-anatomy.is-visible .component-line { stroke-dashoffset: 0; transition: stroke-dashoffset 760ms var(--component-delay) cubic-bezier(0.22, 1, 0.36, 1); }
.motion-enabled .index-anatomy.is-visible .component-fill { opacity: 1; transition: opacity 420ms var(--component-delay) ease; }

.card-index {
  display: block;
  margin-bottom: 28px;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.56rem;
}

.loop-panel {
  padding: clamp(28px, 4.5vw, 50px);
  background:
    radial-gradient(circle at 94% 0%, rgba(125, 140, 244, 0.14), transparent 20rem),
    var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel), var(--site-shadow);
}
.loop-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 16px 0 30px;
}
.loop-node {
  position: relative;
  padding: 25px 15px 0 0;
  color: var(--site-muted);
  border-top: 2px solid var(--site-line-strong);
  font-size: 0.68rem;
}
.loop-node::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--site-panel);
  border: 2px solid var(--site-faint);
  border-radius: 50%;
  content: "";
}
.loop-node.active { color: var(--site-ink-soft); border-color: var(--site-accent); }
.loop-node.active::before { background: var(--site-accent); border-color: var(--site-accent); }
.loop-node strong { display: block; margin-bottom: 4px; color: var(--site-ink); font-size: 0.7rem; }
.loop-panel > p { max-width: 740px; margin: 0; color: var(--site-muted); font-size: 0.84rem; }

.market-leaderboard {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(170, 179, 255, 0.1), transparent 24rem),
    var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: var(--site-radius);
  box-shadow: var(--site-bevel), var(--site-shadow);
}

.leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--site-line);
}

.leaderboard-head > div { display: grid; gap: 7px; }
.leaderboard-head .artifact-label { color: var(--site-accent); }
.leaderboard-head strong {
  color: var(--site-ink);
  font-family: var(--site-display);
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.leaderboard-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leaderboard-live i {
  width: 6px;
  height: 6px;
  background: var(--site-live);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(122, 211, 174, 0.08), 0 0 10px rgba(122, 211, 174, 0.32);
  animation: leaderboard-pulse 2.4s ease-in-out infinite;
}

.leaderboard-columns,
.market-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.65fr) 66px 80px 96px minmax(118px, 0.75fr) 32px;
  gap: 16px;
  align-items: center;
}

.leaderboard-columns {
  min-height: 36px;
  padding: 0 28px;
  color: var(--site-faint);
  background: rgba(255, 255, 255, 0.012);
  border-bottom: 1px solid var(--site-line);
  font-family: var(--site-mono);
  font-size: 0.48rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li { border-bottom: 1px solid var(--site-line); }
.leaderboard-list li:first-child {
  background: linear-gradient(90deg, rgba(170, 179, 255, 0.065), transparent 62%);
}

.market-row {
  position: relative;
  min-height: 78px;
  padding: 13px 28px;
  transition: background-color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.market-row::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  background: var(--site-accent);
  content: "";
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.market-row:hover,
.market-row:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(3px);
}

.market-row:hover::before,
.market-row:focus-visible::before { opacity: 1; transform: scaleY(1); }

.market-identity {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.market-identity > b {
  color: var(--site-accent);
  font-family: var(--site-mono);
  font-size: 0.6rem;
  font-weight: 500;
}

.market-identity > span { display: grid; gap: 3px; min-width: 0; }
.market-identity strong {
  color: var(--site-ink);
  font-family: var(--site-mono);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.045em;
}
.market-identity small {
  overflow: hidden;
  color: var(--site-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-return {
  font-family: var(--site-mono);
  font-size: 0.66rem;
  font-weight: 620;
}
.market-return.positive { color: var(--site-live); }
.market-return.negative { color: var(--site-risk); }

.market-stat { display: grid; gap: 3px; }
.market-stat strong {
  color: var(--site-ink-soft);
  font-family: var(--site-mono);
  font-size: 0.65rem;
  font-weight: 560;
}
.market-stat small { display: none; color: var(--site-faint); font-size: 0.55rem; }

.market-stage {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 25px;
  padding: 0 9px;
  color: var(--site-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--site-line);
  border-radius: 6px;
  font-family: var(--site-mono);
  font-size: 0.5rem;
  white-space: nowrap;
}
.market-stage i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.stage-review { color: #b7beff; border-color: rgba(170, 179, 255, 0.25); }
.stage-method { color: #9accc0; }
.stage-funded { color: #d6b979; }
.stage-intent { color: var(--site-faint); }

.market-open {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--site-ink);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-size: 0.75rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.market-row:hover .market-open { color: #141515; background: var(--site-ink); transform: rotate(45deg); }

.leaderboard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px 22px;
  color: var(--site-faint);
}
.leaderboard-foot p { max-width: 690px; margin: 0; font-size: 0.68rem; line-height: 1.55; }
.leaderboard-foot p strong { margin-right: 6px; color: var(--site-ink-soft); font-weight: 560; }
.leaderboard-foot > span {
  flex: 0 0 auto;
  font-family: var(--site-mono);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes leaderboard-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1); }
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: end;
  padding: clamp(30px, 5vw, 56px);
  background: var(--site-accent);
  border-radius: var(--site-radius);
  color: #141515;
}
.decision-panel h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 1.02;
}
.decision-panel p { max-width: 700px; margin: 0; color: rgba(20, 21, 21, 0.72); }
.decision-panel .artifact-label { color: rgba(20, 21, 21, 0.62); }
.site-page .decision-panel .primary-action { background: #151616; border-color: #151616; color: var(--site-ink); }
.site-page .decision-panel .primary-action:hover { background: #282929; }
.decision-panel .action-glyph { color: #151616; background: var(--site-ink); }

/* Exposure Lab refinements loaded after the original prototype styles. */

.lab-page .shell { width: min(1180px, calc(100% - 48px)); }
.lab-page > .topbar { display: none; }
.lab-page .hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(58px, 8vw, 108px);
  padding: clamp(82px, 10vw, 132px) 0 96px;
}
.lab-page .hero-copy { padding-top: 18px; }
.lab-page .eyebrow { color: var(--site-accent); }
.lab-page .hero h1 {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(3.8rem, 6.2vw, 6.4rem);
  line-height: 0.93;
}
.lab-page .hero-deck { max-width: 540px; color: var(--site-muted); font-size: 1.04rem; }

.lab-page .system-loop { gap: 5px; }
.lab-page .loop-step {
  position: relative;
  padding: 9px 7px 9px 20px;
  text-align: left;
}
.lab-page .loop-step::before {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 4px;
  height: 4px;
  background: var(--site-accent);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}
.lab-page .composer {
  border-color: var(--site-line-strong);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.018), var(--site-shadow), var(--site-bevel);
}
.lab-page .composer-head { min-height: 52px; }
.lab-page .composer-index { color: var(--site-accent); }
.lab-page textarea { min-height: 148px; }
.lab-page .construct-button { min-height: 48px; }
.lab-page .construct-button .arrow { transition: transform 160ms ease; }
.lab-page .construct-button:hover .arrow { transform: rotate(45deg); }
.lab-page .workspace { padding-top: 20px; }
.lab-page .result-masthead { padding-top: 86px; }
.lab-page .result-kicker,
.lab-page .section-label,
.lab-page .micro-label { color: var(--site-accent); }
.lab-page .result-masthead h2 { max-width: 820px; }
.lab-page .interpretation-grid,
.lab-page .trade-table,
.lab-page .metric-strip,
.lab-page .causal-panel,
.lab-page .risk-panel,
.lab-page .demand-card { border-color: var(--site-line-strong); }
.lab-page .interpretation-grid,
.lab-page .causal-panel,
.lab-page .risk-panel { background: rgba(24, 25, 25, 0.86); }
.lab-page .ticket-section { padding-top: 74px; }
.lab-page .trade-table th { height: 50px; }
.lab-page .trade-table td { padding-top: 18px; padding-bottom: 18px; }
.lab-page .metric-strip { background: #151616; }
.lab-page .logic-grid { margin-top: 18px; }
.lab-page .demand-section { padding-top: 74px; }
.lab-page .demand-card {
  background:
    radial-gradient(circle at 94% 0%, rgba(125, 140, 244, 0.14), transparent 21rem),
    var(--site-panel);
}
.lab-page .page-footer { display: none; }
.lab-page .site-footer { margin-top: 0; }

/* Company front page */

.company-section {
  padding: 112px 0 118px;
  border-top: 1px solid var(--site-line);
}

.company-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(52px, 9vw, 128px);
  align-items: end;
  margin-bottom: 58px;
}

.company-intro h2 {
  max-width: 740px;
  margin: 18px 0 0;
  font-size: clamp(2.8rem, 5.8vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.073em;
  line-height: 0.98;
}

.company-intro h2 span { color: var(--site-accent); }

.company-intro-copy > p {
  margin: 0 0 24px;
  color: var(--site-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.company-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.company-formula span {
  padding: 6px 9px;
  color: var(--site-ink-soft);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--site-line);
  border-radius: 7px;
  font-family: var(--site-mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-formula i {
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.65rem;
  font-style: normal;
}

.layer-ledger {
  overflow: hidden;
  background: rgba(24, 25, 25, 0.72);
  border: 1px solid var(--site-line-strong);
  border-radius: 16px;
  box-shadow: var(--site-bevel);
}

.layer-row {
  display: grid;
  grid-template-columns: 72px 150px minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: center;
  min-height: 118px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--site-line);
  transition: background-color 160ms ease;
}

.layer-row:last-child { border-bottom: 0; }
.layer-row:hover { background: rgba(255, 255, 255, 0.018); }

.layer-index {
  color: var(--site-accent);
  font-family: var(--site-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.layer-name {
  font-family: var(--site-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.layer-description {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.78rem;
  line-height: 1.56;
}

.layer-output {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--site-ink-soft);
  background: #202121;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  font-family: var(--site-mono);
  font-size: 0.52rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.layer-output::before {
  width: 5px;
  height: 5px;
  background: var(--site-accent);
  border-radius: 50%;
  content: "";
}

.company-case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.ownership-panel,
.boundary-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 44px);
  background: var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: 16px;
  box-shadow: var(--site-bevel);
}

.ownership-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(170, 179, 255, 0.1), transparent 18rem),
    var(--site-panel);
}

.company-case h3 {
  max-width: 620px;
  margin: 17px 0 14px;
  font-size: clamp(1.75rem, 3.5vw, 3.15rem);
  font-weight: 520;
  letter-spacing: -0.058em;
  line-height: 1.04;
}

.company-case p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.signal-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid var(--site-line);
}

.signal-node {
  position: relative;
  min-height: 92px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--site-line);
  border-radius: 9px;
}

.signal-node::before {
  display: block;
  width: 5px;
  height: 5px;
  margin-bottom: 20px;
  background: var(--site-faint);
  border-radius: 50%;
  content: "";
}

.signal-node.active { border-color: rgba(170, 179, 255, 0.26); }
.signal-node.active::before { background: var(--site-accent); box-shadow: 0 0 0 4px rgba(170, 179, 255, 0.09); }
.signal-node strong { display: block; color: var(--site-ink-soft); font-size: 0.68rem; }
.signal-node span { display: block; margin-top: 4px; color: var(--site-faint); font-size: 0.62rem; }

.boundary-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--site-line);
}

.boundary-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 15px 0;
  color: var(--site-muted);
  border-bottom: 1px solid var(--site-line);
  font-size: 0.72rem;
}

.boundary-item::before {
  color: var(--site-live);
  font-family: var(--site-mono);
  content: "✓";
}

.economics-section { padding: 0 0 118px; }

.economics-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.economics-head h2 {
  max-width: 700px;
  margin: 15px 0 0;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 510;
  letter-spacing: -0.068em;
  line-height: 1;
}

.economics-head > p {
  max-width: 370px;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.78rem;
}

.revenue-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: var(--site-panel);
  border: 1px solid var(--site-line-strong);
  border-radius: 14px;
  box-shadow: var(--site-bevel);
}

.revenue-item {
  min-height: 180px;
  padding: 22px;
  border-right: 1px solid var(--site-line);
}

.revenue-item:last-child { border-right: 0; }
.revenue-item span {
  display: block;
  margin-bottom: 62px;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}
.revenue-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 600;
}
.revenue-item p { margin: 0; color: var(--site-faint); font-size: 0.65rem; line-height: 1.48; }

/* Conversational distribution */

.channel-section {
  position: relative;
  isolation: isolate;
  margin-top: 112px;
  padding: clamp(36px, 6vw, 74px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(170, 179, 255, 0.13), transparent 22rem),
    radial-gradient(circle at 86% 80%, rgba(131, 200, 169, 0.08), transparent 19rem),
    #0f1010;
  border: 1px solid var(--site-line-strong);
  border-radius: 20px;
  box-shadow: var(--site-shadow), var(--site-bevel);
}

.channel-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(170, 179, 255, 0.6) 1px, transparent 1.4px);
  background-size: 23px 23px;
  content: "";
  mask-image:
    radial-gradient(ellipse at 17% 12%, black 0, transparent 40%),
    radial-gradient(ellipse at 84% 90%, black 0, transparent 36%);
}

.channel-section::after {
  position: absolute;
  top: -190px;
  right: -120px;
  z-index: -1;
  width: 510px;
  height: 510px;
  border: 1px dashed rgba(170, 179, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.channel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: var(--site-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--site-line);
  border-radius: 6px;
  font-family: var(--site-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.channel-kicker::before {
  width: 5px;
  height: 5px;
  background: var(--site-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(170, 179, 255, 0.1);
  content: "";
}

.channel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(36px, 7vw, 98px);
  align-items: end;
  margin: 44px 0 54px;
}

.channel-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 6.7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.076em;
  line-height: 0.94;
}

.channel-heading h2 .platform-word--accent { color: var(--site-accent); }

.platform-word { white-space: pre-wrap; }

.platform-word.is-typing::after {
  display: inline-block;
  width: 0.06em;
  height: 0.78em;
  margin-left: 0.04em;
  background: currentColor;
  content: "";
  animation: type-cursor 680ms steps(1, end) infinite;
  vertical-align: -0.02em;
}

.channel-heading p {
  margin: 0;
  color: var(--site-muted);
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}

.channel-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  justify-content: start;
}

.site-page .channel-action {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 8px;
  color: #151616;
  background: #efefeb;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(0, 0, 0, 0.18), 0 10px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 150ms ease, transform 90ms ease, box-shadow 150ms ease;
}

.site-page .channel-action:last-child { grid-column: auto; }
.site-page .channel-action:hover { background: #fff; }
.site-page .channel-action:active { transform: translateY(1px) scale(0.99); }
.site-page .channel-action.is-selected {
  background: #dfe2ff;
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(0, 0, 0, 0.16), 0 0 0 3px rgba(170, 179, 255, 0.18);
}

.channel-action-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  font-family: var(--site-display);
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.channel-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #171818;
  background: #dadbd7;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 8px;
  font-family: var(--site-wordmark);
  font-size: 0.6rem;
  font-weight: 700;
}

.channel-symbol--claude { color: #ad6049; background: #f4dfd8; }
.channel-symbol--chatgpt { color: #f1f1ed; background: #272929; }
.channel-symbol--message {
  position: relative;
  color: transparent;
  background: #52cf70;
  border-color: #3fba5d;
}
.channel-symbol--message::before {
  width: 16px;
  height: 12px;
  background: white;
  border-radius: 7px;
  content: "";
}
.channel-symbol--message::after {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  background: white;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  content: "";
}

.channel-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--site-ink);
  background: #171818;
  border-radius: 50%;
  font-size: 0.68rem;
  transition: transform 150ms ease;
}
.channel-action:hover .channel-arrow { transform: rotate(45deg); }

.channel-status {
  min-height: 19px;
  margin: 18px 0 0;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.54rem;
  letter-spacing: 0.035em;
}

/* Interface-first Lab */

[hidden] { display: none !important; }

.lab-page .hero {
  gap: clamp(42px, 6vw, 78px);
  row-gap: 22px;
  padding: clamp(58px, 7vw, 86px) 0 72px;
}

.lab-page .hero-copy { padding-top: 8px; }

.lab-page .hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 5.7vw, 5.75rem);
}

.lab-page .hero-deck { margin-bottom: 24px; }
.hero-capabilities { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-capabilities span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--site-ink-soft);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--site-line);
  border-radius: 6px;
  font-family: var(--site-mono);
  font-size: 0.46rem;
  letter-spacing: 0.025em;
}
.hero-capabilities span::before { width: 4px; height: 4px; background: var(--site-live); border-radius: 50%; content: ""; }

.lab-page .composer {
  position: relative;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.lab-page .composer::after {
  position: absolute;
  top: -1px;
  right: 22px;
  left: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--site-accent), transparent);
  content: "";
  opacity: 0.72;
  transform: scaleX(0);
  transform-origin: center;
  animation: composer-line 900ms 380ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lab-page .composer:focus-within {
  border-color: rgba(170, 179, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(170, 179, 255, 0.055), 0 30px 90px rgba(0, 0, 0, 0.36), var(--site-bevel);
  transform: translateY(-2px);
}

.lab-page .composer-head {
  min-height: 44px;
  padding-inline: 15px;
}

.lab-page .composer-body { padding: clamp(20px, 2.5vw, 27px); }
.lab-page .composer-label { margin-bottom: 11px; font-size: 1rem; }
.lab-page textarea { min-height: 116px; padding: 15px; }
.lab-page .examples { margin: 10px 0 19px; }
.lab-page .controls { margin-bottom: 18px; }
.lab-page .construct-button {
  width: min(100%, 208px);
  min-height: 40px;
  margin-inline: auto;
  padding-inline: 12px;
  justify-content: center;
  gap: 11px;
  font-size: 0.76rem;
}

.lab-page .construct-button .arrow {
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
}
.lab-page .composer-note { margin-top: 10px; }
.lab-page .workspace { padding-top: 0; scroll-margin-top: 92px; }
.lab-page .result-masthead { padding-top: 66px; }

/* Shadcn-inspired composer selects, implemented without a framework dependency. */
.lab-page .control { min-width: 0; }
.lab-page .metaphor-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.metaphor-select { position: relative; }
.lab-page .metaphor-select-trigger {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 0 13px;
  color: var(--site-ink-soft);
  background: #202122;
  border: 1px solid #3a3b3c;
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  font-family: var(--site-body);
  font-size: 0.76rem;
  font-weight: 560;
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.lab-page .metaphor-select-trigger:hover { color: var(--site-ink); background: #242525; border-color: #4a4b4c; }
.lab-page .metaphor-select-trigger:focus-visible,
.lab-page .metaphor-select.is-open .metaphor-select-trigger {
  color: var(--site-ink);
  border-color: rgba(170, 179, 255, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(170, 179, 255, 0.12), inset 0 1px rgba(255, 255, 255, 0.035);
}
.metaphor-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metaphor-select-chevron { position: relative; width: 14px; height: 14px; justify-self: end; transition: transform 150ms ease; }
.metaphor-select-chevron::before,
.metaphor-select-chevron::after { position: absolute; top: 6px; width: 8px; height: 1.5px; background: currentColor; content: ""; }
.metaphor-select-chevron::before { left: 0; transform: rotate(45deg); }
.metaphor-select-chevron::after { right: 0; transform: rotate(-45deg); }
.metaphor-select.is-open .metaphor-select-chevron { transform: rotate(180deg); }
.metaphor-select-menu {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 2px;
  padding: 5px;
  color: var(--site-ink-soft);
  background: rgba(24, 25, 25, 0.985);
  border: 1px solid #444647;
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.035);
  transform-origin: top;
  animation: metaphor-select-in 130ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.metaphor-select-menu[data-side="top"] { transform-origin: bottom; }
.metaphor-select-menu[hidden] { display: none; }
.metaphor-select-option {
  display: grid;
  width: 100%;
  min-height: 40px;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  color: var(--site-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-family: var(--site-body);
  font-size: 0.75rem;
  font-weight: 540;
  text-align: left;
}
.metaphor-select-option:hover,
.metaphor-select-option:focus-visible { color: var(--site-ink); background: rgba(255, 255, 255, 0.055); outline: none; box-shadow: none; }
.metaphor-select-option[aria-selected="true"] { color: var(--site-ink); background: rgba(170, 179, 255, 0.1); }
.metaphor-select-check { color: var(--site-accent); font-family: var(--site-mono); opacity: 0; }
.metaphor-select-option[aria-selected="true"] .metaphor-select-check { opacity: 1; }
@keyframes metaphor-select-in { from { opacity: 0; transform: translateY(-4px) scale(0.985); } to { opacity: 1; transform: none; } }

.lab-page .example {
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.lab-page .example:hover { transform: translateY(-1px); }

.perp-universe-shell {
  width: min(860px, calc(100% - 64px));
  margin: 0 auto 112px;
}

.perp-universe {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px 0 28px;
  border-top: 1px solid var(--site-line-strong);
  border-bottom: 1px solid var(--site-line);
}

.perp-universe::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, var(--site-accent), transparent);
  content: "";
}

.perp-universe-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.perp-universe-intro h2 {
  max-width: 520px;
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.25vw, 2.3rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}
.perp-universe-intro p {
  max-width: 580px;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.74rem;
  line-height: 1.58;
}

.perp-universe-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 10px;
}
.perp-universe-groups > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 15px 13px;
  border-right: 1px solid var(--site-line);
}
.perp-universe-groups > div:last-child { border-right: 0; }
.perp-universe-groups strong {
  margin-bottom: 7px;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.perp-universe-groups > div > span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--site-ink-soft);
  font-family: var(--site-mono);
  font-size: 0.61rem;
}
.perp-universe-groups > div > span::after {
  justify-self: end;
  color: var(--site-live);
  content: "MARKET";
  font-size: 0.38rem;
  letter-spacing: 0.06em;
  opacity: 0.68;
}
.perp-universe-note {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 0;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.46rem;
  letter-spacing: 0.025em;
}
.perp-universe-note i {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: var(--site-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(170, 179, 255, 0.08);
}

.perp-ticket-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
  background: rgba(170, 179, 255, 0.035);
  border: 1px solid rgba(170, 179, 255, 0.13);
  border-radius: 9px;
}
.perp-ticket-controls > span {
  display: grid;
  gap: 5px;
  min-height: 62px;
  align-content: center;
  padding: 11px 13px;
  border-right: 1px solid var(--site-line);
}
.perp-ticket-controls > span:last-child { border-right: 0; }
.perp-ticket-controls small {
  color: var(--site-accent);
  font-family: var(--site-mono);
  font-size: 0.42rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.perp-ticket-controls strong { color: var(--site-ink-soft); font-size: 0.57rem; font-weight: 560; line-height: 1.32; }
.trade-table .contract-status { min-width: 150px; }
.trade-table .contract-status .market-type,
.trade-table .contract-status .instrument-name { display: block; }
.trade-table .contract-status .instrument-name { margin-top: 5px; }

.example-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 68px;
  align-items: stretch;
  overflow: hidden;
  background: rgba(23, 24, 24, 0.9);
  border: 1px solid var(--site-line-strong);
  border-radius: 13px;
  box-shadow: var(--site-bevel);
}

.example-banner-meta {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 18px;
  border-right: 1px solid var(--site-line);
  font-family: var(--site-mono);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.example-banner-meta span { color: var(--site-accent); }
.example-banner-meta strong { color: var(--site-faint); font-weight: 500; }

.example-banner-viewport { min-width: 0; overflow: hidden; touch-action: pan-y; }
.example-banner-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-page .example-banner-slide {
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  grid-template-columns: 150px minmax(160px, 1fr) minmax(130px, 210px) 62px auto;
  gap: 18px;
  align-items: center;
  padding: 0 18px;
  color: var(--site-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.example-banner-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.example-banner-name.has-logos {
  grid-template-columns: 45px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  row-gap: 1px;
  align-items: center;
}

.example-banner-name.has-logos .market-logo-cluster { grid-column: 1; grid-row: 1 / 3; }
.example-banner-name.has-logos > strong { grid-column: 2; grid-row: 1; }
.example-banner-name.has-logos > small { grid-column: 2; grid-row: 2; }

.example-banner-slide.is-active .market-logo-cluster .market-logo {
  animation: market-logo-pop 460ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.example-banner-slide.is-active .market-logo-cluster .market-logo:nth-child(2) { animation-delay: 190ms; }
.example-banner-slide.is-active .market-logo-cluster .market-logo:nth-child(3) { animation-delay: 260ms; }

.example-banner-name strong {
  color: var(--banner-accent, var(--site-accent));
  font-family: var(--site-mono);
  font-size: 0.55rem;
  font-weight: 620;
  letter-spacing: 0.055em;
}

.example-banner-name small {
  overflow: hidden;
  color: var(--site-ink-soft);
  font-family: var(--site-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-page .instrument { align-items: center; }
.lab-page .instrument-copy { display: grid; gap: 1px; min-width: 0; }
.lab-page .instrument-copy .ticker,
.lab-page .instrument-copy .instrument-name { display: block; }

.example-banner-query {
  min-width: 0;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example-banner-chart { display: block; height: 44px; min-width: 0; }
.example-banner-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.example-banner-line {
  fill: none;
  stroke: var(--banner-accent, var(--site-accent));
  stroke-linecap: round;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--banner-accent, var(--site-accent)) 38%, transparent));
}
.example-banner-area { fill: color-mix(in srgb, var(--banner-accent, var(--site-accent)) 13%, transparent); }
.example-banner-slide.is-active .example-banner-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: example-chart-draw 3.2s 100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.example-banner-slide.is-active .example-banner-area { animation: example-chart-area 1.1s 900ms ease both; }

.example-banner-quote { display: grid; justify-items: end; line-height: 1.05; }
.example-banner-quote strong { font-family: var(--site-display); font-size: 0.86rem; font-weight: 620; }
.example-banner-quote small { color: var(--site-live); font-family: var(--site-mono); font-size: 0.49rem; }
.example-banner-quote--down small { color: var(--site-risk); }

.example-banner-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #161717;
  background: var(--site-ink);
  border-radius: 50%;
  transition: transform 160ms ease;
}

.example-banner-slide:hover { background: rgba(255, 255, 255, 0.025); }
.example-banner-slide:hover .example-banner-arrow { transform: rotate(45deg); }
.example-banner-slide:focus-visible { outline: 1px solid var(--site-accent); outline-offset: -3px; }

.example-banner-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  border-left: 1px solid var(--site-line);
}

.site-page .example-banner-dots [data-example-index] {
  width: 12px;
  height: 3px;
  padding: 0;
  background: var(--site-line-strong);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.site-page .example-banner-dots [data-example-index][aria-current="true"] { width: 22px; background: var(--site-accent); }

.site-page .example-banner-nav {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  color: var(--site-ink-soft);
  background: transparent;
  border: 1px solid var(--site-line-strong);
  border-radius: 50%;
  font-family: var(--site-mono);
  font-size: 0.62rem;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.site-page .example-banner-nav:hover {
  color: #151616;
  background: var(--site-ink);
  border-color: var(--site-ink);
  transform: translateY(-1px);
}

@keyframes example-chart-draw {
  from { opacity: 0.25; stroke-dashoffset: 300; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes example-chart-area {
  from { opacity: 0; }
  to { opacity: 1; }
}

.channel-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-rows: auto auto auto;
  gap: 20px clamp(42px, 6vw, 76px);
  align-items: start;
  margin-top: 108px;
  padding: 76px 24px 62px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-position: 7px 7px;
  background-size: 18px 18px;
  border: 0;
  border-top: 1px solid var(--site-line);
  border-radius: 0;
  box-shadow: none;
}

.channel-strip::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: min(38%, 390px);
  height: 1px;
  background: linear-gradient(90deg, var(--site-accent), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.motion-enabled .channel-strip.is-visible::before {
  animation: channel-signal 1.15s 120ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.channel-strip-copy { grid-column: 2; grid-row: 1; align-self: end; padding-top: 14px; }

.channel-strip-copy h2 {
  max-width: 520px;
  min-height: 0.95em;
  margin: 20px 0 18px;
  font-size: clamp(3rem, 5vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.channel-strip-copy h2 .platform-word--accent { color: var(--site-accent); }

.channel-strip-copy p {
  max-width: 660px;
  margin: 0;
  color: var(--site-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.55;
}

.channel-strip-actions { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; }

.channel-pill {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 9px;
  color: var(--site-ink-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--site-line-strong);
  border-radius: 11px;
  box-shadow: var(--site-bevel);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 580;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.channel-pill .channel-symbol { width: 27px; height: 27px; border-radius: 8px; font-size: 0.62rem; }
.channel-pill:hover { color: var(--site-ink); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.channel-pill:active { transform: translateY(0); }
.channel-pill.is-selected { color: var(--site-ink); background: rgba(170, 179, 255, 0.1); border-color: rgba(170, 179, 255, 0.42); }

.channel-strip-status {
  grid-column: 2;
  grid-row: 3;
  align-self: center;
  justify-self: start;
  min-height: 16px;
  margin: 0;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.51rem;
  letter-spacing: 0.035em;
}

.channel-demo {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgba(131, 200, 169, 0.07), transparent 24rem),
    radial-gradient(circle at 8% 0%, rgba(170, 179, 255, 0.09), transparent 22rem),
    rgba(19, 20, 20, 0.96);
  border: 1px solid var(--site-line-strong);
  border-radius: 16px;
  box-shadow: var(--site-bevel), 0 30px 80px rgba(0, 0, 0, 0.25);
}

.channel-demo::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, var(--site-accent), transparent);
  content: "";
}

.channel-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--site-faint);
  border-bottom: 1px solid var(--site-line);
  font-family: var(--site-mono);
  font-size: 0.47rem;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.channel-demo-head > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.channel-demo-head i { width: 5px; height: 5px; background: var(--site-live); border-radius: 50%; box-shadow: 0 0 0 4px rgba(131, 200, 169, 0.07); }
.channel-demo-head b { color: var(--site-ink-soft); font-weight: 560; }
.channel-demo-head button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: var(--site-faint); background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.055em; text-transform: uppercase; transition: color 160ms ease, background-color 160ms ease; }
.channel-demo-head button:hover { color: var(--site-ink); background: rgba(255, 255, 255, 0.045); }
.channel-demo-head button span { font-size: 0.72rem; transition: transform 240ms ease; }
.channel-demo-head button:hover span { transform: rotate(-90deg); }

.channel-demo-thread { min-height: 790px; padding: 25px 24px 28px; }
.demo-message { min-width: 0; }
.demo-message--user { width: min(520px, 92%); margin-left: auto; }
.demo-message-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 7px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.055em; text-transform: uppercase; }
.demo-message-meta span:first-child { color: var(--site-ink-soft); }
.demo-bubble {
  min-height: 58px;
  padding: 16px 18px;
  color: var(--site-ink);
  background: rgba(170, 179, 255, 0.1);
  border: 1px solid rgba(170, 179, 255, 0.2);
  border-radius: 15px 15px 4px 15px;
  font-size: clamp(0.82rem, 1.35vw, 1rem);
  line-height: 1.5;
}
.demo-cursor { display: inline-block; width: 1px; height: 1.05em; margin-left: 3px; vertical-align: -0.16em; background: var(--site-accent); opacity: 0; }
.channel-demo.is-user-typing .demo-cursor { opacity: 1; animation: demo-cursor-blink 700ms steps(1) infinite; }

.demo-message--metaphor { margin-top: 23px; }
.demo-message-brand { display: flex; align-items: center; gap: 10px; }
.demo-message-brand > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--site-line-strong);
  border-radius: 8px;
}
.demo-message-brand img { display: block; width: 18px; height: 18px; object-fit: contain; }
.demo-message-brand .demo-message-meta { display: grid; gap: 2px; justify-items: start; margin: 0; }

.demo-thinking {
  display: flex;
  width: fit-content;
  max-height: 0;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 39px;
  overflow: hidden;
  color: var(--site-faint);
  font-family: var(--site-mono);
  font-size: 0.47rem;
  opacity: 0;
  transition: max-height 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}
.demo-thinking i { width: 4px; height: 4px; background: var(--site-accent); border-radius: 50%; }
.demo-thinking span { margin-left: 5px; }
.channel-demo.is-thinking .demo-thinking { max-height: 36px; margin-top: 10px; opacity: 1; }
.channel-demo.is-thinking .demo-thinking i { animation: demo-thinking 900ms ease-in-out infinite; }
.channel-demo.is-thinking .demo-thinking i:nth-child(2) { animation-delay: 130ms; }
.channel-demo.is-thinking .demo-thinking i:nth-child(3) { animation-delay: 260ms; }

.demo-trade-result {
  max-height: 0;
  margin: 0 0 0 39px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(31, 33, 33, 0.98), rgba(21, 22, 22, 0.98));
  border: 1px solid transparent;
  border-radius: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: max-height 520ms cubic-bezier(0.22, 1, 0.36, 1), margin-top 240ms ease, opacity 320ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
}
.channel-demo.is-result .demo-trade-result { max-height: 820px; margin-top: 11px; border-color: rgba(170, 179, 255, 0.24); opacity: 1; transform: translateY(0); }
.demo-trade-result > header,
.demo-trade-result > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; }
.demo-trade-result > header { color: var(--site-faint); border-bottom: 1px solid var(--site-line); font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.055em; }
.demo-ready { display: inline-flex; align-items: center; gap: 7px; color: var(--site-live); }
.demo-ready i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(131, 200, 169, 0.07); }
.demo-trade-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 22px; align-items: end; padding: 17px 14px 19px; }
.demo-trade-title { display: grid; gap: 5px; }
.demo-trade-title small,
.demo-trade-brief small,
.demo-trade-metrics small,
.demo-execution-plan small { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.43rem; letter-spacing: 0.055em; text-transform: uppercase; }
.demo-trade-title strong { color: var(--site-ink); font-size: clamp(1rem, 1.9vw, 1.35rem); letter-spacing: -0.035em; line-height: 1.05; }
.demo-trade-brief { display: flex; gap: 18px; justify-content: flex-end; }
.demo-trade-brief span,
.demo-trade-metrics span,
.demo-execution-plan span { display: grid; gap: 3px; }
.demo-trade-brief b { color: var(--site-ink-soft); font-size: 0.57rem; font-weight: 570; white-space: nowrap; }
.demo-trade-ledger { grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--site-line); border-radius: 9px; }
.demo-trade-ledger-head,
.demo-leg-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 62px 72px; gap: 10px; align-items: center; }
.demo-trade-ledger-head { min-height: 26px; padding: 0 11px; color: var(--site-faint); background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--site-line); font-family: var(--site-mono); font-size: 0.4rem; letter-spacing: 0.055em; text-transform: uppercase; }
.demo-trade-ledger-head span:nth-last-child(-n + 2) { text-align: right; }
.demo-trade-legs { display: grid; }
.demo-leg-row { min-height: 45px; padding: 6px 11px; border-bottom: 1px solid var(--site-line); }
.demo-leg-row:last-child { border-bottom: 0; }
.demo-leg-side { width: fit-content; padding: 3px 5px; color: var(--site-live); background: rgba(131, 200, 169, 0.07); border: 1px solid rgba(131, 200, 169, 0.16); border-radius: 4px; font-family: var(--site-mono); font-size: 0.4rem; text-transform: uppercase; }
.demo-leg-row--short .demo-leg-side { color: var(--site-risk); background: rgba(212, 134, 116, 0.07); border-color: rgba(212, 134, 116, 0.16); }
.demo-leg-row--hedge .demo-leg-side { color: var(--site-accent); background: rgba(170, 179, 255, 0.07); border-color: rgba(170, 179, 255, 0.16); }
.demo-leg-instrument { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 1px 8px; align-items: baseline; min-width: 0; }
.demo-leg-instrument b { color: var(--site-ink); font-family: var(--site-mono); font-size: 0.51rem; }
.demo-leg-instrument > span { overflow: hidden; color: var(--site-ink-soft); font-size: 0.54rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-leg-instrument small { grid-column: 2; color: var(--site-faint); font-size: 0.45rem; }
.demo-leg-instrument.has-logo { grid-template-columns: 22px 42px minmax(0, 1fr); }
.demo-leg-instrument.has-logo .market-logo { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.demo-leg-instrument.has-logo small { grid-column: 3; }
.demo-leg-weight,
.demo-leg-notional { justify-self: end; font-family: var(--site-mono); font-size: 0.5rem; }
.demo-leg-weight { color: var(--site-live); }
.demo-leg-row--short .demo-leg-weight { color: var(--site-risk); }
.demo-leg-row--hedge .demo-leg-weight { color: var(--site-accent); }
.demo-leg-notional { color: var(--site-ink-soft); }
.demo-trade-metrics { grid-column: 1 / -1; display: flex; gap: 20px; padding: 2px 0; }
.demo-trade-metrics span { display: grid; gap: 4px; }
.demo-trade-metrics b { color: var(--site-ink); font-family: var(--site-mono); font-size: 0.61rem; }
.demo-execution-plan { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 11px; background: rgba(170, 179, 255, 0.045); border: 1px solid rgba(170, 179, 255, 0.12); border-radius: 8px; }
.demo-execution-plan b { color: var(--site-ink-soft); font-size: 0.52rem; font-weight: 560; }
.demo-trade-result > footer { color: var(--site-faint); background: rgba(255, 255, 255, 0.018); border-top: 1px solid var(--site-line); font-size: 0.55rem; }
.demo-trade-result > footer a { display: inline-flex; min-height: 30px; align-items: center; gap: 10px; padding: 0 6px 0 11px; color: #151616; background: var(--site-ink); border-radius: 6px; font-size: 0.55rem; font-weight: 620; }
.demo-trade-result > footer a b { display: grid; width: 20px; height: 20px; place-items: center; background: #d8d9d6; border-radius: 50%; transition: transform 180ms ease; }
.demo-trade-result > footer a:hover b { transform: rotate(45deg); }

@keyframes demo-cursor-blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes demo-thinking { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

@keyframes channel-signal {
  0% { opacity: 0; transform: scaleX(0); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Purposeful motion */

@keyframes site-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes header-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes composer-line {
  to { transform: scaleX(1); }
}

@keyframes orbit-drift {
  to { transform: rotate(360deg); }
}

@keyframes type-cursor {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@keyframes workflow-progress {
  0% { opacity: 0; transform: scaleX(0); }
  10% { opacity: 1; }
  86% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes timeline-fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.site-header { animation: header-drop 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.lab-page .hero-copy,
.thesis-page .thesis-hero > div { animation: site-rise 650ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.lab-page .composer,
.thesis-page .thesis-hero-aside { animation: site-rise 700ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.channel-section::after { animation: orbit-drift 46s linear infinite; }

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

.system-card,
.economics-card {
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.system-card:hover,
.economics-card:hover {
  border-color: rgba(170, 179, 255, 0.3);
  transform: translateY(-3px);
}

/* Example market creation */
.market-genesis {
  --genesis-accent: var(--site-accent);
  --genesis-live: var(--site-live);
  max-width: 560px;
  margin-top: 28px;
  padding: 15px 16px 14px;
  overflow: hidden;
  background: radial-gradient(circle at 92% -20%, color-mix(in srgb, var(--genesis-accent) 15%, transparent), transparent 15rem), rgba(23, 24, 24, 0.9);
  border: 1px solid var(--site-line-strong);
  border-radius: 13px;
  box-shadow: var(--site-bevel);
}
.genesis-head, .genesis-market { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.genesis-head { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.49rem; letter-spacing: 0.09em; text-transform: uppercase; }
.genesis-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.genesis-head span:first-child::before {
  width: 5px; height: 5px; background: var(--genesis-accent); border-radius: 50%; content: "";
  animation: genesis-pulse 8s ease-out infinite;
}
.genesis-market { margin-top: 15px; }
.genesis-market, .genesis-chart, .genesis-stages {
  transition: opacity 220ms ease, transform 220ms ease;
}
.market-genesis.is-changing .genesis-market,
.market-genesis.is-changing .genesis-chart,
.market-genesis.is-changing .genesis-stages {
  opacity: 0;
  transform: translateY(4px);
}
.genesis-name { display: grid; gap: 2px; }
.genesis-name span { color: var(--genesis-accent); font-family: var(--site-mono); font-size: 0.52rem; letter-spacing: 0.07em; }
.genesis-name strong { font-family: var(--site-display); font-size: 0.96rem; font-weight: 590; letter-spacing: -0.025em; }
.genesis-quote { display: grid; justify-items: end; line-height: 1.1; }
.genesis-quote strong { font-family: var(--site-display); font-size: 1.05rem; }
.genesis-quote span { color: var(--genesis-live); font-family: var(--site-mono); font-size: 0.5rem; }
.genesis-quote span.negative { color: var(--site-risk); }
.genesis-chart { height: 68px; margin: 8px -2px 4px; }
.genesis-chart svg { width: 100%; height: 100%; overflow: visible; }
.genesis-gridline { fill: none; stroke: rgba(255,255,255,0.055); stroke-width: 1; }
.genesis-area { fill: color-mix(in srgb, var(--genesis-accent) 11%, transparent); opacity: 0; animation: genesis-area 8s ease-in-out infinite; }
.genesis-line {
  fill: none; stroke: var(--genesis-accent); stroke-linecap: round; stroke-width: 2;
  stroke-dasharray: 660; stroke-dashoffset: 660;
  filter: drop-shadow(0 0 5px rgba(170,179,255,0.35));
  animation: genesis-draw 8s cubic-bezier(0.22,1,0.36,1) infinite;
}
.genesis-track { height: 2px; margin: 2px 0 12px; overflow: hidden; background: rgba(255,255,255,0.07); border-radius: 1px; }
.genesis-track span {
  display: block; width: 100%; height: 100%; background: linear-gradient(90deg,var(--genesis-accent),var(--genesis-live));
  transform: scaleX(0); transform-origin: left;
  animation: genesis-progress 8s cubic-bezier(0.22,1,0.36,1) infinite;
}
.genesis-stages { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.genesis-stages > span { position: relative; display: grid; gap: 1px; padding-left: 10px; opacity: 0.28; animation: genesis-stage 8s ease infinite; }
.genesis-stages > span:nth-child(2) { animation-delay: 1.1s; }
.genesis-stages > span:nth-child(3) { animation-delay: 2.2s; }
.genesis-stages > span:nth-child(4) { animation-delay: 3.3s; }
.genesis-stages i { position: absolute; top: 6px; left: 0; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.genesis-stages strong { color: var(--site-ink-soft); font-size: 0.59rem; font-weight: 570; }
.genesis-stages small { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.42rem; }
@keyframes genesis-progress { 0%,8% { transform:scaleX(0); } 68%,88% { transform:scaleX(1); } 100% { transform:scaleX(0); } }
@keyframes genesis-draw { 0%,35% { stroke-dashoffset:660; opacity:.2; } 72%,90% { stroke-dashoffset:0; opacity:1; } 100% { opacity:0; } }
@keyframes genesis-area { 0%,52% { opacity:0; } 75%,90% { opacity:1; } 100% { opacity:0; } }
@keyframes genesis-stage { 0%,8% { opacity:.28; } 12%,48% { color:var(--genesis-accent); opacity:1; transform:translateY(-1px); } 58%,100% { opacity:.42; transform:none; } }
@keyframes genesis-pulse { 0%,12% { box-shadow:0 0 0 0 color-mix(in srgb, var(--genesis-accent) 42%, transparent); } 22% { box-shadow:0 0 0 7px transparent; } 100% { box-shadow:0 0 0 0 transparent; } }

/* Enterprise hedge compiler */

.enterprise-page main { overflow: clip; }
.enterprise-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: 690px;
  padding: clamp(120px, 13vw, 175px) 0 104px;
}
.enterprise-hero-copy h1 {
  max-width: 1180px;
  margin: 20px 0 28px;
  font-size: clamp(4rem, 7.1vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.91;
}
.enterprise-hero-copy h1 span { color: var(--site-accent); }
.enterprise-hero-copy > p { max-width: 720px; margin: 0; color: var(--site-muted); font-size: 1rem; line-height: 1.68; }
.enterprise-hero-copy > .enterprise-free-note { display: flex; align-items: center; gap: 9px; margin-top: 19px; color: var(--site-ink-soft); font-family: var(--site-mono); font-size: 0.55rem; letter-spacing: 0.02em; text-transform: uppercase; }
.enterprise-free-note i { width: 6px; height: 6px; background: var(--site-live); border-radius: 50%; box-shadow: 0 0 0 6px rgba(131, 200, 169, 0.08); }
.enterprise-principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.enterprise-principles span { display: inline-flex; min-height: 34px; align-items: center; gap: 9px; padding: 0 11px; color: var(--site-ink-soft); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--site-line); border-radius: 7px; font-size: 0.61rem; }
.enterprise-principles i { color: var(--site-accent); font-family: var(--site-mono); font-size: 0.46rem; font-style: normal; }

.enterprise-workbench-section { padding: 96px 0 118px; border-top: 1px solid var(--site-line); }
.enterprise-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; margin-bottom: 38px; }
.enterprise-section-heading > div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: start; }
.enterprise-section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(2.9rem, 5vw, 5.3rem); font-weight: 500; letter-spacing: -0.069em; line-height: 0.96; }
.enterprise-exposure-picker { border-top: 1px solid var(--site-line-strong); border-bottom: 1px solid var(--site-line-strong); }
.enterprise-exposure-option + .enterprise-exposure-option { border-top: 1px solid var(--site-line); }
.enterprise-exposure-trigger { display: grid; width: 100%; min-height: 122px; grid-template-columns: minmax(340px, 1.15fr) minmax(300px, 0.85fr) 34px; gap: 32px; align-items: center; padding: 22px 8px; color: var(--site-muted); background: transparent; border: 0; cursor: pointer; font-family: var(--site-body); text-align: left; transition: color 170ms ease; }
.enterprise-exposure-trigger:hover,
.enterprise-exposure-trigger:focus-visible,
.enterprise-exposure-option.is-active .enterprise-exposure-trigger { color: var(--site-ink); }
.enterprise-exposure-trigger:focus-visible { outline: none; }
.enterprise-exposure-title { font-family: var(--site-display); font-size: clamp(2rem, 3.4vw, 3.7rem); font-weight: 520; letter-spacing: -0.055em; line-height: 0.98; }
.enterprise-exposure-summary { max-width: 430px; justify-self: end; color: var(--site-muted); font-size: 0.84rem; line-height: 1.5; }
.enterprise-exposure-toggle { position: relative; width: 26px; height: 26px; justify-self: end; }
.enterprise-exposure-toggle::before,
.enterprise-exposure-toggle::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 1.5px; background: currentColor; content: ""; transform: translate(-50%, -50%); transition: transform 170ms ease, background-color 170ms ease; }
.enterprise-exposure-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.enterprise-exposure-option.is-active .enterprise-exposure-toggle { color: var(--site-accent); }
.enterprise-exposure-option.is-active .enterprise-exposure-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.enterprise-exposure-detail { padding: 0 0 28px; }
.enterprise-exposure-detail[hidden] { display: none; }
.enterprise-exposure-option.is-active .enterprise-exposure-detail { animation: enterprise-detail-in 180ms ease both; }
.enterprise-exposure-detail > p { max-width: 760px; margin: 0 8px 24px; color: var(--site-ink-soft); font-size: 0.78rem; line-height: 1.58; }
@keyframes enterprise-detail-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.enterprise-workbench { overflow: hidden; background: radial-gradient(circle at 88% 0%, rgba(131, 200, 169, 0.08), transparent 24rem), radial-gradient(circle at 8% -15%, rgba(170, 179, 255, 0.11), transparent 27rem), var(--site-panel); border: 1px solid var(--site-line-strong); border-radius: 17px; box-shadow: var(--site-bevel), 0 36px 100px rgba(0, 0, 0, 0.28); transition: opacity 180ms ease, transform 180ms ease; }
.enterprise-workbench.is-switching { opacity: 0.42; transform: translateY(5px); }
.enterprise-workbench-head { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 22px; border-bottom: 1px solid var(--site-line); }
.enterprise-workbench-head > div { display: grid; gap: 5px; }
.enterprise-workbench-head > div span { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.065em; }
.enterprise-workbench-head > div strong { color: var(--site-ink); font-size: 1.12rem; letter-spacing: -0.03em; }
.enterprise-paper-state { display: inline-flex; align-items: center; gap: 8px; color: var(--site-live); font-family: var(--site-mono); font-size: 0.48rem; text-transform: uppercase; }
.enterprise-paper-state i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(131, 200, 169, 0.07); }
.enterprise-request { display: grid; grid-template-columns: 110px minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 24px; align-items: center; padding: 25px 22px; border-bottom: 1px solid var(--site-line); }
.enterprise-request > span { color: var(--site-accent); font-family: var(--site-mono); font-size: 0.49rem; letter-spacing: 0.065em; text-transform: uppercase; }
.enterprise-request blockquote { margin: 0; color: var(--site-ink); font-family: var(--site-display); font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.18; }
.enterprise-request p { margin: 0; color: var(--site-muted); font-size: 0.7rem; line-height: 1.58; }
.enterprise-program-grid { display: grid; grid-template-columns: minmax(240px, 0.82fr) minmax(310px, 1.08fr) minmax(260px, 0.88fr); }
.enterprise-program-grid > * { min-width: 0; padding: 22px; }
.enterprise-program-grid > * + * { border-left: 1px solid var(--site-line); }
.enterprise-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; color: var(--site-faint); font-family: var(--site-mono); font-size: 0.46rem; letter-spacing: 0.065em; text-transform: uppercase; }
.enterprise-panel-head b { color: var(--site-ink-soft); font-weight: 520; }
.enterprise-exposure-list,
.enterprise-sleeve-list { display: grid; gap: 10px; }
.enterprise-exposure-row { display: grid; grid-template-columns: minmax(90px, 0.78fr) minmax(70px, 1fr) 24px; gap: 11px; align-items: center; min-height: 48px; padding: 8px 9px; background: rgba(255, 255, 255, 0.018); border: 1px solid var(--site-line); border-radius: 8px; }
.enterprise-exposure-row > span { display: grid; gap: 2px; }
.enterprise-exposure-row > span b { color: var(--site-ink-soft); font-size: 0.6rem; font-weight: 580; }
.enterprise-exposure-row > span small { overflow: hidden; color: var(--site-faint); font-size: 0.47rem; text-overflow: ellipsis; white-space: nowrap; }
.enterprise-exposure-row > i { height: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.06); border-radius: 99px; }
.enterprise-exposure-row > i b { display: block; width: var(--exposure); height: 100%; background: linear-gradient(90deg, var(--site-accent), var(--site-live)); border-radius: inherit; transform-origin: left; }
.enterprise-exposure-row > strong { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.49rem; text-align: right; }
.enterprise-sleeve-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 11px; align-items: center; min-height: 56px; padding: 8px 10px; background: rgba(255, 255, 255, 0.018); border: 1px solid var(--site-line); border-radius: 8px; }
.enterprise-sleeve-row > span:first-child { width: fit-content; padding: 4px 5px; color: var(--site-live); background: rgba(131, 200, 169, 0.07); border: 1px solid rgba(131, 200, 169, 0.14); border-radius: 4px; font-family: var(--site-mono); font-size: 0.39rem; text-transform: uppercase; }
.enterprise-sleeve-row--cross > span:first-child { color: var(--site-accent); background: rgba(170, 179, 255, 0.07); border-color: rgba(170, 179, 255, 0.14); }
.enterprise-sleeve-row--residual > span:first-child { color: var(--site-risk); background: rgba(212, 134, 116, 0.07); border-color: rgba(212, 134, 116, 0.14); }
.enterprise-sleeve-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.enterprise-sleeve-row > span:nth-child(2) b { overflow: hidden; color: var(--site-ink-soft); font-size: 0.61rem; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.enterprise-sleeve-row > span:nth-child(2) small { color: var(--site-faint); font-size: 0.47rem; }
.enterprise-sleeve-row > strong { color: var(--site-faint); font-family: var(--site-mono); font-size: 0.43rem; font-weight: 500; text-align: right; text-transform: uppercase; }
.enterprise-impact-chart { display: grid; gap: 15px; padding: 8px 0 22px; border-bottom: 1px solid var(--site-line); }
.impact-row { display: grid; grid-template-columns: 54px minmax(80px, 1fr) 48px; gap: 10px; align-items: center; }
.impact-row > span { color: var(--site-faint); font-size: 0.51rem; }
.impact-row > i { height: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.05); border-radius: 2px; }
.impact-row > i b { display: block; width: var(--impact); height: 100%; background: var(--site-risk); border-radius: inherit; transform-origin: left; }
.impact-row.after > i b { background: var(--site-live); }
.impact-row > strong { color: var(--site-risk); font-family: var(--site-mono); font-size: 0.56rem; text-align: right; }
.impact-row.after > strong { color: var(--site-live); }
.enterprise-coverage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 18px; overflow: hidden; background: var(--site-line); border: 1px solid var(--site-line); border-radius: 8px; }
.enterprise-coverage > span { display: grid; gap: 4px; padding: 10px; background: rgba(19, 20, 20, 0.96); }
.enterprise-coverage small { color: var(--site-faint); font-size: 0.46rem; }
.enterprise-coverage b { color: var(--site-ink); font-family: var(--site-mono); font-size: 0.62rem; }
.enterprise-basis-risk { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; margin-top: 18px; padding: 12px; background: rgba(170, 179, 255, 0.045); border: 1px solid rgba(170, 179, 255, 0.12); border-radius: 8px; }
.enterprise-basis-risk span { color: var(--site-faint); font-size: 0.49rem; }
.enterprise-basis-risk b { color: var(--site-accent); font-family: var(--site-mono); font-size: 0.51rem; }
.enterprise-basis-risk p { grid-column: 1 / -1; margin: 0; color: var(--site-muted); font-size: 0.52rem; line-height: 1.48; }
.enterprise-workbench-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 62px; padding: 13px 22px; color: var(--site-faint); background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--site-line); font-size: 0.52rem; }
.enterprise-workbench-foot a { display: inline-flex; min-height: 32px; align-items: center; gap: 12px; padding: 0 7px 0 12px; color: #151616; background: var(--site-ink); border-radius: 6px; font-weight: 620; }
.enterprise-workbench-foot a b { display: grid; width: 20px; height: 20px; place-items: center; background: #d8d9d6; border-radius: 50%; transition: transform 180ms ease; }
.enterprise-workbench-foot a:hover b { transform: rotate(45deg); }
.enterprise-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr); gap: 64px; align-items: start; padding: 94px 0 110px; border-top: 1px solid var(--site-line); }
.enterprise-close h2 { max-width: 700px; margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.7rem); font-weight: 500; letter-spacing: -0.064em; line-height: 0.98; }
.enterprise-close-aside { display: grid; justify-items: start; gap: 30px; }
.enterprise-close p { margin: 4px 0 0; color: var(--site-muted); font-size: 0.78rem; line-height: 1.62; }
.site-page .enterprise-learn-more { display: inline-flex; min-height: 48px; align-items: center; gap: 30px; padding: 0 20px; color: #151616; background: var(--site-ink); border: 1px solid var(--site-ink); border-radius: 8px; font-family: var(--site-mono); font-size: 0.72rem; font-weight: 740; letter-spacing: 0.08em; text-transform: uppercase; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 120ms ease; }
.enterprise-learn-more span { font-size: 0.82rem; transition: transform 150ms ease; }
.site-page .enterprise-learn-more:hover { color: var(--site-ink); background: transparent; border-color: var(--site-line-strong); transform: translateY(-2px); }
.enterprise-learn-more:hover span { transform: translate(2px, -2px); }
.enterprise-learn-more:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 4px; }

.lab-page #view-input::placeholder { opacity: 1; transition: opacity 150ms ease; }
.lab-page #view-input.is-placeholder-changing::placeholder { opacity: 0; }

.home-pedigree { padding: 72px 0 64px; text-align: center; }
.home-pedigree > h2 { margin: 0; color: var(--site-ink-soft); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 520; letter-spacing: -0.035em; }
.home-pedigree-marks { display: grid; max-width: 920px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; margin: 38px auto 0; }
.home-pedigree-mark { display: flex; min-height: 58px; align-items: center; justify-content: center; }
.home-pedigree-mark strong { margin: 0; color: var(--site-ink-soft); font-family: var(--site-display); font-size: clamp(0.92rem, 1.35vw, 1.12rem); font-weight: 570; letter-spacing: -0.035em; line-height: 1.14; text-align: left; }
.home-pedigree-logo { display: flex; width: fit-content; align-items: center; opacity: 0.78; transition: opacity 160ms ease, transform 160ms ease; }
.home-pedigree-logo:hover { opacity: 1; transform: translateY(-2px); }
.home-pedigree-logo:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 5px; }
.home-pedigree-logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 46px; filter: grayscale(1) brightness(0) invert(0.86); }
.home-pedigree-logo--optiver img { width: 150px; }
.home-pedigree-logo--two-sigma img { width: 160px; }
.home-pedigree-logo--yale img { width: 112px; }
.home-pedigree-note { max-width: 760px; margin: 22px auto 0; color: var(--site-faint); font-size: 0.64rem; line-height: 1.5; }

.enterprise-page:not(.is-ready) .enterprise-hero-copy { opacity: 0; transform: translateY(18px); }
.enterprise-page.is-ready .enterprise-hero-copy { opacity: 1; transform: translateY(0); transition: opacity 620ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1); }
.enterprise-workbench.is-rendered .enterprise-exposure-row > i b,
.enterprise-workbench.is-rendered .impact-row > i b { animation: enterprise-meter 720ms var(--enterprise-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) both; }
.enterprise-workbench.is-rendered .enterprise-sleeve-row { animation: enterprise-row 480ms var(--enterprise-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes enterprise-meter { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes enterprise-row { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1040px) {
  .thesis-hero { grid-template-columns: 1fr; }
  .thesis-hero-aside { max-width: 520px; }
  .thesis-layout { grid-template-columns: 1fr; }
  .thesis-index { position: static; grid-template-columns: auto 1fr; align-items: start; }
  .thesis-index nav { grid-template-columns: repeat(3, 1fr); }
  .index-meta { display: none; }
  .system-grid { grid-template-columns: repeat(3, 1fr); }
  .system-card:nth-child(4), .system-card:nth-child(5) { min-height: 205px; }
  .component-graphs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-page .hero { grid-template-columns: 1fr; }
  .lab-page .hero-copy, .lab-page .composer { max-width: 790px; }
  .channel-strip { grid-template-columns: 1fr; }
  .channel-strip-copy { grid-column: 1; grid-row: 1; max-width: 680px; }
  .channel-demo { grid-column: 1; grid-row: 2; width: min(100%, 760px); }
  .channel-strip-actions { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .channel-strip-status { grid-column: 1; grid-row: 4; justify-self: start; }
  .channel-heading { grid-template-columns: 1fr; }
  .channel-heading p { max-width: 620px; }
  .company-intro { grid-template-columns: 1fr; }
  .company-intro-copy { max-width: 680px; }
  .layer-row { grid-template-columns: 54px 130px minmax(0, 1fr); }
  .layer-output { grid-column: 3; }
  .company-case { grid-template-columns: 1fr; }
  .revenue-grid { grid-template-columns: repeat(3, 1fr); }
  .revenue-item { border-bottom: 1px solid var(--site-line); }
  .revenue-item:nth-child(3) { border-right: 0; }
  .revenue-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .enterprise-hero { grid-template-columns: 1fr; min-height: 0; }
  .enterprise-hero-copy { max-width: 820px; }
  .enterprise-section-heading { align-items: start; flex-direction: column; }
  .enterprise-exposure-trigger { grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.85fr) 34px; }
  .enterprise-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-impact { grid-column: 1 / -1; border-top: 1px solid var(--site-line); border-left: 0 !important; }
  .enterprise-impact-chart { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .enterprise-coverage { grid-template-columns: repeat(4, 1fr); }
  .enterprise-close { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr); }
}

@media (max-width: 760px) {
  .site-shell,
  .lab-page .shell { width: min(100% - 28px, 1180px); }
  .perp-universe-shell { width: min(100% - 28px, 860px); margin-bottom: 76px; }
  .perp-universe { grid-template-columns: 1fr; padding: 28px 0 24px; }
  .perp-universe-intro { grid-template-columns: 1fr; gap: 12px; }
  .perp-universe-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perp-universe-groups > div { min-height: 126px; }
  .perp-universe-groups > div:nth-child(2) { border-right: 0; }
  .perp-universe-groups > div:nth-child(-n + 2) { border-bottom: 1px solid var(--site-line); }
  .perp-universe-note { grid-column: 1; margin-top: -4px; line-height: 1.45; }
  .perp-ticket-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perp-ticket-controls > span { border-bottom: 1px solid var(--site-line); }
  .perp-ticket-controls > span:nth-child(even) { border-right: 0; }
  .perp-ticket-controls > span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .site-header { top: 9px; width: calc(100% - 20px); margin-top: 9px; border-radius: 12px; }
  .site-header-inner { grid-template-columns: auto 1fr; min-height: 66px; padding: 0 13px; }
  .site-wordmark { gap: 8px; }
  .site-wordmark-symbol { width: 29px; height: 29px; }
  .site-wordmark-symbol img { width: 29px; height: 29px; }
  .site-wordmark-name { font-size: 1rem; }
  .site-nav { justify-self: end; gap: 14px; }
  .site-nav a { min-width: 0; padding-inline: 0; font-size: 0.74rem; }
  .site-page .site-status { display: none; }
  .site-footer { grid-template-columns: 1fr; margin-top: 76px; }
  .enterprise-hero { gap: 46px; padding: 108px 0 76px; }
  .enterprise-hero-copy h1 { font-size: clamp(3.45rem, 16vw, 5.4rem); }
  .enterprise-hero-copy > p { font-size: 0.9rem; }
  .enterprise-workbench-section { padding: 74px 0 88px; }
  .enterprise-section-heading { gap: 28px; margin-bottom: 28px; }
  .enterprise-section-heading > div { grid-template-columns: 1fr; gap: 10px; }
  .enterprise-section-heading h2 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .enterprise-exposure-trigger { min-height: 0; grid-template-columns: minmax(0, 1fr) 28px; gap: 8px 18px; padding: 24px 2px; }
  .enterprise-exposure-title { font-size: clamp(1.7rem, 8.5vw, 2.7rem); }
  .enterprise-exposure-summary { grid-column: 1; grid-row: 2; justify-self: start; font-size: 0.74rem; }
  .enterprise-exposure-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .enterprise-exposure-detail { padding: 0 0 22px; }
  .enterprise-exposure-detail > p { margin: 0 2px 20px; font-size: 0.72rem; }
  .enterprise-workbench-head { align-items: flex-start; min-height: 0; padding: 16px; }
  .enterprise-paper-state { font-size: 0; }
  .enterprise-paper-state::after { font-size: 0.44rem; content: "Paper"; }
  .enterprise-request { grid-template-columns: 1fr; gap: 12px; padding: 21px 16px; }
  .enterprise-request p { font-size: 0.66rem; }
  .enterprise-program-grid { grid-template-columns: 1fr; }
  .enterprise-program-grid > * { padding: 20px 16px; }
  .enterprise-program-grid > * + * { border-top: 1px solid var(--site-line); border-left: 0; }
  .enterprise-impact { grid-column: 1; }
  .enterprise-impact-chart { grid-template-columns: 1fr; }
  .enterprise-coverage { grid-template-columns: repeat(2, 1fr); }
  .enterprise-workbench-foot { align-items: flex-start; flex-direction: column; padding: 16px; }
  .enterprise-close { grid-template-columns: 1fr; gap: 18px; padding: 76px 0 86px; }
  .enterprise-close-aside { gap: 24px; }
  .home-pedigree { padding: 60px 0 54px; }
  .home-pedigree-marks { grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 22px; margin-top: 32px; overflow-x: auto; scrollbar-width: none; }
  .home-pedigree-marks::-webkit-scrollbar { display: none; }
  .home-pedigree-mark { min-height: 54px; }
  .utility-bar { min-height: 86px; gap: 28px; font-size: 0.92rem; }
  .utility-market-status { margin-left: 8px; }
  .thesis-hero { padding: 72px 0 64px; gap: 44px; }
  .thesis-hero h1 { font-size: clamp(3.2rem, 16vw, 5.3rem); }
  .thesis-hero::after { display: none; }
  .thesis-principle { font-size: 0.58rem; }
  .thesis-layout { padding-top: 60px; }
  .thesis-index { grid-template-columns: 1fr; gap: 12px; }
  .thesis-index nav { display: flex; gap: 6px; padding-bottom: 7px; overflow-x: auto; scrollbar-width: none; }
  .thesis-index nav::-webkit-scrollbar { display: none; }
  .thesis-index nav a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--site-line); border-radius: 7px; }
  .thesis-section { padding-bottom: 76px; }
  .thesis-section-heading { grid-template-columns: 1fr; gap: 12px; padding-bottom: 26px; }
  .section-intro { margin: -5px 0 30px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 180px; }
  .system-card .mini-label { margin-bottom: 45px; }
  .walkthrough-compile { grid-template-columns: 1fr; }
  .walkthrough-copy { border-right: 0; border-bottom: 1px solid var(--site-line); }
  .walkthrough-copy h3 { margin-top: 28px; }
  .walkthrough-basket { grid-template-columns: 1fr; }
  .walkthrough-trade { grid-template-columns: 1fr; align-items: start; padding: 23px 20px; }
  .walkthrough-arrow { transform: rotate(90deg); transform-origin: left center; }
  .motion-enabled .system-walkthrough .walkthrough-arrow { transform: translateY(12px) rotate(90deg); }
  .motion-enabled .system-walkthrough.is-running .walkthrough-arrow { transform: translateY(0) rotate(90deg); }
  .walkthrough-action { width: 100%; }
  .example-banner { grid-template-columns: 1fr auto; }
  .example-banner-meta { min-height: 54px; border-right: 0; }
  .example-banner-dots { border-left: 0; }
  .example-banner-viewport { grid-column: 1 / -1; border-top: 1px solid var(--site-line); }
  .site-page .example-banner-slide { min-height: 78px; grid-template-columns: 112px minmax(0, 1fr) 52px auto; gap: 10px; padding: 12px 16px; }
  .example-banner-query { display: none; }
  .example-banner-chart { height: 40px; }
  .trade-timeline {
    --trade-stage-gutter: 16px;
    --trade-stage-gap: 10px;
    --trade-marker-size: 26px;
    --trade-rail-x: 28px;
  }
  .trade-stage { padding: 22px 16px 22px var(--trade-stage-gutter); }
  .trade-quote { gap: 12px; }
  .trade-quote-head { align-items: flex-start; }
  .trade-quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-quote-grid > span { border-bottom: 1px solid var(--site-line); }
  .trade-quote-grid > span:nth-child(2n) { border-right: 0; }
  .trade-quote-grid > span:nth-last-child(-n + 2) { border-bottom: 0; }
  .trade-quote-foot { grid-template-columns: 1fr; gap: 10px; }
  .final-trade-body { grid-template-columns: 1fr; gap: 18px; }
  .final-trade-metrics { justify-content: space-between; }
  .final-trade-head { align-items: flex-start; }
  .final-trade-detail { grid-template-columns: 1fr; }
  .final-trade-book { border-right: 0; border-bottom: 1px solid var(--site-line); }
  .final-trade-risk { grid-template-columns: 1fr; gap: 5px; }
  .exposure-record-head { min-height: 76px; padding: 16px 18px; }
  .record-status small { display: none; }
  .exposure-record-body { grid-template-columns: 1fr; }
  .record-performance { padding: 21px 18px 18px; border-right: 0; border-bottom: 1px solid var(--site-line); }
  .record-book { padding: 21px 18px 24px; }
  .record-chart { height: 194px; }
  .record-chart svg { height: 166px; }
  .record-attribution { grid-template-columns: repeat(2, 1fr); }
  .record-history { grid-template-columns: 1fr; gap: 20px; padding: 19px 18px 22px; }
  .record-history ol { grid-template-columns: 1fr; gap: 18px; padding-left: 1px; }
  .record-history ol::before { top: 4px; bottom: 5px; left: 5px; width: 1px; height: auto; background: linear-gradient(180deg, var(--site-accent), var(--site-line-strong) 55%, var(--site-live)); }
  .record-history li { grid-template-columns: 10px 54px 1fr; align-items: start; }
  .record-history time { grid-column: 2; margin-top: 0; }
  .record-history li > span { grid-column: 3; }
  .record-history li small { max-width: none; }
  .index-anatomy-head { min-height: 76px; padding: 16px 18px; }
  .index-level strong { font-size: 1.22rem; }
  .index-anatomy-overview { grid-template-columns: 1fr; }
  .index-chart-panel { padding: 20px 18px 18px; border-right: 0; border-bottom: 1px solid var(--site-line); }
  .index-chart-meta > div { display: none; }
  .index-chart { height: 232px; }
  .index-chart svg { height: 204px; }
  .index-composition { padding: 20px 18px 22px; }
  .component-graphs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .component-graph { padding: 14px; }
  .index-method-note { flex-wrap: wrap; justify-content: flex-start; padding: 13px 18px; }
  .economics-grid { grid-template-columns: 1fr; }
  .loop-track { grid-template-columns: 1fr; margin-left: 6px; }
  .loop-node { min-height: 70px; padding: 0 0 20px 25px; border-top: 0; border-left: 2px solid var(--site-line-strong); }
  .loop-node::before { top: 0; left: -6px; }
  .leaderboard-head { min-height: 82px; padding: 18px; }
  .leaderboard-columns { display: none; }
  .market-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px 12px;
    min-height: 0;
    padding: 17px 18px;
  }
  .market-identity { grid-column: 1; grid-row: 1; }
  .market-return { grid-column: 2; grid-row: 1; }
  .market-open { grid-column: 3; grid-row: 1; }
  .market-stat { grid-row: 2; }
  .market-stat:nth-child(3) { grid-column: 1; margin-left: 42px; }
  .market-stat:nth-child(4) { grid-column: 2; }
  .market-stat small { display: block; }
  .market-stage { grid-column: 1 / -1; grid-row: 3; margin-left: 42px; }
  .leaderboard-foot { align-items: flex-start; padding: 18px; }
  .leaderboard-foot > span { display: none; }
  .decision-panel { grid-template-columns: 1fr; }
  .lab-page .hero { padding: 62px 0 68px; }
  .lab-page .hero h1 { font-size: clamp(3.3rem, 16vw, 5.25rem); }
  .market-genesis { padding: 14px; }
  .genesis-chart { height: 58px; }
  .genesis-stages { grid-template-columns: repeat(2, 1fr); gap: 9px 12px; }
  .lab-page .loop-step { min-width: 86px; }
  .lab-page .result-masthead { padding-top: 62px; }
  .company-section { padding: 82px 0 88px; }
  .company-intro { margin-bottom: 40px; }
  .company-intro h2 { font-size: clamp(2.8rem, 14vw, 4.7rem); }
  .layer-row { grid-template-columns: 38px 1fr; gap: 10px 14px; padding: 20px 17px; }
  .layer-description, .layer-output { grid-column: 2; }
  .signal-map { grid-template-columns: repeat(2, 1fr); }
  .economics-section { padding-bottom: 88px; }
  .economics-head { flex-direction: column; align-items: flex-start; }
  .revenue-grid { grid-template-columns: 1fr; }
  .revenue-item { min-height: 0; border-right: 0; border-bottom: 1px solid var(--site-line); }
  .revenue-item:nth-child(3), .revenue-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--site-line); }
  .revenue-item:last-child { border-bottom: 0; }
  .revenue-item span { margin-bottom: 28px; }
  .channel-section { margin-top: 78px; padding: 28px 22px; border-radius: 15px; }
  .channel-heading { margin: 36px 0 42px; }
  .channel-heading h2 { font-size: clamp(3rem, 14vw, 5rem); }
  .channel-actions { display: flex; flex-wrap: wrap; }
  .site-page .channel-action { min-height: 46px; }
  .channel-strip { margin-top: 72px; padding: 58px 14px 38px; }
  .channel-strip-copy { padding-top: 0; }
  .channel-strip-copy h2 { font-size: clamp(3.1rem, 15vw, 5.4rem); }
  .channel-strip-actions { flex-wrap: wrap; }
  .channel-strip-status { margin-top: -8px; }
  .channel-demo-thread { min-height: 980px; padding: 21px 16px 23px; }
  .demo-message--user { width: 100%; }
  .demo-trade-result { margin-left: 0; }
  .channel-demo.is-result .demo-trade-result { max-height: 1200px; }
  .demo-trade-body { grid-template-columns: 1fr; align-items: start; }
  .demo-trade-brief { justify-content: flex-start; flex-wrap: wrap; }
  .demo-trade-ledger { grid-column: 1; }
  .demo-trade-ledger-head { display: none; }
  .demo-leg-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 7px; padding-block: 9px; }
  .demo-leg-notional { grid-column: 2; justify-self: start; color: var(--site-faint); font-size: 0.44rem; }
  .demo-execution-plan { grid-template-columns: 1fr; }
  .demo-trade-result > footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .site-wordmark-name { display: none; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 0.67rem; }
  .leaderboard-live { font-size: 0; }
  .leaderboard-live::after { font-size: 0.5rem; content: "7D"; }
  .market-stat:nth-child(3) { display: none; }
  .market-stat:nth-child(4) { grid-column: 1 / 3; margin-left: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .genesis-line { stroke-dashoffset: 0; opacity: 1; }
  .genesis-area { opacity: 1; }
  .genesis-track span { transform: scaleX(1); }
  .genesis-stages > span { color: var(--site-accent); opacity: 1; transform: none; }
}

/* Editorial cleanup: content stays open; product interfaces stay bounded. */
body.site-page { background: var(--site-bg); }
body.site-page::before,
.thesis-hero::after,
.channel-section::before,
.channel-section::after { display: none; }

.site-header,
.lab-page .hero-copy,
.thesis-page .thesis-hero > div,
.lab-page .composer,
.thesis-page .thesis-hero-aside { animation: none; }

.reveal-item,
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.thesis-hero {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  gap: clamp(42px, 7vw, 96px);
  padding: clamp(82px, 9vw, 124px) 0 68px;
}
.thesis-hero h1 { max-width: 790px; font-size: clamp(3.8rem, 6.3vw, 6.35rem); }
.thesis-hero-aside {
  padding: 4px 0 4px 28px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--site-line-strong);
  border-radius: 0;
  box-shadow: none;
}
.thesis-hero-aside p { margin: 0 0 18px; font-size: 0.92rem; }
.thesis-hero-aside .primary-action { width: auto; min-width: 170px; }
.research-disclosure {
  margin-bottom: 0;
  padding: 18px 0;
  color: var(--site-muted);
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  font-size: 0.82rem;
}
.thesis-index { display: block; }
.thesis-index nav { gap: 7px; }
.thesis-section-heading { grid-template-columns: minmax(0, 1fr); padding: 34px 0 28px; }
.section-intro { margin: -4px 0 32px; }

.perp-universe-shell { margin-bottom: 92px; }
.perp-universe { gap: 30px; padding: 30px 0; }
.perp-universe-intro { grid-template-columns: minmax(0, 1fr); }
.perp-universe-intro h2 { max-width: 620px; font-size: clamp(2rem, 3vw, 3rem); }
.perp-universe-intro p { font-size: 0.86rem; }
.perp-universe-groups {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
  overflow: visible;
  border: 0;
  border-radius: 0;
}
.perp-universe-groups > div { min-height: 0; padding: 0; border: 0; }
.perp-universe-groups strong {
  margin-bottom: 9px;
  color: var(--site-ink-soft);
  font-family: var(--site-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.perp-universe-groups > div > span { font-family: var(--site-body); font-size: 0.72rem; }
.perp-universe-groups > div > span::after { display: none; }
.perp-universe-note { margin-top: 0; font-family: var(--site-body); font-size: 0.68rem; }
.perp-universe-note i { display: none; }

.channel-section {
  margin-top: 88px;
  padding: 70px 0 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--site-line);
  border-radius: 0;
  box-shadow: none;
}
.channel-heading { margin: 0 0 42px; }
.channel-heading h2 { font-size: clamp(3.2rem, 5.9vw, 5.8rem); }
.thesis-page .channel-status { margin-bottom: 0; }
.thesis-page .channel-demo--thesis { margin-top: 30px; border-radius: 12px; }
.thesis-page .channel-demo--thesis .channel-demo-thread { min-height: 690px; }
.thesis-page .channel-demo--thesis .demo-message--user { width: min(620px, 72%); }
.thesis-page .channel-demo--thesis .demo-trade-result { margin-right: 9%; }

.channel-pill {
  min-height: 42px;
  padding: 0 2px 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
}
.channel-pill:hover { background: transparent; transform: none; }
.channel-pill.is-selected { background: transparent; border-color: var(--site-accent); }
.channel-strip { background-image: none; }
.channel-demo-thread { min-height: 640px; }

.leaderboard-live i,
.record-status i,
.trade-quote-status i,
.demo-ready i,
.trade-ready i,
.utility-market-status i,
.genesis-head span:first-child::before { animation: none; box-shadow: none; }
.demo-cursor { display: none; }
.channel-demo.is-thinking .demo-thinking i,
.genesis-stages > span { animation: none; }
.genesis-stages > span { opacity: 0.6; }
.channel-strip::before { display: none; }

.leaderboard-columns,
.market-row { grid-template-columns: minmax(250px, 1.65fr) 80px 120px 120px minmax(118px, 0.75fr); }

.enterprise-hero {
  min-height: 0;
  padding: clamp(92px, 10vw, 134px) 0 84px;
}
.enterprise-hero-copy h1 { max-width: 1080px; font-size: clamp(4rem, 6.5vw, 6.7rem); }
.enterprise-principles { gap: 24px; margin-top: 30px; }
.enterprise-principles span {
  min-height: 0;
  padding: 0;
  color: var(--site-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
}
.enterprise-principles span::before { width: 18px; height: 1px; background: var(--site-accent); content: ""; }
.enterprise-hero-copy > .enterprise-free-note {
  color: var(--site-muted);
  font-family: var(--site-body);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}
.enterprise-section-heading h2 {
  max-width: none;
  font-size: clamp(2.5rem, 4vw, 4.35rem);
  white-space: nowrap;
}
.enterprise-section-heading > div:first-child { display: block; flex: 1 1 auto; min-width: 0; }
.enterprise-page:not(.is-ready) .enterprise-hero-copy,
.enterprise-page.is-ready .enterprise-hero-copy { opacity: 1; transform: none; transition: none; }
.enterprise-workbench.is-rendered .enterprise-exposure-row > i b,
.enterprise-workbench.is-rendered .impact-row > i b,
.enterprise-workbench.is-rendered .enterprise-sleeve-row { animation: none; }

@media (max-width: 1040px) {
  .thesis-hero { grid-template-columns: 1fr; }
  .thesis-hero-aside { max-width: 580px; }
  .perp-universe-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .thesis-hero { padding: 68px 0 54px; }
  .thesis-hero-aside { padding: 22px 0 0; border-top: 1px solid var(--site-line-strong); border-left: 0; }
  .perp-universe-shell { width: min(100% - 40px, 860px); margin-bottom: 70px; }
  .perp-universe-groups { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .channel-section { margin-top: 68px; padding: 54px 0 0; }
  .thesis-page .channel-demo--thesis { margin-top: 24px; }
  .thesis-page .channel-demo--thesis .channel-demo-thread { min-height: 980px; }
  .thesis-page .channel-demo--thesis .demo-message--user { width: 100%; }
  .thesis-page .channel-demo--thesis .demo-trade-result { margin-right: 0; }
  .market-row { grid-template-columns: minmax(0, 1fr) auto; }
  .market-identity { grid-column: 1; grid-row: 1; }
  .market-return { grid-column: 2; grid-row: 1; }
  .market-stat:nth-child(3) { grid-column: 1; grid-row: 2; margin-left: 42px; }
  .market-stat:nth-child(4) { grid-column: 2; grid-row: 2; }
  .market-stage { grid-column: 1 / -1; grid-row: 3; margin-left: 42px; }
  .enterprise-hero { padding: 74px 0 62px; }
  .enterprise-section-heading h2 { white-space: normal; }
}
