:root {
  color-scheme: light;
  --ink-brown: #291c0e;
  --oxide-brown: #6e473b;
  --warm-umber: #a78d78;
  --plaster-grey: #beb5a9;
  --parchment-blush: #f1d4c2;
  --canvas-ivory: #f5eee7;
  --night-atelier: #17110e;
  --muted-sage: #68705a;
  --antique-brass: #ad8755;
  --faded-carmine: #96564d;
  --ink-soft: rgba(41, 28, 14, 0.68);
  --ivory-soft: rgba(245, 238, 231, 0.7);
  --line-dark: rgba(41, 28, 14, 0.22);
  --line-light: rgba(245, 238, 231, 0.2);
  --panel-dark: #1d1511;
  --panel-deep: #100c0a;
  --display-font: "Inter", Arial, sans-serif;
  --interface-font: "Inter", Arial, sans-serif;
  --data-font: "Inter", Arial, sans-serif;
  /* Typography Design System: six roles, one family, role-based weights. */
  --type-display-family: var(--display-font);
  --type-section-family: var(--display-font);
  --type-body-family: var(--interface-font);
  --type-ui-family: var(--interface-font);
  --type-label-family: var(--interface-font);
  --type-data-family: var(--data-font);
  --type-weight-regular: 400;
  --type-weight-display: 300;
  --type-size-caption: 14px;
  --type-size-body: 16px;
  --type-size-section: 32px;
  --type-size-display: 64px;
  --type-display-xl-family: var(--type-display-family);
  --type-display-lg-family: var(--type-section-family);
  --type-heading-family: var(--type-section-family);
  --type-display-leading: 1.16;
  --type-display-leading-mobile: 1.22;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

#app,
#app *,
#app *::before,
#app *::after {
  font-family: var(--type-body-family) !important;
  font-synthesis: none;
}

#app .nav-links,
#app .nav-item,
#app .nav-submenu {
  font-size: var(--type-size-body);
}

#app .section-eyebrow {
  font-size: var(--type-size-body);
}

#app .home-footer,
#app .footer-flow-grid,
#app .footer-links {
  font-size: var(--type-size-caption);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--canvas-ivory);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas-ivory);
  color: var(--ink-brown);
  font-family: var(--type-body-family);
  font-size: var(--type-size-body);
  line-height: 1.5;
}

body::before,
body::after {
  content: none !important;
  display: none !important;
}

#app {
  position: relative;
  z-index: 1;
  font-weight: var(--type-weight-regular);
}

body,
button,
input,
select,
textarea {
  font-family: var(--type-ui-family);
}

pre,
code,
kbd,
samp {
  font-family: var(--type-data-family);
}

button,
input {
  border-radius: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--type-heading-family);
  font-weight: var(--type-weight-regular);
  line-height: 0.98;
}

#app .hero-copy h1 {
  font-family: var(--type-display-xl-family) !important;
}

#app .section-heading h2,
#app .home-cta h2,
#app .proof-exhibit strong,
#app .proof-metric strong,
#app .dialogue-art figcaption strong,
#app .section-summary,
#app .workstation-summary,
#app .trust-columns h3 {
  font-family: var(--type-display-lg-family) !important;
}

#app .hero-copy h1,
#app .section-heading h2,
#app .home-cta h2,
#app .trust-columns h3 {
  font-weight: var(--type-weight-display);
}

#app .proof-exhibit strong,
#app .proof-metric strong {
  font-weight: var(--type-weight-display);
}

:focus,
:focus-visible {
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-container,
.site-header .nav-shell {
  width: min(1440px, calc(100% - 128px));
  margin-inline: auto;
}

.home-band {
  position: relative;
  padding: 144px 0;
}

.home-band > .home-container {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 840px;
  margin: 0 0 64px;
  text-align: left;
}

.section-heading h2,
.home-cta h2 {
  max-width: 900px;
  margin-bottom: 20px;
  font-family: var(--type-display-lg-family);
  font-size: var(--type-size-display);
  font-weight: var(--type-weight-regular);
  line-height: var(--type-display-leading);
}

.section-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--type-size-body);
  line-height: 1.6;
}

.section-eyebrow,
.system-label,
.ui-panel-title,
.cabinet-marginalia,
.hero-marginalia,
.proof-exhibit > div > span,
.dialogue-art figcaption span,
.market-orrery figcaption {
  font-family: var(--type-label-family);
}

.section-eyebrow {
  margin: 0 0 22px;
  color: var(--oxide-brown);
  font-family: var(--type-ui-family);
  font-size: var(--type-size-caption);
  font-weight: var(--type-weight-regular);
  line-height: 1.4;
  text-transform: none;
}

.hero-workstation,
.hero-workstation *,
.ai-scenario-copy,
.ai-scenario-copy *,
.ai-product-ui,
.ai-product-ui *,
.python-preview,
.python-preview *,
.market-selector,
.market-selector *,
.shared-control-panel,
.shared-control-panel *,
.market-orrery figcaption,
.trust-status-rail,
.trust-status-rail * {
  font-family: var(--interface-font);
}

.section-heading > p:last-child,
.hero-description,
.ai-scenario-copy > p,
.capability-copy > div > p,
.market-detail p,
.trust-columns p,
.home-cta p,
.home-footer p {
  font-family: var(--type-body-family);
}

.section-eyebrow,
.system-label,
.ui-panel-title,
.cabinet-marginalia,
.proof-exhibit > div > span,
.market-orrery figcaption,
.site-header,
.primary-action,
.secondary-action,
.ai-scenario-tabs,
.capability-tabs,
.market-selector,
.shared-control-panel,
.trust-status-rail,
.home-footer {
  font-family: var(--type-ui-family);
}

.hero-workstation,
.ai-product-ui,
.python-preview,
.data-feed,
.risk-log,
.code-status {
  font-family: var(--type-data-family);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: var(--type-size-body);
  font-weight: var(--type-weight-regular);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.primary-action {
  background: var(--canvas-ivory);
  color: var(--ink-brown);
}

.primary-action:hover {
  background: var(--parchment-blush);
  transform: translateY(-2px);
}

.primary-action svg,
.secondary-action svg {
  width: 18px;
  height: 18px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--canvas-ivory);
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}

.site-header.is-scrolled,
.site-header.menu-is-open {
  border-color: var(--line-dark);
  background: var(--canvas-ivory);
  color: var(--ink-brown);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
}

.brand-logo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 138px;
  height: 30px;
}

.brand-logo > img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 138px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 180ms ease;
}

.brand-logo > .brand-logo-dark {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-adaptive > .brand-logo-white,
.site-header.menu-is-open .brand-logo-adaptive > .brand-logo-white {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-adaptive > .brand-logo-dark,
.site-header.menu-is-open .brand-logo-adaptive > .brand-logo-dark {
  opacity: 1;
}

.brand-logo-white > .brand-logo-white {
  opacity: 1;
}

.brand-logo-white > .brand-logo-dark {
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  color: inherit;
}

.nav-link,
.nav-sign-in {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: currentColor !important;
  cursor: pointer;
  font-size: var(--type-size-caption);
  font-weight: var(--type-weight-regular);
}

.nav-link::after,
.nav-sign-in::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-sign-in:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-menu-toggle svg {
  width: 14px;
  height: 14px;
}

.nav-item {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  display: grid;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line-dark);
  background: var(--canvas-ivory);
  color: var(--ink-brown);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-submenu a {
  padding: 10px 12px;
  font-size: var(--type-size-caption);
}

.nav-submenu a:hover {
  background: var(--parchment-blush);
}

.nav-sign-in {
  margin-left: 30px;
}

.nav-account-avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 0;
}

.nav-account-avatar::after {
  content: none;
}

.nav-account-avatar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nav-account-avatar:hover,
.nav-account-avatar:focus-visible {
  background: var(--canvas-ivory);
  color: var(--night-atelier) !important;
}

.site-header.is-scrolled .nav-account-avatar:hover,
.site-header.is-scrolled .nav-account-avatar:focus-visible,
.site-header.menu-is-open .nav-account-avatar:hover,
.site-header.menu-is-open .nav-account-avatar:focus-visible {
  background: var(--night-atelier);
  color: var(--canvas-ivory) !important;
}

.mobile-menu-button,
.mobile-menu {
  display: none;
}

/* Reveal and parallax */
.motion-ready [data-reveal] {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
  transform: translateY(28px);
  transition: opacity 720ms ease, clip-path 820ms cubic-bezier(0.22, 1, 0.36, 1), transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
}

.motion-ready .hero-copy[data-reveal] {
  clip-path: none;
}

[data-parallax] {
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.04);
  will-change: transform;
}

/* Hero */
.home-hero {
  position: relative;
  min-height: 1060px;
  overflow: hidden;
  background: var(--night-atelier);
  color: var(--canvas-ivory);
}

.hero-painting-wrap,
.hero-painting,
.hero-motion-video {
  position: absolute;
  inset: 0;
}

.hero-painting-wrap {
  overflow: hidden;
}

.hero-side-rays-root {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 100%;
  height: min(72%, 760px);
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-side-rays-root::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/machine-lyceum-hero-rays-fallback.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 1;
  pointer-events: none;
  transition: opacity 140ms linear;
}

.hero-side-rays-root.is-canvas-ready::before {
  opacity: 0;
}

.hero-side-rays-root .side-rays-container {
  position: relative;
  z-index: 1;
}

.hero-painting,
.hero-motion-video {
  width: 100%;
  height: calc(100% + 40px);
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(0.88) contrast(1.04) brightness(0.84);
}

.hero-motion-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 120ms linear;
  will-change: opacity;
}

.hero-motion-video.is-ready {
  opacity: 1;
}

.hero-painting-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(18, 12, 9, 0.92) 0%, rgba(18, 12, 9, 0.7) 34%, rgba(18, 12, 9, 0.16) 70%, rgba(18, 12, 9, 0.28) 100%);
}

.hero-layout {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(260px, 0.76fr);
  min-height: 690px;
  padding-top: 158px;
  padding-bottom: 280px;
}

.hero-copy {
  align-self: start;
  max-width: 660px;
}

.hero-copy .section-eyebrow {
  color: var(--parchment-blush);
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0 0 28px;
  font-size: var(--type-size-display);
  line-height: var(--type-display-leading);
  font-family: var(--display-font);
  text-wrap: balance;
}

.hero-description {
  max-width: 570px;
  margin: 0 0 36px;
  color: rgba(245, 238, 231, 0.78);
  font-size: var(--type-size-body);
  line-height: 1.58;
}

.hero-marginalia {
  align-self: center;
  justify-self: end;
  width: 250px;
  margin: 40px 18px 0 0;
  padding: 18px 0 18px 22px;
  border-left: 1px solid rgba(241, 212, 194, 0.5);
  color: rgba(245, 238, 231, 0.68);
}

.hero-marginalia span {
  display: block;
  margin-bottom: 12px;
  color: var(--antique-brass);
  font-size: var(--type-size-caption);
}

.hero-marginalia strong {
  display: block;
  color: var(--canvas-ivory);
  font-family: var(--display-font);
  font-size: var(--type-size-section);
  font-weight: 400;
  line-height: 1.05;
}

.hero-marginalia p {
  margin: 16px 0 0;
  font-size: var(--type-size-caption);
  line-height: 1.6;
}

.hero-aperture-shell {
  position: absolute;
  right: 0;
  bottom: 88px;
  left: 0;
  z-index: 6;
}

.workstation-aperture {
  border: 1px solid rgba(173, 135, 85, 0.56);
  background: var(--panel-deep);
  box-shadow: 0 26px 70px rgba(10, 7, 5, 0.34);
}

.hero-workstation {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--antique-brass) #120d0a;
  scrollbar-width: thin;
}

.hero-workstation::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.hero-workstation::-webkit-scrollbar-track {
  background: #120d0a;
}

.hero-workstation::-webkit-scrollbar-thumb {
  border: 1px solid #120d0a;
  background: var(--antique-brass);
}

.workbench-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 760px;
  min-height: 47px;
  padding: 0 16px 0 48px;
  border-bottom: 1px solid var(--line-light);
  background: #120d0a;
  font-family: var(--data-font);
}

.workbench-title {
  color: var(--canvas-ivory);
  font-size: var(--type-size-caption);
}

.workbench-health {
  display: flex;
  gap: 18px;
}

.workbench-health span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(245, 238, 231, 0.58);
  font-size: var(--type-size-caption);
}

.workbench-health span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-sage);
}

.run-state {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 112, 90, 0.7);
  color: #aeb69f;
  font-size: var(--type-size-caption);
  text-transform: uppercase;
}

.run-state svg {
  width: 12px;
  height: 12px;
}

.workbench-body {
  display: grid;
  grid-template-columns: 0.82fr 1.3fr 0.82fr;
  min-width: 760px;
  min-height: 282px;
  color: var(--canvas-ivory);
}

.workbench-agent,
.workbench-code,
.workbench-review,
.ai-chat-pane,
.ai-code-pane {
  min-width: 0;
  border-right: 1px solid var(--line-light);
}

.workbench-agent,
.workbench-code,
.workbench-review {
  padding: 14px;
}

.workbench-review,
.ai-code-pane {
  border-right: 0;
}

.ui-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  color: rgba(245, 238, 231, 0.82);
  font-size: var(--type-size-caption);
  text-transform: uppercase;
}

.agent-message,
.agent-response,
.scenario-prompt {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-light);
  background: rgba(110, 71, 59, 0.12);
  color: rgba(245, 238, 231, 0.82);
  font-size: var(--type-size-caption);
  line-height: 1.55;
}

.agent-plan {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 10px 10px 28px;
  border-left: 1px solid var(--antique-brass);
  color: rgba(245, 238, 231, 0.58);
  font-size: var(--type-size-caption);
}

.agent-plan li::marker {
  color: var(--muted-sage);
}

.agent-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-light);
  color: rgba(245, 238, 231, 0.46);
  font-size: var(--type-size-caption);
}

.agent-input svg {
  width: 14px;
  height: 14px;
}

.workbench-code pre,
.ai-code-pane pre,
.python-preview pre {
  margin: 0;
  overflow: hidden;
  background: transparent !important;
  color: #c9d0bd;
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
  line-height: 1.65;
  white-space: pre-wrap;
}

.workbench-code pre {
  padding-top: 15px;
}

.code-key {
  color: var(--parchment-blush);
}

.code-string,
.code-number {
  color: var(--antique-brass);
}

.saved-state,
.online-state {
  color: #aeb69f;
  font-size: var(--type-size-caption);
}

.review-block {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-light);
}

.review-block + .review-block {
  padding-top: 15px;
  border-bottom: 0;
}

.review-block > span {
  color: rgba(245, 238, 231, 0.5);
  font-size: var(--type-size-caption);
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
  margin: 12px 0 8px;
}

.mini-chart i {
  width: 11%;
  background: var(--antique-brass);
  opacity: 0.72;
}

.mini-chart i:nth-child(1) { height: 28%; }
.mini-chart i:nth-child(2) { height: 42%; }
.mini-chart i:nth-child(3) { height: 39%; }
.mini-chart i:nth-child(4) { height: 70%; }
.mini-chart i:nth-child(5) { height: 62%; }
.mini-chart i:nth-child(6) { height: 88%; }
.mini-chart i:nth-child(7) { height: 78%; }

.risk-passed ul {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 0;
  color: rgba(245, 238, 231, 0.52);
  font-size: var(--type-size-caption);
  list-style: none;
}

.risk-passed li::before {
  content: "✓";
  margin-right: 6px;
  color: #aeb69f;
}

.risk-passed strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aeb69f;
  font-size: var(--type-size-caption);
}

.risk-passed svg {
  width: 13px;
  height: 13px;
}

.hero-proof-rail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  min-height: 88px;
  border-top: 1px solid rgba(245, 238, 231, 0.22);
  background: rgba(15, 10, 8, 0.92);
}

.proof-rail-inner {
  display: grid;
  grid-template-columns: 210px 250px minmax(0, 1fr);
  align-items: stretch;
  min-height: 88px;
}

.proof-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid rgba(245, 238, 231, 0.18);
  background: transparent;
  color: rgba(245, 238, 231, 0.58);
  cursor: pointer;
  text-align: left;
}

.proof-rail-item[aria-pressed="true"] {
  background: rgba(173, 135, 85, 0.14);
  color: var(--canvas-ivory);
}

.proof-rail-icon {
  display: inline-flex;
  color: var(--antique-brass);
}

.proof-rail-icon svg {
  width: 19px;
  height: 19px;
}

.proof-rail-item strong {
  font-size: var(--type-size-caption);
  font-weight: var(--type-weight-regular);
}

.hero-proof-detail {
  align-self: center;
  margin: 0;
  padding-left: 28px;
  color: rgba(245, 238, 231, 0.72);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

@keyframes hero-camera {
  from { transform: translate3d(0, var(--parallax-y), 0) scale(1.04); }
  to { transform: translate3d(0, var(--parallax-y), 0) scale(1.075); }
}

/* Proof gallery */
.market-proof {
  background: var(--canvas-ivory);
}

.proof-exhibits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proof-exhibit {
  position: relative;
  z-index: 1;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-brown);
  color: var(--canvas-ivory);
}

.proof-motion-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.proof-exhibit img,
.proof-exhibit video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 34px);
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
  transition: filter 500ms ease;
}

.proof-exhibit video {
  z-index: 1;
}

.proof-exhibit-orrery img,
.proof-exhibit-orrery video {
  object-position: 16% center;
}

.proof-exhibit-balance img,
.proof-exhibit-balance video {
  object-position: 84% center;
}

.proof-exhibit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(23, 17, 14, 0.08), rgba(23, 17, 14, 0.76));
}

.proof-exhibit-copy {
  position: absolute;
  right: 36px;
  bottom: 34px;
  left: 36px;
  z-index: 3;
}

.proof-exhibit-copy > span {
  display: block;
  margin-bottom: 12px;
  color: var(--parchment-blush);
  font-size: var(--type-size-caption);
  text-transform: none;
}

.proof-exhibit strong {
  display: block;
  font-family: var(--display-font);
  font-size: var(--type-size-display);
  font-weight: 400;
  line-height: 0.9;
}

.proof-exhibit p {
  margin: 14px 0 0;
  color: rgba(245, 238, 231, 0.72);
  font-size: var(--type-size-caption);
}

.proof-exhibit:hover img,
.proof-exhibit:hover video {
  filter: saturate(0.9) contrast(1.07) brightness(1.03);
}

.metric-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.proof-metric {
  min-height: 220px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(104, 112, 90, 0.032), transparent 84%);
}

.proof-metric + .proof-metric {
  margin-left: 1px;
}

.proof-metric strong {
  display: block;
  margin-bottom: 28px;
  color: var(--oxide-brown);
  font-family: var(--display-font);
  font-size: var(--type-size-display);
  font-weight: 400;
  line-height: 1;
}

.proof-metric span {
  display: block;
  max-width: 250px;
  color: var(--ink-soft);
  font-size: var(--type-size-caption);
  line-height: 1.55;
}

/* Dialogue */
.trade-ai {
  overflow: hidden;
  background: var(--night-atelier);
  color: var(--canvas-ivory);
}

.trade-ai .section-eyebrow,
.markets-section .section-eyebrow {
  color: var(--antique-brass);
}

.trade-ai .section-heading > p:last-child,
.markets-section .section-heading > p:last-child {
  color: rgba(245, 238, 231, 0.64);
}

.dialogue-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: start;
}

.dialogue-art {
  position: sticky;
  top: 102px;
  height: 760px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
}

.dialogue-art img {
  width: 100%;
  height: calc(100% + 34px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(1.08) brightness(0.82);
}

.dialogue-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 12, 10, 0.86));
}

.dialogue-art figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}

.dialogue-art figcaption span {
  display: block;
  margin-bottom: 9px;
  color: var(--antique-brass);
  font-size: var(--type-size-caption);
}

.dialogue-art figcaption strong {
  font-family: var(--display-font);
  font-size: var(--type-size-section);
  font-weight: 400;
}

.dialogue-interface {
  min-width: 0;
}

.ai-scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-light);
  border-bottom: 0;
}

.ai-scenario-tabs button {
  min-height: 70px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line-light);
  background: #120d0a;
  color: rgba(245, 238, 231, 0.52);
  cursor: pointer;
  font-size: var(--type-size-caption);
  text-align: left;
}

.ai-scenario-tabs button:last-child {
  border-right: 0;
}

.ai-scenario-tabs button[aria-selected="true"] {
  background: var(--oxide-brown);
  color: var(--canvas-ivory);
}

.ai-scenario-stage {
  min-height: 690px;
  border: 1px solid var(--line-light);
  background: #120d0a;
}

.ai-scenario-copy {
  padding: 34px;
  border-bottom: 1px solid var(--line-light);
}

.ai-scenario-copy h3 {
  margin: 0 0 14px;
  font-family: var(--interface-font);
  font-size: var(--type-size-section);
  font-weight: var(--type-weight-regular);
  line-height: 1.12;
}

.ai-scenario-copy > p {
  max-width: 680px;
  margin-bottom: 20px;
  color: rgba(245, 238, 231, 0.62);
  font-size: var(--type-size-caption);
  line-height: 1.6;
}

.scenario-prompt {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  margin: 0;
  border-color: rgba(173, 135, 85, 0.38);
  background: rgba(173, 135, 85, 0.08);
}

.scenario-prompt span {
  color: var(--antique-brass);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
  text-transform: uppercase;
}

.scenario-prompt p {
  margin: 0;
}

.scenario-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: rgba(245, 238, 231, 0.58);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
  text-transform: uppercase;
}

.scenario-state svg {
  width: 14px;
  height: 14px;
  color: var(--antique-brass);
}

.ai-product-ui {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 380px;
}

.ai-chat-pane,
.ai-code-pane {
  padding: 20px;
}

.agent-response {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin-top: 16px;
}

.agent-response svg {
  width: 18px;
  height: 18px;
  color: var(--antique-brass);
}

.agent-response p {
  margin: 0;
}

.ai-chat-pane ul {
  display: grid;
  gap: 7px;
  margin: 16px 0 20px;
  padding: 0;
  color: rgba(245, 238, 231, 0.55);
  font-size: var(--type-size-caption);
  list-style: none;
}

.ai-chat-pane li::before {
  content: "✓";
  margin-right: 8px;
  color: #aeb69f;
}

.agent-prompt-form {
  overflow: hidden;
  padding: 0;
}

.agent-prompt-form input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--canvas-ivory);
  font: inherit;
}

.agent-prompt-form input::placeholder {
  color: rgba(245, 238, 231, 0.38);
}

.agent-prompt-form button {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line-light);
  background: rgba(173, 135, 85, 0.12);
  color: var(--antique-brass);
  cursor: pointer;
}

.agent-prompt-status {
  min-height: 34px;
  margin: 8px 0 0;
  color: var(--antique-brass);
  font-size: var(--type-size-caption);
  line-height: 1.45;
}

.ai-code-pane pre {
  min-height: 280px;
  padding: 18px 2px;
}

.code-status {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
  color: rgba(245, 238, 231, 0.42);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.code-status strong {
  margin-left: auto;
  color: #aeb69f;
  font-weight: var(--type-weight-regular);
}

.section-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  color: var(--antique-brass);
  font-family: var(--display-font);
  font-size: var(--type-size-body);
}

.section-summary svg {
  width: 18px;
  height: 18px;
}

/* Workstation */
.workstation-section {
  overflow: hidden;
  background: var(--parchment-blush);
}

.workstation-section::after {
  content: none;
}

.workstation-section .home-container {
  position: relative;
  z-index: 1;
}

.workstation-cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.cabinet-marginalia {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--line-dark);
  border-bottom: 0;
  background: var(--canvas-ivory);
  color: var(--oxide-brown);
  font-family: var(--interface-font);
  font-size: var(--type-size-caption);
  writing-mode: horizontal-tb;
}

.cabinet-marginalia i {
  width: 100%;
  height: 1px;
  margin: 0;
  background: var(--line-dark);
}

.cabinet-marginalia p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
  white-space: nowrap;
}

.workstation-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 650px;
  color: var(--canvas-ivory);
}

.capability-tabs {
  border-right: 1px solid var(--line-light);
  background: #120d0a;
}

.capability-tabs button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  color: rgba(245, 238, 231, 0.52);
  cursor: pointer;
  font-size: var(--type-size-caption);
  text-align: left;
}

.capability-tabs button > span {
  display: inline-flex;
  color: var(--antique-brass);
}

.capability-tabs button svg {
  width: 22px;
  height: 22px;
}

.capability-tabs button[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--antique-brass);
  background: var(--oxide-brown);
  color: var(--canvas-ivory);
}

.capability-stage {
  min-width: 0;
  padding: 32px;
  background: var(--panel-deep);
}

.capability-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 28px;
}

.capability-copy h3 {
  margin: 0 0 14px;
  font-family: var(--display-font);
  font-size: var(--type-size-section);
}

.capability-copy p {
  margin: 0;
  color: rgba(245, 238, 231, 0.58);
  font-size: var(--type-size-caption);
  line-height: 1.6;
}

.capability-copy ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: rgba(245, 238, 231, 0.58);
  font-size: var(--type-size-caption);
  list-style: none;
}

.capability-copy li::before {
  content: "◆";
  margin-right: 8px;
  color: var(--antique-brass);
  font-size: var(--type-size-caption);
}

.capability-ui {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: #0d0a08;
}

.flow-canvas {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 36px 22px;
  background-image: radial-gradient(rgba(173, 135, 85, 0.17) 1px, transparent 1px);
  background-size: 18px 18px;
}

.flow-node {
  display: grid;
  gap: 8px;
  min-height: 135px;
  padding: 16px;
  border: 1px solid var(--line-light);
  background: rgba(29, 21, 17, 0.96);
}

.flow-node > span {
  color: var(--antique-brass);
}

.flow-node svg {
  width: 24px;
  height: 24px;
}

.flow-node strong {
  font-size: var(--type-size-caption);
}

.flow-node small {
  color: rgba(245, 238, 231, 0.48);
  font-size: var(--type-size-caption);
}

.flow-connector {
  width: 24px;
  height: 1px;
  background: var(--antique-brass);
}

.python-preview {
  padding: 14px 18px 20px;
  border-top: 1px solid var(--line-light);
}

.python-preview pre {
  margin-top: 10px;
}

.backtest-console,
.risk-console {
  padding: 18px;
}

.backtest-controls,
.risk-command {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  color: var(--canvas-ivory);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.backtest-controls button,
.risk-command button {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(173, 135, 85, 0.62);
  background: rgba(173, 135, 85, 0.1);
  color: var(--canvas-ivory);
  cursor: pointer;
  font-size: var(--type-size-caption);
}

.demo-action-status {
  color: rgba(245, 238, 231, 0.48);
  font-size: var(--type-size-caption);
}

.backtest-controls button:disabled,
.risk-command button:disabled {
  cursor: default;
  opacity: 1;
}

.backtest-console.is-complete .demo-action-status,
.backtest-console.is-complete .backtest-controls button {
  border-color: rgba(104, 112, 90, 0.75);
  color: #aeb69f;
}

.backtest-console.is-complete .equity-line {
  stroke: #aeb69f;
}

.equity-chart {
  height: 260px;
  margin: 18px 0;
  border: 1px solid var(--line-light);
}

.equity-chart svg {
  width: 100%;
  height: 100%;
}

.chart-grid {
  fill: none;
  stroke: rgba(190, 181, 169, 0.16);
  stroke-width: 1;
}

.equity-line {
  fill: none;
  stroke: var(--antique-brass);
  stroke-width: 3;
}

.report-tabs {
  display: flex;
  gap: 24px;
  color: rgba(245, 238, 231, 0.48);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.report-tabs span:first-child {
  color: var(--antique-brass);
}

.module-grid,
.risk-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.engine-module,
.risk-checks > div {
  display: grid;
  gap: 10px;
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line-light);
  background: rgba(29, 21, 17, 0.72);
}

.engine-module > span,
.risk-checks svg {
  color: var(--antique-brass);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.engine-module strong,
.risk-checks strong {
  font-size: var(--type-size-caption);
}

.engine-module small,
.risk-checks small {
  color: rgba(245, 238, 231, 0.5);
  font-size: var(--type-size-caption);
}

.data-feed-table {
  padding: 14px;
}

.data-feed-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.6fr 0.65fr;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(245, 238, 231, 0.56);
  font-size: var(--type-size-caption);
}

.data-feed-head {
  min-height: 42px;
  color: rgba(245, 238, 231, 0.36);
  font-family: var(--data-font);
  text-transform: uppercase;
}

.data-feed-row strong {
  color: #aeb69f;
  font-size: var(--type-size-caption);
}

.risk-command {
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line-light);
}

.risk-command strong {
  color: #aeb69f;
}

.risk-command button {
  border-color: rgba(150, 86, 77, 0.72);
  color: #d6a099;
}

.risk-console.is-stopped .risk-command strong,
.risk-console.is-stopped .risk-command button,
.risk-console.is-stopped .risk-log strong {
  color: #d6a099;
}

.risk-log {
  display: grid;
  grid-template-columns: 90px 80px 1fr 100px;
  gap: 12px;
  align-items: center;
  margin: 0 20px 20px;
  padding: 14px;
  border: 1px solid var(--line-light);
  color: rgba(245, 238, 231, 0.5);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.risk-log strong,
.risk-log span:last-child {
  color: #aeb69f;
}

.workstation-summary {
  margin: 34px 0 0;
  color: var(--oxide-brown);
  font-family: var(--display-font);
  font-size: var(--type-size-body);
  text-align: center;
}

/* Arena */
.markets-section {
  overflow: hidden;
  background: var(--night-atelier);
  color: var(--canvas-ivory);
}

.arena-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.market-orrery {
  position: relative;
  min-height: 590px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
}

.market-orrery img {
  width: 100%;
  height: calc(100% + 34px);
  object-fit: cover;
  object-position: 12% center;
  filter: saturate(0.8) brightness(0.7);
}

.market-orrery figcaption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  padding: 8px 10px;
  border: 1px solid rgba(173, 135, 85, 0.55);
  background: rgba(17, 12, 10, 0.82);
  color: var(--antique-brass);
  font-size: var(--type-size-caption);
}

.market-control-system {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.market-selector,
.shared-control-panel {
  padding: 22px;
  border: 1px solid var(--line-light);
  background: #120d0a;
}

.system-label {
  display: block;
  margin-bottom: 16px;
  color: var(--antique-brass);
  font-size: var(--type-size-caption);
  font-weight: var(--type-weight-regular);
  text-transform: uppercase;
}

.market-selector > div[role="tablist"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-light);
}

.market-selector button {
  min-height: 70px;
  border: 0;
  border-right: 1px solid var(--line-light);
  background: transparent;
  color: rgba(245, 238, 231, 0.52);
  cursor: pointer;
  font-size: var(--type-size-caption);
}

.market-selector button:last-child {
  border-right: 0;
}

.market-selector button[aria-selected="true"] {
  background: var(--oxide-brown);
  color: var(--canvas-ivory);
}

.market-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 92px;
  padding-top: 22px;
}

.market-detail strong {
  color: #aeb69f;
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.market-detail p {
  margin: 0;
  color: rgba(245, 238, 231, 0.58);
  font-size: var(--type-size-caption);
  line-height: 1.6;
}

.shared-control-panel > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 142px;
  border: 1px solid var(--line-light);
}

.shared-control-panel > div > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border-right: 1px solid var(--line-light);
  color: var(--antique-brass);
  text-align: center;
}

.shared-control-panel > div > span:last-child {
  border-right: 0;
}

.shared-control-panel svg {
  width: 23px;
  height: 23px;
}

.shared-control-panel strong {
  color: rgba(245, 238, 231, 0.72);
  font-size: var(--type-size-caption);
  font-weight: var(--type-weight-regular);
}

/* Oath */
.trust-section {
  overflow: hidden;
  padding: 88px 0;
  background: var(--canvas-ivory);
}

.trust-columns {
  margin-top: 0;
}

.trust-columns article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 28px;
  min-height: 0;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-dark);
}

.trust-columns article:last-child {
  border-bottom: 0;
}

.trust-columns article > span {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  color: var(--oxide-brown);
}

.trust-columns article > span svg {
  width: 30px;
  height: 30px;
}

.trust-columns small {
  display: block;
  margin-bottom: 18px;
  color: var(--antique-brass);
  font-family: var(--data-font);
  font-size: var(--type-size-caption);
}

.trust-columns h3 {
  margin: 0 0 14px;
  font-family: var(--display-font);
  font-size: var(--type-size-display);
  line-height: var(--type-display-leading);
}

.trust-columns p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-size-body);
  line-height: 1.65;
}

.secondary-action {
  width: fit-content;
  margin: 0 auto;
  border-color: var(--line-dark);
  background: transparent;
  color: var(--ink-brown);
}

.secondary-action:hover {
  border-color: var(--oxide-brown);
  background: var(--parchment-blush);
}

/* Invitation */
.home-cta {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--night-atelier);
  color: var(--canvas-ivory);
}

.cta-painting {
  position: absolute;
  inset: -24px 0;
  width: 100%;
  height: calc(100% + 48px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) brightness(0.7);
}

.home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 17, 14, 0.92) 0%, rgba(23, 17, 14, 0.72) 40%, rgba(23, 17, 14, 0.12) 74%);
}

.cta-flow-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  grid-template-rows: auto;
  column-gap: 64px;
  align-content: center;
  align-items: start;
  min-height: 760px;
}

.cta-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 34px;
}

.cta-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.home-cta .section-eyebrow {
  width: auto;
  margin: 0;
  color: var(--antique-brass);
  font-family: var(--interface-font);
  text-align: left;
}

.home-cta h2 {
  width: 100%;
  max-width: 560px;
  margin: 0 0 20px;
  text-align: left;
}

.home-cta .cta-copy > p {
  width: 100%;
  max-width: 620px;
  margin: 0;
  color: rgba(245, 238, 231, 0.66);
  text-align: left;
}

.cta-form {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  margin: 52px 0 0;
  padding: 18px;
  border: 1px solid rgba(245, 238, 231, 0.28);
  background: rgba(23, 17, 14, 0.86);
}

.cta-form input {
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(245, 238, 231, 0.3);
  background: transparent;
  color: var(--canvas-ivory);
  font-size: var(--type-size-caption);
}

.cta-form input::placeholder {
  color: rgba(245, 238, 231, 0.48);
}

.cta-form .primary-action {
  min-width: 180px;
  border: 0;
  cursor: pointer;
}

.cta-form .primary-action > span {
  font-size: var(--type-size-caption);
}

.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #aeb69f !important;
  font-size: var(--type-size-caption);
}

/* Footer */
.home-footer {
  width: 100%;
  padding: 48px 0 28px;
  border-top: 0;
  background: #0e0a08;
  color: var(--canvas-ivory);
}

.home-footer .footer-flow-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(48px, 1fr) auto;
  gap: 0 48px;
  align-items: start;
  min-height: 136px;
}

.brand-logo-footer {
  width: 170px;
  height: 37px;
}

.brand-logo-footer > img {
  width: 170px;
  height: 37px;
}

.home-footer .footer-brand {
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
  justify-self: start;
}

.home-footer .footer-links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 28px;
  min-width: 0;
  padding: 8px 0 0;
  border: 0;
}

.home-footer .footer-links a {
  color: rgba(245, 238, 231, 0.58);
  font-size: var(--type-size-caption);
  line-height: 1;
  white-space: nowrap;
}

.home-footer .footer-links a:hover {
  color: var(--canvas-ivory);
}

.home-footer .footer-copyright {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  margin: 0;
  color: rgba(245, 238, 231, 0.38);
  font-family: var(--interface-font);
  font-size: var(--type-size-caption);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .home-container,
  .site-header .nav-shell {
    width: min(1120px, calc(100% - 64px));
  }

  .section-heading h2,
  .home-cta h2 {
    font-size: var(--type-size-display);
  }

  .hero-copy h1 {
    font-size: var(--type-size-display);
  }

  .dialogue-layout {
    grid-template-columns: minmax(270px, 0.48fr) minmax(0, 1.52fr);
  }

  .capability-copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-canvas {
    padding: 28px 14px;
  }

  .arena-layout {
    grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.35fr);
  }
}

@media (max-width: 1020px) {
  :root {
    --header-height: 70px;
  }

  .hero-side-rays-root {
    width: 82vw;
    height: 62%;
    opacity: 0.78;
  }

  .home-container,
  .site-header .nav-shell {
    width: min(100% - 48px, 920px);
  }

  .nav-links,
  .nav-sign-in {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid currentColor;
    background: transparent;
    color: currentColor;
  }

  .mobile-menu-button svg {
    width: 20px;
    height: 20px;
  }

  .menu-close-icon {
    display: none;
  }

  .menu-is-open .menu-open-icon {
    display: none;
  }

  .menu-is-open .menu-close-icon {
    display: block;
  }

  .mobile-menu {
    display: none;
    width: 100%;
    padding: 12px 24px 22px;
    border-top: 1px solid var(--line-dark);
    background: var(--canvas-ivory);
    color: var(--ink-brown);
  }

  .menu-is-open .mobile-menu {
    display: grid;
  }

  .mobile-menu a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: var(--type-size-caption);
  }

  .mobile-menu-group {
    display: grid;
  }

  .mobile-menu-child {
    padding-left: 18px !important;
    color: var(--ink-soft);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-marginalia {
    display: none;
  }

  .proof-exhibits,
  .dialogue-layout,
  .arena-layout,
  .cta-flow-layout {
    grid-template-columns: 1fr;
  }

  .proof-exhibit {
    min-height: 480px;
  }

  .dialogue-art {
    position: relative;
    top: auto;
    height: 460px;
  }

  .workstation-cabinet {
    grid-template-columns: 1fr;
  }

  .cabinet-marginalia {
    display: grid;
  }

  .workstation-layout {
    grid-template-columns: 1fr;
  }

  .capability-tabs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .capability-tabs button {
    flex: 0 0 220px;
    border-right: 1px solid var(--line-light);
    border-bottom: 0;
  }

  .capability-tabs button[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--antique-brass);
  }

  .market-orrery {
    min-height: 460px;
  }

  .cta-flow-layout {
    grid-template-rows: auto auto;
    row-gap: 32px;
    align-content: center;
  }

  .cta-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .cta-form {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .cta-copy,
  .cta-form {
    max-width: 680px;
  }

}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .hero-side-rays-root {
    width: 100%;
    height: 54%;
    opacity: 0.58;
  }

  .home-container,
  .site-header .nav-shell {
    width: min(100% - 40px, 680px);
  }

  .home-band {
    padding: 88px 0;
  }

  .site-header .brand-logo {
    width: 77px;
    height: 17px;
  }

  .site-header .brand-logo > img {
    width: 77px;
    height: 17px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .home-cta h2 {
    font-size: var(--type-size-section);
    line-height: var(--type-display-leading-mobile);
  }

  .section-heading > p:last-child {
    font-size: var(--type-size-body);
  }

  .home-hero {
    min-height: 1040px;
  }

  .hero-painting,
  .hero-motion-video {
    object-position: 63% center;
    filter: saturate(0.82) contrast(1.02) brightness(0.68);
  }

  .hero-painting-wrap::after {
    background: linear-gradient(180deg, rgba(18, 12, 9, 0.58), rgba(18, 12, 9, 0.28) 36%, rgba(18, 12, 9, 0.88) 73%, rgba(18, 12, 9, 0.96));
  }

  .hero-layout {
    min-height: 600px;
    padding-top: 112px;
    padding-bottom: 260px;
  }

  .hero-copy h1 {
    max-width: 520px;
    font-size: var(--type-size-display);
    line-height: var(--type-display-leading-mobile);
  }

  .hero-description {
    max-width: 500px;
    font-size: var(--type-size-body);
  }

  .hero-copy .primary-action {
    min-height: 50px;
  }

  .hero-aperture-shell {
    bottom: 112px;
  }

  .hero-workstation {
    height: 250px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .workbench-topbar,
  .workbench-body {
    width: 760px;
  }

  .hero-proof-rail {
    min-height: 112px;
  }

  .proof-rail-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 112px;
  }

  .proof-rail-item {
    min-height: 56px;
    padding: 0 12px;
  }

  .proof-rail-item strong {
    font-size: var(--type-size-caption);
  }

  .hero-proof-detail {
    grid-column: 1 / -1;
    min-height: 54px;
    padding: 12px 0;
    border-top: 1px solid var(--line-light);
    font-size: var(--type-size-caption);
  }

.proof-exhibit {
    min-height: 420px;
  }

  .proof-exhibit-copy {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .proof-exhibit strong {
    font-size: var(--type-size-display);
  }

  .metric-mosaic {
    grid-template-columns: 1fr;
  }

  .proof-metric {
    min-height: 180px;
    border-right: 0;
    border-bottom: 0;
  }

  .proof-metric + .proof-metric {
    margin-top: 1px;
    margin-left: 0;
  }

  .dialogue-art {
    height: 400px;
  }

  .ai-scenario-tabs {
    display: flex;
    overflow-x: auto;
  }

  .ai-scenario-tabs button {
    flex: 0 0 205px;
  }

  .ai-scenario-copy {
    padding: 22px;
  }

  .ai-scenario-copy h3 {
    font-size: var(--type-size-section);
  }

  .scenario-prompt {
    grid-template-columns: 1fr;
  }

  .scenario-state {
    flex-wrap: wrap;
  }

  .ai-product-ui {
    grid-template-columns: 1fr;
  }

  .ai-chat-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .ai-code-pane pre {
    min-height: 300px;
  }

  .section-summary {
    font-size: var(--type-size-body);
    text-align: center;
  }

  .capability-stage {
    padding: 20px;
  }

  .capability-copy h3 {
    font-size: var(--type-size-section);
  }

  .flow-canvas {
    grid-template-columns: 1fr;
  }

  .flow-connector {
    width: 1px;
    height: 20px;
    margin: 0 auto;
  }

  .module-grid,
  .risk-checks {
    grid-template-columns: 1fr 1fr;
  }

  .data-feed-table {
    overflow-x: auto;
  }

  .data-feed-row {
    width: 700px;
  }

  .risk-log {
    grid-template-columns: 70px 60px minmax(160px, 1fr) 80px;
    overflow-x: auto;
  }

  .market-selector > div[role="tablist"],
  .shared-control-panel > div {
    grid-template-columns: 1fr;
  }

  .market-selector button,
  .shared-control-panel > div > span {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .market-selector button:last-child,
  .shared-control-panel > div > span:last-child {
    border-bottom: 0;
  }

  .market-detail {
    grid-template-columns: 1fr;
  }

  .trust-columns article {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    min-height: 0;
    padding: 30px 0;
  }

  .trust-columns h3 {
    font-size: var(--type-size-section);
    line-height: var(--type-display-leading-mobile);
  }

  .home-cta,
  .cta-flow-layout {
    min-height: 720px;
  }

  .cta-painting {
    object-position: 66% center;
  }

  .home-cta::after {
    background: linear-gradient(180deg, rgba(23, 17, 14, 0.58), rgba(23, 17, 14, 0.92));
  }

  .cta-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cta-form .primary-action {
    width: 100%;
  }

  .home-footer .footer-flow-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 28px;
    min-height: 0;
  }

  .home-footer {
    padding: 40px 0 24px;
  }

  .home-footer .footer-links {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-end;
    gap: 12px 20px;
    padding: 0;
    text-align: right;
  }

  .cabinet-marginalia {
    grid-template-columns: auto minmax(24px, 1fr);
  }

  .cabinet-marginalia p {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .home-footer .footer-copyright {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
  }
}

@media (max-width: 430px) {
  .home-container,
  .site-header .nav-shell {
    width: calc(100% - 32px);
  }

  .hero-copy h1 {
    font-size: var(--type-size-section);
  }

  .section-heading h2,
  .home-cta h2 {
    font-size: var(--type-size-section);
  }

  .proof-rail-icon {
    display: none;
  }

  .module-grid,
  .risk-checks {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-parallax],
  .hero-painting {
    transform: none !important;
  }

  .hero-motion-video,
  .proof-motion-media video {
    display: none !important;
  }

  .motion-ready [data-reveal] {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}
/* Browser annotations: 2026-07-24 */
:root {
  --type-size-display-compact: 48px;
}

.hero-workstation .workbench-agent > .ui-panel-title {
  text-transform: none;
  padding-top: 15px;
}

.hero-workstation .workbench-code > .ui-panel-title {
  text-transform: none;
  padding-block: 15px;
}

.hero-workstation .workbench-review .ui-panel-title {
  text-transform: none;
  padding-top: 15px;
}

.hero-workstation .saved-state {
  text-transform: none;
}

.hero-workstation .run-state {
  text-transform: none;
}

.hero-workstation .workbench-code pre,
.hero-workstation .review-block + .review-block {
  padding-top: 0;
}

.markets-section .system-label {
  text-transform: none;
}

#proof .section-heading h2,
#trade-ai .section-heading h2,
#workstation .section-heading h2,
#markets .section-heading h2,
#cta h2 {
  font-size: clamp(40px, 4.1vw, 48px);
}

#proof .proof-exhibit-copy > strong,
#proof .metric-mosaic strong {
  font-size: clamp(40px, 4.1vw, 48px);
}

.trust-columns article {
  align-items: start;
}

.trust-columns h3 {
  font-size: clamp(40px, 4.1vw, 48px);
}

.cta-flow-layout {
  align-items: start;
}

.cta-form {
  align-self: start;
}

@media (min-width: 761px) {
  #proof .section-heading h2 {
    margin-bottom: -25px;
  }
}

@media (max-width: 720px) {
  #proof .section-heading h2,
  #trade-ai .section-heading h2,
  #workstation .section-heading h2,
  #markets .section-heading h2,
  #cta h2,
  .trust-columns h3 {
    font-size: var(--type-size-section);
  }

  #proof .section-heading h2 {
    margin-bottom: 0;
  }

  .trust-columns article > span {
    padding-top: 4px;
  }
}

/* Browser annotations: trade and market refinements */
#trade-ai .section-heading > .section-eyebrow {
  margin-bottom: 10px;
}

#trade-ai .scenario-state,
#trade-ai .scenario-prompt > span,
#trade-ai .ai-product-ui .ui-panel-title {
  text-transform: none;
}

#trade-ai .ai-code-pane > .ui-panel-title {
  padding-bottom: 10px;
}

#trade-ai .section-summary {
  justify-content: flex-start;
  text-align: left;
}

#trade-ai .ai-scenario-copy h3,
#workstation .capability-copy h3 {
  font-size: var(--type-size-body);
}

#workstation .capability-tabs button {
  font-size: 13px;
}

#markets .market-control-system {
  grid-template-rows: max-content max-content;
  align-content: start;
  gap: 0;
}

#markets .market-selector,
#markets .shared-control-panel {
  border: 0;
  background: transparent;
}

#markets .market-selector {
  padding-bottom: 16px;
}

#markets .market-detail {
  min-height: 64px;
  padding-top: 16px;
}

#markets .shared-control-panel {
  position: relative;
}

#markets .shared-control-panel::before {
  content: "";
  position: absolute;
  top: -16px;
  right: 22px;
  left: 22px;
  height: 1px;
  background: var(--line-light);
}

@media (min-width: 1021px) {
  #markets .market-orrery {
    height: 560px;
    min-height: 0;
  }

  #markets .market-orrery img {
    height: 100%;
  }

  #markets .market-selector {
    margin-bottom: 32px;
  }
}

@media (max-width: 1020px) {
  #markets .market-selector {
    margin-bottom: 32px;
  }

  #markets .shared-control-panel::before {
    top: -16px;
  }
}

@media (max-width: 720px) {
  #markets .market-selector {
    margin-bottom: 32px;
  }

  #markets .shared-control-panel::before {
    top: -16px;
  }
}

/* Hero workstation: show the complete non-mobile panel without vertical scrolling. */
@media (min-width: 1021px) {
  .hero-workstation {
    height: 410px;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

@media (min-width: 721px) and (max-width: 1020px) {
  .hero-workstation {
    height: 475px;
    overflow-x: auto;
    overflow-y: hidden;
  }
}
