:root {
  --bg: #f4f2ea;
  --surface: #fffefa;
  --ink: #142430;
  --ink-strong: #0b1d29;
  --muted: #58676f;
  --line: #d5d9d4;
  --line-strong: #b8c0bc;
  --accent: #ff633e;
  --accent-soft: #ffe1d7;
  --signal: #a9e85c;
  --signal-soft: #e9f8d4;
  --blue: #3978e8;
  --dark: #102936;
  --dark-soft: #173846;
  --white: #fffefa;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow: 0 24px 70px rgba(16, 41, 54, 0.12);
  --container: 1240px;
  --header-height: 80px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

::selection { color: var(--ink-strong); background: var(--signal); }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section { position: relative; padding: 144px 0; }

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 242, 234, 0.88);
  border-color: rgba(20, 36, 48, 0.1);
  box-shadow: 0 8px 30px rgba(20, 36, 48, 0.04);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 4px;
  place-content: center;
  width: 38px;
  height: 38px;
  background: var(--ink-strong);
  border-radius: 11px;
}

.brand-mark i { width: 5px; height: 5px; background: var(--signal); border-radius: 50%; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--accent); }

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; letter-spacing: 0.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: 0.08em; }

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

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover, .site-nav a.is-active { color: var(--ink-strong); background: rgba(255, 254, 250, 0.7); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.nav-toggle { display: none; }

.hero {
  min-height: min(960px, 100vh);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 64px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(20, 36, 48, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 36, 48, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -8%;
  width: 420px;
  height: 420px;
  background: var(--accent-soft);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.58;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(420px, 5fr);
  align-items: center;
  gap: 72px;
}

.eyebrow, .section-index {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.eyebrow span { width: 9px; height: 9px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }

.hero h1 {
  margin: 0;
  max-width: 830px;
  color: var(--ink-strong);
  font-size: clamp(2.75rem, 4.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero h1 em { color: var(--accent); font-style: normal; }
.hero h1 > span { display: block; }

.hero-lead {
  max-width: 680px;
  margin: 36px 0 0;
  color: #485860;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.75;
}

.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 44px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink-strong); box-shadow: 0 12px 30px rgba(11, 29, 41, 0.16); }
.button-primary:hover { background: var(--accent); }
.button-text { padding-inline: 16px; color: var(--ink); }
.button-text:hover { background: rgba(255, 254, 250, 0.72); }

.pipeline-console {
  position: relative;
  color: #dbe8e8;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.pipeline-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.console-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.live-status { display: flex; align-items: center; gap: 7px; color: var(--signal); }
.live-status i { width: 7px; height: 7px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 5px rgba(169, 232, 92, 0.1); }

.console-canvas { position: relative; z-index: 1; padding: 28px; }

.flow-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.flow-input { width: 48%; margin-inline: auto; justify-content: space-between; }
.stage-kicker { color: #7e9aa5; font-family: var(--font-mono); font-size: 8px; }
.flow-stage strong, .flow-branch strong { color: var(--white); font-size: 14px; }

.flow-connector { position: relative; width: 1px; height: 26px; margin: 0 auto; background: rgba(255, 255, 255, 0.24); }
.flow-connector i {
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: signal-down 2s linear infinite;
}

.flow-main { background: rgba(255, 99, 62, 0.12); border-color: rgba(255, 99, 62, 0.55); }
.stage-index { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.flow-main div { display: flex; flex: 1; flex-direction: column; }
.flow-main small { color: #92a7ae; font-size: 10px; }
.stage-state { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.07em; }
.stage-state.done { color: var(--signal); }

.flow-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.flow-branches::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 72%;
  height: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.flow-branch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.flow-branch > span { grid-row: span 2; color: var(--accent); font-family: var(--font-mono); font-size: 9px; }
.flow-branch small { color: #8298a1; font-size: 9px; }
.flow-branch.is-building { border-style: dashed; }
.flow-branch.is-building > span, .flow-branch.is-building small { color: #dfb56b; }

.flow-branch-chain {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.flow-branch-chain > i { color: var(--accent); font-family: var(--font-mono); font-size: 16px; font-style: normal; }
.branch-step { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; }
.branch-step > span { grid-row: span 2; color: var(--accent); font-family: var(--font-mono); font-size: 9px; }
.branch-step small { color: #8298a1; font-size: 9px; }

.flow-output {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-output span { padding: 5px 8px; color: #c8d5d8; background: rgba(169, 232, 92, 0.08); border: 1px solid rgba(169, 232, 92, 0.2); border-radius: 6px; font-family: var(--font-mono); font-size: 8px; }
.flow-output .output-label { padding-left: 0; color: var(--signal); background: none; border: 0; }

@keyframes signal-down { from { transform: translateY(0); } to { transform: translateY(26px); } }

.section-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; column-gap: 96px; align-items: end; }
.section-heading .section-index { grid-column: 1 / -1; }

.section h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child, .workflow-heading > p, .tools-aside > p:last-of-type {
  max-width: 560px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 18px;
}

.principle-lines { margin-top: 96px; border-top: 1px solid var(--line-strong); }
.principle-lines article {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 48px;
  align-items: center;
  min-height: 118px;
  border-bottom: 1px solid var(--line);
}
.principle-lines span { font-size: clamp(22px, 2.2vw, 34px); font-weight: 750; letter-spacing: -0.03em; }
.principle-lines p { margin: 0; color: var(--muted); font-size: 17px; }

.workflow { background: var(--surface); border-block: 1px solid rgba(20, 36, 48, 0.08); }
.workflow-heading { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 72px; align-items: end; }

.workflow-map {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 0.9fr 1.5fr 0.85fr;
  gap: 44px;
  align-items: center;
  margin-top: 92px;
  padding: 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.workflow-map::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: var(--signal-soft);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.8;
}

.map-rail { position: absolute; top: 50%; right: 8%; left: 8%; height: 1px; background: var(--line-strong); }
.map-rail i {
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  animation: signal-across 5s linear infinite;
}

@keyframes signal-across { from { left: 0; } to { left: 100%; } }

.map-node, .map-stack {
  position: relative;
  z-index: 2;
}

.map-node {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 36, 48, 0.06);
}

.map-node > span { color: var(--accent); font-family: var(--font-mono); font-size: 9px; font-weight: 700; }
.map-node strong { margin-top: 5px; color: var(--ink-strong); font-size: 18px; line-height: 1.3; }
.map-node small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.map-artgen { color: var(--white); background: var(--dark); border-color: var(--dark); transform: scale(1.06); }
.map-artgen strong { color: var(--white); }
.map-artgen small { color: #9db2ba; }
.map-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.map-stack .map-node { padding: 14px; }
.map-stack .map-node strong { font-size: 14px; }
.map-stack .map-node.is-research { border-style: dashed; }
.map-chain {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.map-chain > i { color: var(--accent); font-family: var(--font-mono); font-size: 16px; font-style: normal; }
.map-target { border-color: #7fba36; background: var(--signal-soft); }
.map-target > span { color: #598e1b; }

.tools { padding-bottom: 176px; }
.tools-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 112px; align-items: start; }
.tools-aside { position: sticky; top: calc(var(--header-height) + 60px); }
.tools-aside h2 { font-size: clamp(2.6rem, 4.2vw, 4.25rem); }
.tools-aside > p:last-of-type { margin-top: 32px; }

.tool-progress { display: flex; align-items: center; gap: 7px; margin-top: 48px; }
.tool-progress span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  transition: color 220ms ease, background 220ms ease, border 220ms ease;
}
.tool-progress span.is-active { color: var(--white); background: var(--accent); border-color: var(--accent); }

.tool-list { display: grid; gap: 32px; }
.tool-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(20, 36, 48, 0.045);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 50px rgba(20, 36, 48, 0.08); }
.tool-card.is-research { background: transparent; border-style: dashed; }

.tool-card header { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; }
.tool-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.tool-card header p { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.tool-card h3 { margin: 3px 0 0; color: var(--ink-strong); font-size: 36px; line-height: 1.15; letter-spacing: -0.04em; }
.status { padding: 5px 9px; border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }
.status-active { color: #477b10; background: var(--signal-soft); }
.status-research { color: #8a5b16; background: #fff0d2; }
.tool-summary { margin: 32px 0 10px; color: var(--ink-strong); font-size: 22px; font-weight: 750; letter-spacing: -0.025em; }
.tool-description { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; }

.tool-io { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; border-top: 1px solid var(--line); }
.tool-io div { padding: 20px 18px 0 0; }
.tool-io div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.tool-io dt { color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.tool-io dd { margin: 8px 0 0; color: var(--ink); font-size: 13px; line-height: 1.65; }

.method { background: var(--surface); border-top: 1px solid rgba(20, 36, 48, 0.08); }
.method-heading { max-width: 760px; }
.method-list { margin-top: 96px; border-top: 1px solid var(--line-strong); }
.method-list article {
  display: grid;
  grid-template-columns: 70px 0.65fr 1.35fr;
  gap: 32px;
  align-items: center;
  min-height: 134px;
  border-bottom: 1px solid var(--line);
}
.method-list span { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.method-list h3 { margin: 0; color: var(--ink-strong); font-size: 27px; letter-spacing: -0.03em; }
.method-list p { margin: 0; color: var(--muted); font-size: 16px; }

.game-capability { color: var(--white); background: var(--dark); overflow: hidden; }
.game-capability::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -80px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(169, 232, 92, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(169, 232, 92, 0.04), 0 0 0 140px rgba(169, 232, 92, 0.025);
}
.capability-layout { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 112px; }
.game-capability h2 { color: var(--white); }
.section-index-light { color: #8eabb5; }
.capability-copy { padding-top: 44px; }
.capability-copy > p { margin: 0 0 24px; color: #c2d2d7; font-size: 18px; }
.capability-copy > p:first-child { color: var(--white); font-size: 24px; font-weight: 650; line-height: 1.55; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.capability-tags span { padding: 7px 12px; color: var(--signal); border: 1px solid rgba(169, 232, 92, 0.24); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 10px; }

.about-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 120px; }
.about-copy { padding-top: 56px; }
.about-copy > p { max-width: 680px; margin: 0 0 24px; color: var(--muted); font-size: 18px; }
.about-copy .about-lead { color: var(--ink-strong); font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; line-height: 1.5; letter-spacing: -0.025em; }
.about-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.about-meta dt { color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.about-meta dd { margin: 8px 0 0; color: var(--ink); font-size: 14px; }

.contact { padding-top: 40px; }
.contact-card {
  position: relative;
  padding: 80px;
  text-align: center;
  background: var(--signal);
  border-radius: 28px;
  overflow: hidden;
}
.contact-card::before, .contact-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(20, 36, 48, 0.13);
  border-radius: 50%;
}
.contact-card::before { top: -120px; left: -50px; }
.contact-card::after { right: -60px; bottom: -150px; box-shadow: 0 0 0 50px rgba(20, 36, 48, 0.035); }
.contact-card > * { position: relative; z-index: 1; }
.contact-card .section-index { color: rgba(20, 36, 48, 0.6); }
.contact-card h2 { font-size: clamp(3rem, 6vw, 6.4rem); }
.contact-card > p:not(.section-index) { margin: 24px auto 0; color: rgba(20, 36, 48, 0.75); font-size: 18px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 36px;
  padding: 0 28px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.contact-email:hover { color: var(--ink-strong); background: var(--surface); transform: translateY(-2px); }

.site-footer { padding: 32px 0 48px; }
.footer-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer-layout > div:first-child { display: flex; flex-direction: column; }
.footer-layout strong { font-size: 14px; }
.footer-layout small { margin-top: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.07em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; color: var(--muted); font-size: 12px; }
.footer-legal a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 180ms ease, text-decoration-color 180ms ease; }
.footer-legal a:hover { color: var(--ink); text-decoration-color: currentColor; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 520ms ease, transform 520ms ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr); gap: 40px; }
  .hero h1 { font-size: clamp(2.65rem, 5.2vw, 4.25rem); }
  .workflow-map { grid-template-columns: 0.75fr 0.9fr 1.35fr 0.85fr; gap: 24px; padding: 32px; }
  .tools-layout { gap: 64px; }
  .capability-layout, .about-layout { gap: 72px; }
}

@media (max-width: 860px) {
  :root { --header-height: 72px; }
  .section { padding: 104px 0; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .pipeline-console { width: min(100%, 620px); margin: 24px auto 0; transform: none; }
  .section-heading, .workflow-heading, .capability-layout, .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .section-heading > p:last-child, .workflow-heading > p { max-width: 640px; }
  .workflow-map { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .map-rail { top: 8%; bottom: 8%; left: 50%; width: 1px; height: auto; }
  .map-rail i { top: 0; left: -4px; animation: signal-down-map 5s linear infinite; }
  .map-node { width: min(100%, 420px); margin-inline: auto; }
  .map-artgen { transform: none; }
  .map-stack { grid-template-columns: repeat(2, 1fr); width: min(100%, 620px); margin-inline: auto; }
  .map-stack .map-node { width: auto; margin: 0; }
  .tools-layout { grid-template-columns: 1fr; }
  .tools-aside { position: static; }
  .tool-progress { display: none; }
  .method-list article { grid-template-columns: 50px 0.7fr 1.3fr; }
  .capability-copy, .about-copy { padding-top: 0; }
  .contact-card { padding: 72px 32px; }
}

@keyframes signal-down-map { from { top: 0; } to { top: 100%; } }

@media (max-width: 720px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .section { padding: 88px 0; }

  .brand-copy small { display: none; }

  .nav-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    place-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 180ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 80px 32px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { width: 100%; min-height: 64px; padding: 0; font-size: 30px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a.is-active { background: transparent; }
  .site-nav a.is-active::after { right: 4px; bottom: 50%; left: auto; width: 8px; height: 8px; transform: translateY(50%); }

  .hero { padding-top: 128px; padding-bottom: 88px; }
  .hero h1 { font-size: clamp(2.05rem, 8.8vw, 2.65rem); letter-spacing: -0.045em; }
  .hero-lead { margin-top: 28px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; margin-top: 34px; }
  .button { width: 100%; }

  .pipeline-console { margin-top: 8px; border-radius: 18px; }
  .console-topbar { padding: 14px 15px; }
  .console-title { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .console-canvas { padding: 20px; }
  .flow-input { width: 68%; }
  .flow-branches { grid-template-columns: 1fr; }
  .flow-branches::before {
    display: block;
    top: -24px;
    left: 50%;
    width: 1px;
    height: calc(100% + 24px);
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    transform: none;
  }
  .flow-branch { position: relative; background: var(--dark); }
  .flow-branch-chain { grid-column: auto; grid-template-columns: 1fr; }
  .flow-branch-chain > i { transform: rotate(90deg); justify-self: center; }
  .console-topbar { font-size: 10px; }
  .flow-main small, .flow-branch small, .branch-step small { font-size: 10px; }
  .flow-output span { font-size: 9px; }

  .section h2 { font-size: clamp(2.4rem, 11vw, 3.8rem); }
  .principle-lines { margin-top: 64px; }
  .principle-lines article { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .principle-lines p { font-size: 15px; }

  .workflow-map { margin-top: 60px; padding: 20px; }
  .map-stack { grid-template-columns: 1fr; }
  .map-stack .map-node { width: min(100%, 420px); margin-inline: auto; }
  .map-chain { grid-column: auto; grid-template-columns: 1fr; }
  .map-chain > i { justify-self: center; transform: rotate(90deg); }

  .tool-card { padding: 24px 20px; }
  .tool-card header { grid-template-columns: auto 1fr; gap: 14px; }
  .tool-card header .status { grid-column: 2; justify-self: start; }
  .tool-number { width: 42px; height: 42px; }
  .tool-card h3 { font-size: 31px; }
  .tool-summary { margin-top: 26px; font-size: 20px; }
  .tool-description { font-size: 15px; }
  .tool-io { grid-template-columns: 1fr; }
  .tool-io div { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .tool-io div + div { padding-left: 0; border-left: 0; }

  .method-list { margin-top: 64px; }
  .method-list article { grid-template-columns: 38px 1fr; gap: 8px 16px; padding: 24px 0; }
  .method-list p { grid-column: 2; font-size: 15px; }
  .method-list h3 { font-size: 23px; }

  .game-capability::before { right: -240px; }
  .capability-copy > p { font-size: 16px; }
  .capability-copy > p:first-child { font-size: 21px; }

  .about-copy > p { font-size: 16px; }
  .about-meta { grid-template-columns: 1fr; }
  .contact { padding-top: 20px; }
  .contact-card { width: calc(100% - 24px); padding: 64px 20px; border-radius: 20px; }
  .contact-card > p:not(.section-index) { font-size: 16px; }
  .footer-layout, .footer-legal { align-items: flex-start; flex-direction: column; }
  .footer-legal { justify-content: flex-start; gap: 8px; }
}

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