:root {
  color-scheme: light;
  --background-primary: #f7f3eb;
  --background-secondary: #efe8dd;
  --background-dark: #0e0d0b;
  --surface-primary: #ffffff;
  --surface-dark: #171412;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-on-dark: #fffaf0;
  --border-subtle: #ded7ce;
  --border-strong: #b7aea4;
  --brand-primary: #c2410c;
  --brand-primary-hover: #9a3412;
  --brand-primary-soft: #fce7d6;
  --state-success: #4f7b58;
  --state-warning: #a36a28;
  --state-error: #9b3b31;

  --bg: var(--background-primary);
  --bg-subtle: var(--background-secondary);
  --bg-surface: var(--surface-primary);
  --bg-elevated: var(--surface-primary);
  --text: var(--text-primary);
  --text-muted: #78716c;
  --accent: var(--brand-primary);
  --accent-hover: var(--brand-primary-hover);
  --accent-soft: var(--brand-primary-soft);
  --accent-text: var(--surface-primary);
  --border: var(--border-subtle);
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Compatibility aliases for the existing MAI visual system. */
  --paper: var(--bg);
  --paper-warm: var(--bg-surface);
  --paper-quiet: var(--bg-subtle);
  --ink: var(--text);
  --ink-soft: var(--text-secondary);
  --muted: var(--text-muted);
  --faint: #a8a29e;
  --line: var(--border);
  --line-strong: var(--border-strong);
  --orange: var(--accent);
  --orange-dark: var(--accent-hover);
  --orange-soft: var(--accent-soft);
  --success: #4f7b58;
  --warning: #a36a28;
  --danger: #9b3b31;
  --black: var(--text);
  --white: var(--accent-text);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --font-display: "Arial Narrow", "Aptos Display", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, Geist, "SF Pro Text", "Noto Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

h1,
h2,
h3 {
  color: inherit;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--text-muted);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

a,
button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: 82px;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-140%);
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: transform 150ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 235, 0.94);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-right: 1px solid var(--line);
  color: var(--text);
  padding: 0 22px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-width: 0;
}

.nav-group {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.nav-link,
.lang-toggle,
.nav-cta,
.menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-link,
.lang-toggle {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--text-secondary);
  padding: 0 22px;
  font-size: 14px;
  font-weight: 640;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover,
.lang-toggle:hover,
.nav-link:focus-visible,
.lang-toggle:focus-visible {
  background: var(--bg-subtle);
  color: var(--text);
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.nav-cta {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0 28px;
  font-size: 14px;
  font-weight: 760;
  transition: background-color 150ms ease, transform 150ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-text);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-cta:active {
  transform: translateY(1px);
}

.nav-link:focus-visible,
.lang-toggle:focus-visible,
.nav-cta:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -3px;
}

.menu-toggle {
  display: none;
}

.site-main {
  min-height: 100vh;
  padding-top: 64px;
}

.no-js .site-main {
  display: none;
}

.section,
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 28px;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px 40px 40px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--orange);
}

.hero-title,
.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.hero-title {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 82px;
}

:lang(zh) .hero-title,
:lang(zh) .display-title {
  font-family: "Noto Sans SC", "Microsoft YaHei UI", var(--font-body);
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.36;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 150ms ease, opacity 150ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--accent-text);
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button:active {
  transform: translateY(1px);
}

.button.secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text);
}

.button.ghost {
  min-height: 44px;
  border-color: var(--border-strong);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
  padding-inline: 14px;
}

.button[disabled],
.button.is-loading {
  cursor: not-allowed;
  opacity: 0.58;
}

.chapter {
  border-top: 1px solid var(--line);
}

.section {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-top: 112px;
  padding-bottom: 112px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.display-title {
  margin: 14px 0 0;
  font-size: 76px;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.text-stack {
  max-width: 760px;
}

.text-stack p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.marker-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.marker-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.marker-list i {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}

.relationship-flow {
  display: grid;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.flow-step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.flow-step:last-child {
  border-bottom: 0;
}

.flow-step code {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.flow-step span {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 860;
  line-height: 1;
}

.pool-board,
.matching-board,
.architecture-board,
.product-evidence {
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.pool-board {
  min-height: 480px;
  padding: 24px;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.pool-dot {
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.pool-dot.hot {
  background: var(--orange);
  border-color: var(--orange-dark);
}

.pool-dot.warm {
  background: var(--orange-soft);
}

.pool-note,
.board-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.pool-note strong,
.board-note strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.matching-board {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: stretch;
  min-height: 420px;
}

.match-column {
  padding: 24px;
}

.match-column h3,
.mini-panel h3,
.evidence-title h3,
.deployment-row h3,
.legal-page h1,
.workspace-card h1,
.consultation-panel h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.match-tag,
.status-pill,
.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.status-pill.available {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.match-tag.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.match-arrow {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--orange-dark);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
}

.ai-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.ai-role {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-role:nth-child(3n) {
  border-right: 0;
}

.ai-role:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.ai-role small {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-weight: 800;
}

.ai-role h3 {
  margin: 22px 0 10px;
  font-size: 24px;
  line-height: 1.12;
}

.ai-role p {
  margin: 0;
  color: var(--muted);
}

.loop-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.loop-node {
  position: relative;
  min-height: 164px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.loop-node:nth-child(5n) {
  border-right: 0;
}

.loop-node:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.loop-node code {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-weight: 850;
}

.loop-node span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.2;
}

.platform-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.platform-table th,
.platform-table td,
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px 18px;
  text-align: left;
  vertical-align: middle;
}

.platform-table th,
.data-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: 0;
}

.platform-name {
  font-size: 22px;
  font-weight: 860;
}

.status-pill.rolling {
  border-color: rgba(163, 106, 40, 0.48);
  color: var(--warning);
}

.status-pill.planned,
.status-pill.dev {
  color: var(--muted);
}

.product-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
}

.evidence-main {
  min-height: 520px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.evidence-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.mini-panel {
  min-height: 164px;
  border: 1px solid var(--line-strong);
  padding: 18px;
  background: rgba(255, 250, 240, 0.52);
}

.mini-panel p {
  margin: 18px 0 0;
  color: var(--muted);
}

.mini-value {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.evidence-side {
  padding: 24px;
}

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

.activity-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.activity-item b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.deployment-list {
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

.deployment-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.deployment-row:last-child {
  border-bottom: 0;
}

.deployment-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.architecture-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.architecture-cell {
  min-height: 220px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

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

.architecture-cell small {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-weight: 840;
}

.architecture-cell h3 {
  margin: 32px 0 10px;
  font-size: 23px;
  line-height: 1.1;
}

.architecture-cell p {
  margin: 0;
  color: var(--muted);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.64fr);
  gap: 36px;
  align-items: start;
}

.form-panel,
.workspace-card,
.consultation-panel,
.legal-page {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.form-panel,
.workspace-card,
.consultation-panel {
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 740;
}

.upload-field {
  display: grid;
  gap: 7px;
}

.upload-field > label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 740;
}

.upload-window {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.upload-window:focus-within {
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.upload-window input[type="file"] {
  width: 100%;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
}

.upload-window input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  padding: 9px 12px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.upload-window input[type="file"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.upload-window p,
.upload-selection p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-selection p {
  margin-top: 0;
}

.upload-selection ul,
.summary-upload-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upload-selection li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
}

.upload-file-name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-meta,
.upload-file-state {
  color: var(--muted);
}

.upload-selection li[data-state="uploading"] .upload-file-state {
  color: var(--warning);
}

.upload-selection li[data-state="uploaded"] .upload-file-state {
  color: var(--success);
}

.upload-selection li[data-state="error"] .upload-file-state {
  color: var(--danger);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text);
  padding: 13px 14px;
  min-height: 48px;
  outline: 0;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.chat-form textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.field-error,
.form-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
}

.workspace-page,
.consultation-page,
.legal-wrap {
  min-height: calc(100vh - 64px);
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 96px 28px;
}

.workspace-card {
  max-width: 580px;
  margin: 8vh auto 0;
}

.workspace-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
}

.workspace-card p,
.consultation-panel p,
.legal-page p {
  color: var(--muted);
}

.workspace-form {
  margin-top: 32px;
}

.consultation-page {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(360px, 0.46fr);
  gap: 28px;
  align-items: start;
}

.chat-shell {
  border: 1px solid var(--ink);
  background: var(--paper-warm);
}

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

.chat-header h1 {
  margin: 0;
  font-size: 22px;
}

.chat-log {
  min-height: 420px;
  max-height: 54vh;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
}

.message {
  max-width: 82%;
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.78);
}

.message.user {
  justify-self: end;
  background: var(--black);
  color: var(--white);
}

.message.assistant {
  justify-self: start;
}

.message small {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.message.user small {
  color: var(--orange-soft);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.chat-form textarea {
  min-height: 48px;
  max-height: 150px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.8);
  padding: 12px;
  resize: vertical;
  outline: 0;
}

.summary-box {
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  padding: 22px;
}

.summary-box dl {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.summary-box dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.summary-box dd {
  margin: 3px 0 0;
}

.summary-upload-list {
  gap: 7px;
}

.summary-upload-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 720;
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.summary-upload-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 620;
}

.account-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.54fr);
}

.account-gate {
  display: grid;
  gap: 22px;
}

.account-form {
  margin: 0;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.account-bar strong {
  color: var(--ink);
  font-weight: 760;
}

.account-bar em {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--orange-dark);
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 32px 28px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 680;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 180;
  max-width: min(520px, calc(100vw - 32px));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--ink);
  background: var(--black);
  color: var(--white);
  padding: 12px 16px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  max-width: 980px;
  margin: 104px auto 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 56px);
}

.noscript h1,
.noscript h2 {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.noscript p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.noscript .noscript-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.noscript ul {
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.noscript li {
  padding-left: 4px;
}

.noscript li::marker {
  color: var(--accent);
}

.noscript-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.noscript-translation {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 44px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 152px minmax(0, 1fr);
  }

  .nav-link,
  .lang-toggle {
    padding-inline: 14px;
  }

  .hero,
  .section-header,
  .split,
  .final-cta,
  .consultation-page {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 74px;
  }

  .display-title {
    font-size: 66px;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-header {
    gap: 36px;
    margin-bottom: 48px;
  }

  .product-evidence,
  .matching-board {
    grid-template-columns: 1fr;
  }

  .evidence-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .match-arrow {
    min-height: 86px;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: rotate(90deg);
  }

  .architecture-board,
  .ai-team,
  .loop-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-cell,
  .ai-role,
  .loop-node {
    border-bottom: 1px solid var(--line);
  }

  .architecture-cell:nth-child(2n),
  .ai-role:nth-child(2n),
  .loop-node:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero-copy {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .hero-title {
    margin-top: 16px;
    font-size: 66px;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.32;
  }

  .hero-actions {
    margin-top: 18px;
  }

}

@media (max-width: 820px) {
  body {
    background-size: 32px 32px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .brand-link {
    border-right: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    border-left: 1px solid var(--line);
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 160ms ease;
  }

  .menu-toggle span + span {
    margin-top: -16px;
  }

  body.nav-open .menu-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 0 0;
    display: none;
    align-content: start;
    overflow: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .nav-group {
    display: grid;
    width: 100%;
  }

  .nav-link,
  .lang-toggle,
  .nav-cta {
    justify-content: flex-start;
    width: 100%;
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-inline: 24px;
  }

  .hero,
  .section,
  .workspace-page,
  .consultation-page,
  .legal-wrap {
    padding-inline: 18px;
    border-left: 0;
    border-right: 0;
  }

  .hero-title {
    font-size: 58px;
  }

  .display-title {
    font-size: 54px;
  }

  .relationship-flow,
  .pool-board,
  .matching-board,
  .ai-team,
  .loop-map,
  .platform-table,
  .product-evidence,
  .deployment-list,
  .architecture-board,
  .form-panel,
  .workspace-card,
  .consultation-panel,
  .chat-shell,
  .summary-box,
  .legal-page {
    margin-inline: -1px;
  }

  .ai-team,
  .loop-map,
  .architecture-board,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .ai-role,
  .loop-node,
  .architecture-cell {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pool-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .platform-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
  }

  .platform-table thead {
    display: none;
  }

  .platform-table tbody,
  .platform-table tr,
  .platform-table td {
    display: block;
    width: 100%;
  }

  .platform-table tr {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .platform-table tr:last-child {
    border-bottom: 0;
  }

  .platform-table td {
    border-bottom: 0;
    padding: 8px 16px;
  }

  .deployment-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 94%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 440px) {
  .hero,
  .section,
  .workspace-page,
  .consultation-page,
  .legal-wrap {
    padding-inline: 14px;
  }

  .hero-copy {
    padding-top: 42px;
    padding-bottom: 30px;
  }

  .hero-title {
    font-size: 46px;
  }

  .hero-text,
  .section-lede {
    font-size: 17px;
  }

  .action-row,
  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .upload-selection li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .upload-file-state {
    grid-column: 1 / -1;
  }

  .summary-upload-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .flow-step {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .flow-step span {
    font-size: 26px;
  }

  .pool-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .form-panel,
  .workspace-card,
  .consultation-panel,
  .summary-box,
  .legal-page {
    padding: 20px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* MAI brand storytelling pass */
:root {
  --story-paper: var(--bg);
  --story-paper-soft: var(--bg-surface);
  --story-ink: var(--text);
  --story-ink-soft: var(--text-secondary);
  --story-muted: var(--text-muted);
  --story-line: var(--border);
  --story-line-strong: var(--border-strong);
  --story-black: var(--text);
  --story-orange: var(--accent);
  --story-orange-dark: var(--accent-hover);
  --story-orange-soft: var(--accent-soft);
}

body {
  background: var(--bg);
  color: var(--text);
}

.site-header {
  height: 64px;
  background: rgba(247, 243, 235, 0.9);
  border-bottom-color: var(--story-line);
}

.brand-link,
.nav-link,
.lang-toggle,
.menu-toggle {
  border-color: var(--story-line);
}

.nav-link,
.lang-toggle {
  font-size: 13px;
  font-weight: 720;
}

.nav-cta {
  background: var(--accent);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-hover);
}

.site-main {
  padding-top: 64px;
}

.story-hero,
.story-manifest,
.scroll-story,
.loop-story,
.platform-section,
.delivery-section,
.architecture-section,
.story-final-cta {
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid var(--story-line);
  border-right: 1px solid var(--story-line);
}

.story-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(520px, 0.82fr);
  align-items: stretch;
}

.story-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 5vw 44px 5.5vw;
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--story-orange-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-kicker span {
  width: 8px;
  height: 8px;
  background: var(--story-orange);
}

.story-hero-title {
  max-width: 780px;
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 86px;
  line-height: 0.93;
  font-weight: 920;
  letter-spacing: -0.03em;
}

:lang(zh) .story-hero-title,
:lang(zh) .story-stage-copy h2,
:lang(zh) .wide-heading h2,
:lang(zh) .loop-copy h2 {
  font-family: "Noto Sans SC", "Microsoft YaHei UI", var(--font-body);
  letter-spacing: 0;
}

.story-hero-text {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--story-ink-soft);
  font-size: 23px;
  line-height: 1.38;
}

.story-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.story-primary {
  min-height: 50px;
  border-color: var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent);
  box-shadow: var(--shadow-md);
}

.story-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 20px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.story-link-button:hover,
.story-link-button:focus-visible {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.story-footnote {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.story-hero-system {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  padding: clamp(28px, 4vw, 58px);
}

.product-preview {
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: 0 28px 70px rgba(28, 25, 23, 0.14), var(--shadow-lg);
  transform: translateY(-2px);
}

.preview-chrome {
  min-height: 42px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: #fafaf9;
  padding: 0 14px;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots i {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}

.preview-dots i:first-child {
  background: var(--accent);
}

.preview-address {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-secure {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.preview-shell {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 500px;
}

.preview-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--text);
  color: #d6d3d1;
  padding: 18px 12px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 18px;
}

.preview-brand span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
}

.preview-brand strong {
  color: #fafaf9;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.preview-nav {
  display: grid;
  gap: 5px;
}

.preview-nav-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  color: #a8a29e;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 600;
}

.preview-nav-item i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #57534e;
  border-radius: 5px;
  font-style: normal;
  font-size: 8px;
}

.preview-nav-item b {
  min-width: 0;
  overflow: hidden;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-nav-item.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: #ffedd5;
}

.preview-nav-item.is-active i {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.preview-sidebar small {
  margin-top: auto;
  color: #78716c;
  padding: 16px 8px 2px;
  font-size: 8px;
}

.preview-workspace {
  min-width: 0;
  background: var(--bg-surface);
}

.preview-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.preview-toolbar div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.preview-toolbar strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-toolbar span {
  color: var(--text-muted);
  font-size: 9px;
}

.preview-toolbar em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 8px;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
}

.preview-toolbar em i {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: #fafaf9;
}

.preview-metrics div {
  min-width: 0;
  padding: 12px 14px;
}

.preview-metrics div + div {
  border-left: 1px solid var(--border);
}

.preview-metrics span,
.preview-metrics strong {
  display: block;
}

.preview-metrics span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-metrics strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.preview-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(190px, 0.82fr);
  min-height: 352px;
}

.preview-signals,
.preview-relationship {
  min-width: 0;
}

.preview-signals > header,
.preview-relationship > header {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
}

.preview-signals > header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.preview-signals > header strong,
.preview-relationship > header strong {
  color: var(--text);
  font-size: 10px;
}

.preview-signals > header span,
.preview-relationship > header span {
  color: var(--text-muted);
  font-size: 8px;
}

.preview-signal-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.preview-signal-row.is-selected {
  background: var(--accent-soft);
}

.preview-signal-row > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
}

.preview-signal-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.preview-signal-row strong,
.preview-signal-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-signal-row strong {
  color: var(--text);
  font-size: 9px;
}

.preview-signal-row small,
.preview-signal-row time {
  color: var(--text-muted);
  font-size: 7px;
}

.preview-signal-row em {
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 3px 6px;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
}

.preview-signal-row.is-selected em {
  background: var(--bg-surface);
  color: var(--accent);
}

.preview-signal-row time {
  grid-column: 2 / 4;
  margin-top: -8px;
  font-variant-numeric: tabular-nums;
}

.preview-relationship {
  border-left: 1px solid var(--border);
  background: #fafaf9;
  padding-bottom: 12px;
}

.preview-message {
  max-width: calc(100% - 28px);
  margin: 12px 14px 0;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 9px 10px;
  box-shadow: var(--shadow-sm);
  font-size: 8px;
  line-height: 1.45;
}

.preview-message.is-mai {
  margin-left: 28px;
  background: var(--accent-soft);
  color: var(--text);
}

.preview-message b {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 7px;
}

.preview-next-action {
  display: grid;
  gap: 4px;
  margin: 14px;
  border-left: 2px solid var(--accent);
  background: var(--bg-surface);
  padding: 10px 11px;
  box-shadow: var(--shadow-sm);
}

.preview-next-action span {
  color: var(--accent);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-next-action strong {
  color: var(--text);
  font-size: 8px;
  line-height: 1.4;
}

.story-manifest {
  min-height: 72vh;
  display: grid;
  align-content: center;
  padding: 10vh 8vw;
}

.story-manifest p {
  max-width: 1040px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.04;
  font-weight: 880;
  letter-spacing: 0;
}

.manifest-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 920px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--story-line);
  color: var(--story-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.scroll-story {
  position: relative;
  min-height: 260vh;
  border-top: 1px solid var(--story-line);
}

.stage-triggers {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}

.stage-triggers span {
  min-height: 1px;
}

.story-sticky {
  position: sticky;
  top: 64px;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(540px, 1fr);
  gap: 64px;
  align-items: center;
  padding: 56px 6vw;
}

.quiet-story {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--story-line);
  border-left: 1px solid var(--story-line);
  border-right: 1px solid var(--story-line);
  padding: 112px 6vw;
}

.quiet-story .story-sticky {
  position: relative;
  top: auto;
  min-height: auto;
  padding: 0;
}

.quiet-story .story-stage-copy {
  min-height: auto;
  display: grid;
  gap: 26px;
}

.quiet-story .stage-copy-panel {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  border-top: 1px solid var(--story-line);
  padding-top: 22px;
}

.quiet-story .stage-copy-panel h2 {
  font-size: 44px;
  line-height: 1.03;
}

.quiet-story .stage-copy-panel p {
  max-width: 560px;
  font-size: 17px;
}

.story-stage-copy {
  position: relative;
  min-height: 430px;
}

.stage-copy-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-story[data-stage="1"] [data-stage-panel="1"],
.scroll-story[data-stage="2"] [data-stage-panel="2"],
.scroll-story[data-stage="3"] [data-stage-panel="3"] {
  opacity: 1;
  transform: translateY(0);
}

.stage-copy-panel code {
  color: var(--story-orange-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.stage-copy-panel h2,
.wide-heading h2,
.loop-copy h2 {
  max-width: 780px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.stage-copy-panel p,
.wide-heading p,
.loop-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--story-ink-soft);
  font-size: 21px;
  line-height: 1.44;
}

.stage-copy-panel small {
  max-width: 520px;
  margin-top: 26px;
  color: var(--story-muted);
  font-size: 14px;
}

.asset-visual,
.demand-visual,
.ai-system-visual,
.workbench-frame {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--story-line-strong);
  background: var(--story-paper-soft);
}

.asset-field-label,
.asset-caption {
  position: absolute;
  z-index: 3;
  left: 24px;
  color: var(--story-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-field-label {
  top: 22px;
}

.asset-caption {
  bottom: 22px;
}

.asset-core {
  position: absolute;
  left: 57%;
  top: 54%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%) scale(0.72);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
  color: var(--story-orange-dark);
  opacity: 0.2;
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-story[data-stage="3"] .asset-core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.asset-core span {
  max-width: 120px;
  text-align: center;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
}

.asset-stage-badges {
  position: absolute;
  z-index: 3;
  right: 22px;
  top: 22px;
  display: flex;
  gap: 8px;
}

.asset-stage-badges span {
  border: 1px solid var(--story-line);
  padding: 6px 9px;
  color: var(--story-muted);
  font-size: 12px;
}

.scroll-story[data-stage="1"] [data-stage-badge="1"],
.scroll-story[data-stage="2"] [data-stage-badge="2"],
.scroll-story[data-stage="3"] [data-stage-badge="3"] {
  border-color: var(--story-orange);
  color: var(--story-orange-dark);
}

.asset-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.asset-map-field {
  fill: none;
  stroke: rgba(18, 17, 15, 0.07);
  stroke-width: 1;
}

.asset-map-core-ring {
  fill: color-mix(in srgb, var(--accent) 3.5%, transparent);
  stroke: color-mix(in srgb, var(--accent) 24%, transparent);
  stroke-width: 1.2;
}

.asset-svg-node {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.asset-svg-node circle {
  fill: var(--story-ink);
}

.asset-svg-node.is-value circle {
  fill: var(--story-orange);
}

.asset-svg-node text {
  fill: var(--story-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.scroll-story[data-stage="3"] .asset-svg-node text {
  opacity: 0;
}

.demand-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  background: var(--story-ink);
  transition: opacity 180ms ease, transform 180ms ease;
}

.demand-node.is-match {
  background: var(--story-orange);
}

.demand-visual {
  background: var(--story-black);
  color: var(--white);
}

.demand-request,
.private-channel {
  position: absolute;
  z-index: 3;
  width: 210px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  padding: 18px;
  background: rgba(14, 13, 11, 0.82);
}

.demand-request {
  left: 24px;
  top: 28px;
}

.private-channel {
  right: 24px;
  bottom: 28px;
}

.demand-request span,
.private-channel span {
  display: block;
  color: rgba(255, 250, 240, 0.58);
  font-size: 12px;
}

.demand-request strong,
.private-channel strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.18;
}

.request-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.request-traits i {
  border: 1px solid rgba(255, 250, 240, 0.18);
  padding: 4px 7px;
  color: var(--story-orange-soft);
  font-style: normal;
  font-size: 11px;
}

.demand-pool {
  position: absolute;
  inset: 0;
}

.demand-node {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--story-black);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
}

.demand-node.is-muted {
  background: rgba(255, 250, 240, 0.48);
}

.demand-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demand-path path {
  fill: none;
  stroke: var(--story-orange);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 720ms ease;
}

.demand-story.in-view .demand-path path {
  stroke-dashoffset: 0;
}

.ai-system-visual {
  background: var(--story-black);
  color: var(--white);
}

.ai-system-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.13);
  padding: 22px 24px;
}

.ai-system-header span {
  color: rgba(255, 250, 240, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.ai-stage-list {
  display: grid;
}

.ai-stage-row {
  display: grid;
  grid-template-columns: 52px minmax(90px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
  padding: 0 24px;
  opacity: 0.42;
}

.quiet-story .ai-stage-row {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease, background-color 160ms ease;
}

.quiet-story.in-view .ai-stage-row {
  opacity: 1;
  transform: none;
}

.quiet-story.in-view .ai-stage-row:nth-child(2) { transition-delay: 60ms; }
.quiet-story.in-view .ai-stage-row:nth-child(3) { transition-delay: 120ms; }
.quiet-story.in-view .ai-stage-row:nth-child(4) { transition-delay: 180ms; }
.quiet-story.in-view .ai-stage-row:nth-child(5) { transition-delay: 240ms; }

.ai-stage-row.is-complete,
.ai-stage-row.is-active {
  opacity: 1;
}

.ai-stage-row.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.ai-stage-row code {
  color: var(--story-orange-soft);
  font-family: var(--font-mono);
}

.ai-stage-row span {
  font-size: 24px;
  font-weight: 860;
}

.ai-stage-row small {
  color: rgba(255, 250, 240, 0.68);
  font-size: 14px;
}

.conversation-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-strip span {
  border: 1px solid rgba(255, 250, 240, 0.14);
  padding: 8px 10px;
  color: rgba(255, 250, 240, 0.48);
  font-size: 12px;
}

.conversation-strip span.is-active {
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
  color: var(--story-orange-soft);
}

.quiet-story .conversation-strip span {
  color: rgba(255, 250, 240, 0.7);
}

.story-conclusion {
  color: var(--story-orange-dark) !important;
  font-weight: 760;
}

.loop-story {
  min-height: 150vh;
  border-top: 1px solid var(--story-line);
  padding: 110px 6vw;
}

.loop-copy {
  max-width: 980px;
}

.loop-canvas-wrap {
  position: relative;
  min-height: 560px;
  margin-top: 56px;
}

.loop-canvas {
  width: 100%;
  height: auto;
}

.loop-track,
.loop-progress {
  fill: none;
  stroke-linecap: round;
}

.loop-track {
  stroke: var(--story-line);
  stroke-width: 2;
}

.loop-progress {
  stroke: var(--story-orange);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms ease;
}

.loop-story.in-view .loop-progress {
  stroke-dashoffset: 0;
}

.loop-nodes span {
  position: absolute;
  max-width: 150px;
  color: var(--story-muted);
  font-size: 13px;
  line-height: 1.2;
  transition: color 220ms ease, opacity 220ms ease;
}

.loop-story.in-view .loop-nodes span,
.loop-nodes span.is-active {
  color: var(--story-ink);
}

.loop-nodes i {
  display: block;
  margin-bottom: 5px;
  color: var(--story-orange-dark);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
}

.loop-nodes span:nth-child(1) { left: 1%; top: 46%; }
.loop-nodes span:nth-child(2) { left: 12%; top: 9%; }
.loop-nodes span:nth-child(3) { left: 29%; top: 12%; }
.loop-nodes span:nth-child(4) { left: 42%; top: 35%; }
.loop-nodes span:nth-child(5) { left: 41%; top: 78%; }
.loop-nodes span:nth-child(6) { left: 59%; top: 83%; }
.loop-nodes span:nth-child(7) { left: 79%; top: 66%; }
.loop-nodes span:nth-child(8) { left: 88%; top: 31%; }
.loop-nodes span:nth-child(9) { left: 73%; top: 8%; }
.loop-nodes span:nth-child(10) { left: 66%; top: 46%; }

.platform-section,
.delivery-section,
.architecture-section,
.story-final-cta {
  padding: 110px 6vw;
  border-top: 1px solid var(--story-line);
}

.wide-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.55fr);
  gap: 70px;
  align-items: end;
}

.platform-strip,
.delivery-lines,
.architecture-lines {
  margin-top: 62px;
  border-top: 1px solid var(--story-line);
}

.platform-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--story-line);
  padding: 22px 0;
}

.platform-row.is-primary {
  min-height: 138px;
}

.platform-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.platform-row.is-primary strong {
  font-size: 52px;
}

.platform-row span {
  display: block;
  max-width: 720px;
  margin-top: 10px;
  color: var(--story-muted);
}

.status-pill {
  border-radius: 999px;
  background: transparent;
  font-style: normal;
}

.delivery-lines article,
.architecture-lines article {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 48px;
  border-bottom: 1px solid var(--story-line);
  padding: 30px 0;
}

.delivery-lines h3,
.architecture-lines h3 {
  margin: 0;
  font-size: 25px;
}

.delivery-lines p,
.architecture-lines p {
  max-width: 820px;
  margin: 0;
  color: var(--story-ink-soft);
  font-size: 18px;
}

.architecture-lines code {
  color: var(--story-orange-dark);
  font-family: var(--font-mono);
}

.workbench-story {
  background: var(--story-black);
  color: var(--white);
}

.workbench-story .story-stage-copy h2,
.workbench-story .story-stage-copy p {
  color: var(--white);
}

.workbench-story .stage-copy-panel small,
.workbench-story .stage-copy-panel code {
  color: var(--story-orange-soft);
}

.workbench-frame {
  background: var(--bg-subtle);
  color: var(--text);
  transform: translate3d(0, 0, 0) scale(0.98);
  transform-origin: center center;
  clip-path: inset(0 0 8% 0);
  transition: transform 680ms ease, clip-path 680ms ease;
}

.workbench-story[data-stage="2"] .workbench-frame {
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 3% 0);
}

.workbench-story[data-stage="3"] .workbench-frame {
  transform: translate3d(0, -10px, 0) scale(1);
  clip-path: inset(0);
}

.workbench-topbar {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
}

.workbench-topbar span {
  color: var(--accent);
  font-weight: 900;
}

.workbench-topbar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.workbench-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 560px;
}

.workbench-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--border);
  padding: 22px 16px;
}

.workbench-sidebar span {
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.workbench-sidebar span:first-child {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.workbench-main {
  padding: 24px;
}

.workbench-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.workbench-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.workbench-metrics div {
  min-height: 112px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 16px;
}

.workbench-metrics span {
  color: var(--text-muted);
  font-size: 12px;
}

.workbench-metrics strong {
  display: block;
  margin-top: 16px;
  font-size: 32px;
}

.workbench-flow {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.workbench-flow span {
  width: var(--w, 58%);
  height: 10px;
  background: var(--border-strong);
}

.workbench-flow span:nth-child(3) {
  background: var(--accent);
}

.workbench-activity {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.workbench-activity strong,
.workbench-activity b {
  color: var(--text);
}

.workbench-activity p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.workbench-activity small {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
}

.story-final-cta .display-title {
  font-size: 66px;
  line-height: 1;
  letter-spacing: 0;
}

.story-final-cta .final-cta {
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.55fr);
}

.story-final-cta .form-panel {
  border-color: var(--story-line-strong);
  background: var(--story-paper-soft);
}

@media (max-width: 1260px) {
  .story-hero-title {
    max-width: 560px;
    font-size: 68px;
    line-height: 0.94;
  }

  .story-hero-copy {
    padding-left: 5.5vw;
    padding-right: 2vw;
  }

  .wide-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wide-heading h2 {
    max-width: 860px;
  }
}

@media (max-width: 1120px) {
  .story-hero {
    grid-template-columns: 1fr;
  }

  .story-hero-system {
    min-height: 520px;
  }

  .story-hero-title {
    font-size: 76px;
  }

  .story-manifest p,
  .stage-copy-panel h2,
  .wide-heading h2,
  .loop-copy h2,
  .story-final-cta .display-title {
    font-size: 56px;
  }

  .story-sticky,
  .wide-heading,
  .story-final-cta .final-cta {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .story-hero,
  .story-manifest,
  .scroll-story,
  .quiet-story,
  .loop-story,
  .platform-section,
  .delivery-section,
  .architecture-section,
  .story-final-cta {
    border-left: 0;
    border-right: 0;
  }

  .story-hero-copy,
  .story-manifest,
  .quiet-story,
  .platform-section,
  .delivery-section,
  .architecture-section,
  .story-final-cta,
  .loop-story {
    padding-left: 18px;
    padding-right: 18px;
  }

  .story-hero-title {
    font-size: 52px;
    line-height: 0.96;
  }

  .story-hero-text,
  .stage-copy-panel p,
  .wide-heading p,
  .loop-copy p {
    font-size: 18px;
  }

  .story-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .story-link-button {
    justify-content: center;
    border: 1px solid var(--story-line-strong);
    padding: 0 14px;
  }

  .story-hero-system {
    min-height: 430px;
  }

  .story-manifest {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .story-manifest p,
  .stage-copy-panel h2,
  .wide-heading h2,
  .loop-copy h2,
  .story-final-cta .display-title {
    font-size: 38px;
    line-height: 1.06;
  }

  .scroll-story {
    min-height: auto;
    padding: 72px 18px;
  }

  .story-sticky {
    position: relative;
    top: auto;
    min-height: auto;
    display: grid;
    padding: 0;
  }

  .story-stage-copy {
    min-height: auto;
    display: grid;
    gap: 34px;
  }

  .stage-copy-panel {
    position: relative;
    inset: auto;
    min-height: auto;
    border-top: 1px solid var(--story-line);
    padding-top: 24px;
    opacity: 1;
    transform: none;
  }

  .asset-visual,
  .demand-visual,
  .ai-system-visual,
  .workbench-frame {
    min-height: 460px;
  }

  .asset-svg-node text {
    display: none;
  }

  .asset-stage-badges {
    left: 18px;
    right: auto;
    top: auto;
    bottom: 54px;
  }

  .demand-request,
  .private-channel {
    width: 170px;
    padding: 14px;
  }

  .ai-stage-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 18px;
  }

  .ai-stage-row small {
    grid-column: 2;
  }

  .conversation-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 18px;
  }

  .loop-story {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .loop-canvas-wrap {
    min-height: 720px;
    margin-top: 34px;
  }

  .loop-canvas {
    display: none;
  }

  .loop-nodes {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--story-line);
  }

  .loop-nodes span,
  .loop-nodes span:nth-child(n) {
    position: relative;
    left: auto;
    top: auto;
    max-width: none;
    border-bottom: 1px solid var(--story-line);
    padding: 14px 0;
  }

  .platform-row,
  .delivery-lines article,
  .architecture-lines article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-row.is-primary strong {
    font-size: 38px;
  }

  .platform-row strong {
    font-size: 28px;
  }

  .workbench-body,
  .workbench-metrics {
    grid-template-columns: 1fr;
  }

  .workbench-sidebar {
    display: none;
  }

  .workbench-topbar {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .workbench-topbar .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .workbench-activity p {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .story-hero-copy {
    padding-top: 42px;
    padding-bottom: 40px;
  }

  .story-hero-title {
    font-size: 44px;
  }

  .story-manifest p,
  .stage-copy-panel h2,
  .wide-heading h2,
  .loop-copy h2,
  .story-final-cta .display-title {
    font-size: 33px;
  }

  .asset-visual,
  .demand-visual,
  .ai-system-visual,
  .workbench-frame {
    min-height: 420px;
  }

  .asset-core {
    width: 148px;
    height: 148px;
  }
}

.simplified-motion .stage-triggers {
  display: none;
}

.simplified-motion .scroll-story {
  min-height: auto;
  padding: 92px 6vw;
}

.simplified-motion .story-sticky {
  position: relative;
  top: auto;
  min-height: auto;
  padding: 0;
}

.simplified-motion .story-stage-copy {
  min-height: auto;
  display: grid;
  gap: 28px;
}

.simplified-motion .stage-copy-panel {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  border-top: 1px solid var(--story-line);
  padding-top: 22px;
}

.simplified-motion .asset-svg-node,
.simplified-motion .workbench-frame,
.simplified-motion .stage-copy-panel,
.simplified-motion .demand-path path,
.simplified-motion .loop-progress,
.simplified-motion .ai-stage-row {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stage-copy-panel {
    opacity: 1;
    transform: none;
  }

  .scroll-story {
    min-height: auto;
  }

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

/* Project entry shell */
.is-project-shell {
  background:
    linear-gradient(rgba(18, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 15, 0.03) 1px, transparent 1px),
    var(--story-paper);
  background-size: 48px 48px;
}

.is-project-shell .site-header {
  background: rgba(243, 238, 226, 0.94);
}

.is-project-shell .brand-mark {
  width: 24px;
  height: 24px;
  opacity: 0.72;
}

.is-project-shell .brand-word {
  font-size: 15px;
  font-weight: 820;
}

.project-hub {
  min-height: calc(100vh - 64px);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  border-left: 1px solid var(--story-line);
  border-right: 1px solid var(--story-line);
}

.project-hub-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--story-line);
  padding: 56px clamp(28px, 5vw, 76px);
}

.project-kicker {
  color: var(--story-orange-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-hub h1,
.project-hold h1 {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.88;
  font-weight: 920;
  letter-spacing: 0;
}

.project-hub-copy p,
.project-hold p {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--story-ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.project-options {
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
}

.project-option {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 172px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.project-option:first-child {
  border-top: 1px solid var(--border);
}

.project-option.is-live {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
}

.project-option:hover,
.project-option:focus-visible {
  border-color: var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.project-option-index {
  color: var(--story-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.project-option-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.project-option-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.project-option-topline strong {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 0.92;
  font-weight: 920;
  letter-spacing: 0;
}

.project-option-topline em {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.project-option.is-live .project-option-topline em {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.project-option-meta {
  color: var(--story-ink);
  font-size: 15px;
  font-weight: 760;
}

.project-option-text {
  max-width: 640px;
  color: var(--story-muted);
  font-size: 14px;
  line-height: 1.55;
}

.project-option-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.project-option:hover .project-option-action,
.project-option:focus-visible .project-option-action {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.project-hold {
  min-height: calc(100vh - 64px);
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 64px 28px;
}

.project-back-link {
  width: fit-content;
  border-bottom: 1px solid var(--story-line-strong);
  color: var(--story-muted);
  font-size: 13px;
  font-weight: 760;
}

.project-hold-panel {
  border-top: 1px solid var(--story-line-strong);
  border-bottom: 1px solid var(--story-line);
  padding: 48px 0 56px;
}

.project-footer .footer-inner {
  border-color: var(--story-line);
}

@media (max-width: 960px) {
  .project-hub {
    grid-template-columns: 1fr;
  }

  .project-hub-copy {
    border-right: 0;
    border-bottom: 1px solid var(--story-line);
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .project-options {
    align-content: start;
    padding-top: 28px;
    padding-bottom: 44px;
  }
}

@media (max-width: 640px) {
  .project-hub {
    border-left: 0;
    border-right: 0;
  }

  .project-option {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding: 24px 20px;
  }

  .project-option-action {
    width: fit-content;
  }

  .project-hub h1,
  .project-hold h1 {
    font-size: 48px;
  }

  .project-hub-copy p,
  .project-hold p {
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .story-hero-system {
    min-height: 0;
    padding: 22px 12px 28px;
  }

  .product-preview {
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(28, 25, 23, 0.12), var(--shadow-md);
    transform: none;
  }

  .preview-chrome {
    grid-template-columns: 48px minmax(0, 1fr) 36px;
    gap: 6px;
    padding-inline: 10px;
  }

  .preview-shell {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .preview-sidebar {
    padding: 12px 6px;
  }

  .preview-brand {
    justify-content: center;
    padding: 0 0 14px;
  }

  .preview-brand strong,
  .preview-nav-item b,
  .preview-sidebar small {
    display: none;
  }

  .preview-nav-item {
    justify-content: center;
    padding: 0;
  }

  .preview-toolbar {
    min-height: 60px;
    padding: 10px 11px;
  }

  .preview-toolbar em {
    padding-inline: 6px;
    font-size: 0;
  }

  .preview-metrics div {
    padding: 10px;
  }

  .preview-metrics strong {
    font-size: 17px;
  }

  .preview-content {
    grid-template-columns: 1fr;
  }

  .preview-relationship {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .preview-signal-row {
    min-height: 68px;
    padding-inline: 10px;
  }

  .preview-message {
    font-size: 8px;
  }

  .noscript {
    margin: 84px 14px 28px;
    padding: 26px 20px;
  }

  .noscript h1,
  .noscript h2 {
    font-size: 38px;
  }

  .noscript ul {
    grid-template-columns: 1fr;
  }

  .noscript-actions {
    display: grid;
  }

  .noscript-actions .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .story-hero-title {
    font-size: 40px;
  }
}

/* MAI Website Visual Foundation & Homepage V1 */
.nav-workspace {
  background: var(--background-secondary);
  color: var(--text-primary);
}

.v1-home {
  --v1-max: 1600px;
  --v1-gutter: clamp(24px, 5.6vw, 92px);
  background: var(--background-primary);
  color: var(--text-primary);
}

.v1-home h1,
.v1-home h2,
.v1-home h3,
.v1-home p {
  text-wrap: pretty;
}

.v1-hero,
.v1-section,
.v1-final {
  max-width: var(--v1-max);
  margin-inline: auto;
  border-inline: 1px solid var(--border-subtle);
}

.v1-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  overflow: hidden;
  background: var(--background-dark);
  color: var(--text-on-dark);
}

.v1-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vh, 108px) clamp(34px, 5vw, 82px) clamp(54px, 7vh, 88px) var(--v1-gutter);
}

.v1-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.v1-kicker > span {
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.v1-hero h1 {
  max-width: 820px;
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(54px, 4.5vw, 72px);
  font-weight: 920;
  letter-spacing: -0.05em;
  line-height: 0.91;
}

.v1-hero h1 span {
  display: inline;
}

:lang(zh) .v1-hero h1 {
  font-family: "Noto Sans SC", "Microsoft YaHei UI", var(--font-body);
  font-size: clamp(56px, 5.6vw, 86px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.v1-hero-copy > p:not(.v1-footnote) {
  max-width: 650px;
  margin: 30px 0 0;
  color: #c9c2b8;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.45;
}

.v1-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.v1-primary.button {
  min-height: 54px;
  border-radius: 0;
  padding-inline: 26px;
  box-shadow: none;
  font-weight: 800;
}

.v1-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 14px;
  font-weight: 780;
}

.v1-secondary::after {
  content: "↗";
  margin-left: 10px;
  font-size: 15px;
}

.v1-secondary:hover,
.v1-secondary:focus-visible {
  color: var(--brand-primary);
}

.v1-footnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 570px;
  margin: clamp(44px, 8vh, 90px) 0 0;
  color: #8f887f;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.v1-footnote > span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 5px;
  background: var(--state-success);
}

.v1-hero-visual {
  min-width: 0;
  display: grid;
  place-items: center;
  border-left: 1px solid #312c27;
  padding: clamp(34px, 5vw, 78px);
  background:
    linear-gradient(#292520 1px, transparent 1px),
    linear-gradient(90deg, #292520 1px, transparent 1px),
    var(--surface-dark);
  background-size: 52px 52px;
}

.signal-console {
  width: min(100%, 720px);
  border: 1px solid #4a433b;
  background: var(--background-dark);
  box-shadow: 18px 18px 0 rgba(194, 65, 12, 0.16);
}

.signal-console-header,
.signal-console-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #35302b;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-console-header span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-on-dark);
  font-weight: 800;
}

.signal-console-header span i {
  width: 7px;
  height: 7px;
  background: var(--brand-primary);
}

.signal-console-header em {
  color: #8f887f;
  font-style: normal;
}

.signal-origin {
  position: relative;
  height: 84px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #35302b;
  color: #928a81;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-origin::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 1px;
  background: #4a433b;
}

.signal-origin i {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: var(--brand-primary);
  animation: v1-signal-route 5.8s linear infinite;
}

.signal-trace-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 28px;
  margin: 0;
  padding: 26px 18px 30px;
  list-style: none;
}

.signal-trace-list li {
  position: relative;
  min-width: 0;
}

.signal-trace-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 31px;
  right: -1px;
  top: 13px;
  height: 1px;
  background: #4a433b;
}

.signal-trace-list li:nth-child(3n)::after {
  display: none;
}

.signal-node {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #675e54;
  background: var(--background-dark);
  color: #a79f95;
  font-family: var(--font-mono);
  font-size: 9px;
}

.signal-trace-list li:last-child .signal-node {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.signal-trace-list li > div {
  min-width: 0;
  padding: 16px 10px 0 0;
}

.signal-trace-list strong,
.signal-trace-list small {
  display: block;
}

.signal-trace-list strong {
  color: var(--text-on-dark);
  font-size: 13px;
  line-height: 1.2;
}

.signal-trace-list small {
  margin-top: 6px;
  color: #7f776e;
  font-size: 9px;
  line-height: 1.35;
}

.signal-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #35302b;
}

.signal-control > span {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #a79f95;
  font-size: 12px;
}

.signal-control > span + span {
  border-left: 1px solid #35302b;
}

.signal-control i {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #675e54;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.signal-control .is-human i {
  border-color: #8d7a5a;
  color: #d9c18e;
}

.signal-console-footer {
  border-top: 1px solid #35302b;
  border-bottom: 0;
  color: #7f776e;
}

.signal-console-footer b {
  flex: 1 1 auto;
  color: var(--brand-primary);
  text-align: center;
}

.signal-console-footer strong {
  color: var(--text-on-dark);
}

@keyframes v1-signal-route {
  0% {
    left: 20px;
    opacity: 0;
  }

  8%,
  88% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 29px);
    opacity: 0;
  }
}

.v1-section {
  padding: clamp(92px, 10vw, 150px) var(--v1-gutter);
  border-top: 1px solid var(--border-subtle);
}

.v1-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.47fr);
  align-items: end;
  gap: clamp(42px, 7vw, 112px);
  margin-bottom: clamp(58px, 7vw, 102px);
}

.v1-section-heading h2,
.v1-final h2 {
  max-width: 950px;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 920;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

:lang(zh) .v1-section-heading h2,
:lang(zh) .v1-final h2 {
  font-family: "Noto Sans SC", "Microsoft YaHei UI", var(--font-body);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.v1-section-heading > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
}

.problem-lines {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  list-style: none;
}

.problem-lines li {
  display: grid;
  grid-template-columns: 74px minmax(220px, 0.55fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.problem-lines code {
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.problem-lines strong {
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.2;
}

.problem-lines span {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.v1-workflow-section {
  background: var(--surface-primary);
}

.v1-workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.v1-workflow::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 13px;
  height: 1px;
  background: var(--border-strong);
}

.v1-workflow li {
  position: relative;
  min-width: 0;
  padding-right: clamp(15px, 2vw, 30px);
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.workflow-node > span {
  width: 27px;
  height: 27px;
  border: 1px solid var(--brand-primary);
  background: var(--surface-primary);
}

.workflow-node code {
  color: var(--brand-primary-hover);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.v1-workflow h3 {
  margin: 30px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1;
}

.v1-workflow p {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.v1-workflow small {
  display: block;
  margin-top: 22px;
  color: var(--brand-primary-hover);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.capability-composition {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.capability-group {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 46px);
}

.capability-group-1 {
  grid-column: span 5;
  background: var(--background-dark);
  color: var(--text-on-dark);
}

.capability-group-2 {
  grid-column: span 4;
  border-block: 1px solid var(--border-strong);
  background: var(--brand-primary);
  color: #fff;
}

.capability-group-3 {
  grid-column: span 3;
  border: 1px solid var(--border-strong);
  background: var(--surface-primary);
}

.capability-group > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-group-1 > span {
  color: var(--brand-primary);
}

.capability-group h3 {
  max-width: 430px;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.7vw, 57px);
  line-height: 1;
}

.capability-group ul {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid currentColor;
  list-style: none;
}

.capability-group li {
  padding: 13px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.capability-group-1 ul {
  color: #918980;
}

.capability-group-1 li,
.capability-group-2 li {
  color: inherit;
}

.v1-evidence {
  border-color: #302b26;
  background: var(--background-dark);
  color: var(--text-on-dark);
}

.v1-evidence .v1-section-heading > p {
  color: #aaa198;
}

.evidence-stage {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 1fr);
  border: 1px solid #4a433b;
  background: var(--surface-dark);
}

.evidence-stage > aside {
  border-right: 1px solid #4a433b;
  padding: 26px 22px;
}

.evidence-stage > aside small {
  color: #8f887f;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-stage > aside ul {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-stage > aside li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #35302b;
  color: #c9c2b8;
  font-size: 13px;
}

.evidence-stage > aside li span {
  width: 6px;
  height: 6px;
  background: #5b544d;
}

.evidence-stage > aside li:first-child span {
  background: var(--brand-primary);
}

.v1-overview-preview {
  min-width: 0;
  min-height: 590px;
  overflow: hidden;
  background: var(--background-primary);
  color: var(--text-primary);
}

.v1-overview-preview > * {
  min-height: 590px;
}

.v1-overview-preview .workbench-frame,
.v1-overview-preview .workbench-showcase,
.v1-overview-preview .product-evidence {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.evidence-note {
  max-width: 760px;
  margin: 22px 0 0 auto;
  color: #8f887f;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.control-paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  border-block: 1px solid var(--border-strong);
}

.control-path {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 58px);
}

.control-path small {
  color: var(--brand-primary-hover);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-path h3 {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 60px);
  line-height: 0.98;
}

.control-path p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.control-path ul {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
}

.control-path li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
}

.control-path.is-human {
  background: var(--surface-primary);
}

.control-junction {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-inline: 1px solid var(--border-subtle);
}

.control-junction span {
  width: 1px;
  flex: 1 1 auto;
  background: var(--border-strong);
}

.control-junction i {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 5px solid var(--background-primary);
  background: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.control-commitment {
  max-width: 920px;
  margin: 44px 0 0 auto;
  padding-left: 30px;
  border-left: 2px solid var(--brand-primary);
  color: var(--text-secondary);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.45;
}

.v1-platform-list {
  border-top: 1px solid var(--border-strong);
}

.v1-platform-list article {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr) 150px;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.v1-platform-list strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1;
}

.v1-platform-list article > span {
  color: var(--text-secondary);
  font-size: 14px;
}

.v1-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v1-status i {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
}

.v1-status.available {
  color: var(--state-success);
}

.v1-status.available i {
  background: var(--state-success);
}

.v1-status.rolling {
  color: var(--state-warning);
}

.v1-status.rolling i {
  background: var(--state-warning);
}

.v1-status.planned {
  color: var(--text-muted);
}

.v1-delivery {
  background: var(--background-secondary);
}

.delivery-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.delivery-models article {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 30px clamp(24px, 3vw, 42px);
}

.delivery-models article + article {
  border-left: 1px solid var(--border-strong);
}

.delivery-models code {
  color: var(--brand-primary-hover);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
}

.delivery-models h3 {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 0.98;
}

.delivery-models p {
  margin: auto 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.v1-final {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.58fr);
  align-items: end;
  gap: clamp(54px, 8vw, 130px);
  border-top: 1px solid #302b26;
  padding: clamp(88px, 10vw, 156px) var(--v1-gutter);
  background: var(--background-dark);
  color: var(--text-on-dark);
}

.v1-final h2 {
  font-size: clamp(56px, 6.2vw, 94px);
}

.v1-final > div:last-child > p {
  margin: 0;
  color: #aaa198;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.6;
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .brand-link {
    padding-inline: 18px;
  }

  .nav-link,
  .lang-toggle {
    padding-inline: 14px;
    font-size: 13px;
  }

  .nav-cta {
    padding-inline: 20px;
  }

  .v1-hero {
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
  }

  .v1-hero-copy {
    padding-right: 34px;
  }

  .v1-workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 54px;
  }

  .v1-workflow::before {
    display: none;
  }

  .v1-workflow li {
    padding-right: 34px;
  }

  .v1-workflow li::before {
    content: "";
    position: absolute;
    left: 13px;
    right: 0;
    top: 13px;
    height: 1px;
    background: var(--border-strong);
  }

  .v1-workflow li:nth-child(3n)::before {
    display: none;
  }
}

@media (max-width: 1080px) {
  .v1-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .v1-hero-copy {
    min-height: 720px;
    padding-right: var(--v1-gutter);
  }

  .v1-hero-visual {
    min-height: 620px;
    border-top: 1px solid #312c27;
    border-left: 0;
  }

  .v1-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .v1-section-heading > p {
    max-width: 680px;
  }

  .capability-composition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-group-1,
  .capability-group-2 {
    grid-column: span 1;
  }

  .capability-group-3 {
    grid-column: 1 / -1;
    min-height: 350px;
  }

  .evidence-stage {
    grid-template-columns: 1fr;
  }

  .evidence-stage > aside {
    border-right: 0;
    border-bottom: 1px solid #4a433b;
  }

  .evidence-stage > aside ul {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 18px;
  }

  .evidence-stage > aside li {
    min-width: 0;
    border-bottom: 0;
    padding: 8px 5px;
    font-size: 11px;
  }

  .control-paths {
    grid-template-columns: 1fr;
  }

  .control-path {
    min-height: 390px;
  }

  .control-junction {
    height: 70px;
    flex-direction: row;
    border-block: 1px solid var(--border-subtle);
    border-inline: 0;
  }

  .control-junction span {
    width: auto;
    height: 1px;
  }

  .delivery-models {
    grid-template-columns: 1fr;
  }

  .delivery-models article {
    min-height: 280px;
  }

  .delivery-models article + article {
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }

  .v1-final {
    min-height: 620px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .v1-final > div:last-child {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .v1-home {
    --v1-gutter: 20px;
  }

  .v1-hero,
  .v1-section,
  .v1-final {
    border-inline: 0;
  }

  .v1-hero-copy {
    min-height: calc(100svh - 64px);
    padding-top: 58px;
    padding-bottom: 46px;
  }

  .v1-hero h1 {
    font-size: clamp(48px, 12vw, 76px);
  }

  :lang(zh) .v1-hero h1 {
    font-size: clamp(46px, 11vw, 68px);
  }

  .v1-hero-visual {
    min-height: 540px;
    padding: 34px 20px;
  }

  .v1-section {
    padding-block: 86px;
  }

  .problem-lines li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px 20px;
    padding: 24px 0;
  }

  .problem-lines span {
    grid-column: 2;
  }

  .v1-workflow {
    grid-template-columns: 1fr 1fr;
  }

  .v1-workflow li:nth-child(3n)::before {
    display: block;
  }

  .v1-workflow li:nth-child(2n)::before {
    display: none;
  }

  .v1-platform-list article {
    grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
    gap: 12px 22px;
    padding: 22px 0;
  }

  .v1-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .v1-platform-list article > span {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 600px) {
  .v1-hero-copy {
    min-height: calc(100svh - 64px);
  }

  .v1-hero-copy > p:not(.v1-footnote) {
    font-size: 17px;
  }

  .v1-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .v1-primary.button,
  .v1-secondary {
    width: 100%;
    justify-content: center;
  }

  .v1-footnote {
    margin-top: 46px;
  }

  .v1-hero-visual {
    min-height: auto;
  }

  .signal-console {
    box-shadow: 9px 9px 0 rgba(194, 65, 12, 0.16);
  }

  .signal-origin {
    height: 66px;
  }

  .signal-trace-list {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 18px;
  }

  .signal-trace-list li {
    min-height: 74px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .signal-trace-list li:not(:last-child)::after,
  .signal-trace-list li:nth-child(n + 4)::before,
  .signal-trace-list li:nth-child(4)::before {
    display: none;
  }

  .signal-trace-list li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 27px;
    bottom: 0;
    width: 1px;
    display: block;
    background: #4a433b;
  }

  .signal-trace-list li > div {
    padding: 3px 0 18px 12px;
  }

  .signal-control {
    grid-template-columns: 1fr;
  }

  .signal-control > span + span {
    border-top: 1px solid #35302b;
    border-left: 0;
  }

  .signal-console-footer {
    gap: 10px;
    padding-inline: 12px;
    font-size: 9px;
  }

  .v1-section-heading h2,
  .v1-final h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .v1-workflow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .v1-workflow li {
    min-height: 200px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 0 0 32px;
  }

  .v1-workflow li::before,
  .v1-workflow li:nth-child(2n)::before,
  .v1-workflow li:nth-child(3n)::before {
    left: 13px;
    right: auto;
    top: 27px;
    bottom: 0;
    width: 1px;
    height: auto;
    display: block;
  }

  .v1-workflow li:last-child::before {
    display: none;
  }

  .v1-workflow li > div:last-child {
    padding-left: 14px;
  }

  .v1-workflow h3 {
    margin-top: 0;
    font-size: 31px;
  }

  .v1-workflow p {
    margin-top: 13px;
  }

  .v1-workflow small {
    margin-top: 16px;
  }

  .capability-composition {
    grid-template-columns: 1fr;
  }

  .capability-group-1,
  .capability-group-2,
  .capability-group-3 {
    grid-column: auto;
    min-height: 380px;
  }

  .capability-group-2 {
    border: 0;
  }

  .evidence-stage > aside ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v1-overview-preview,
  .v1-overview-preview > * {
    min-height: 520px;
  }

  .control-path {
    min-height: 430px;
    padding: 34px 22px;
  }

  .control-commitment {
    margin-top: 34px;
    padding-left: 18px;
    font-size: 18px;
  }

  .v1-platform-list article {
    grid-template-columns: 1fr;
  }

  .v1-platform-list article > span,
  .v1-status {
    grid-column: 1;
    grid-row: auto;
  }

  .v1-status {
    margin-top: 5px;
  }

  .delivery-models article {
    min-height: 320px;
    padding-inline: 0;
  }

  .v1-final {
    min-height: 700px;
    padding-block: 90px;
  }
}

.simplified-motion .signal-origin i {
  animation: none;
  left: calc(100% - 29px);
}

@media (prefers-reduced-motion: reduce) {
  .signal-origin i {
    animation: none;
    left: calc(100% - 29px);
    opacity: 1;
  }

  .v1-home *,
  .v1-home *::before,
  .v1-home *::after {
    scroll-behavior: auto !important;
  }
}

body.mai-csp-scroll-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}
