:root {
  --bg: #090d12;
  --bg-2: #111820;
  --paper: #faf9f5;
  --mist: #bcd1ca;
  --muted: #9eaaa5;
  --muted-2: #6f7b77;
  --line: rgba(188, 209, 202, 0.22);
  --line-strong: rgba(188, 209, 202, 0.42);
  --panel: rgba(250, 249, 245, 0.055);
  --panel-strong: rgba(250, 249, 245, 0.09);
  --accent: #a7f3d0;
  --accent-blue: #93c5fd;
  --accent-warm: #c96442;
  --ink-dark: #10100f;
  --max: 1180px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--paper);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-sans);
  background:
    linear-gradient(90deg, rgba(188, 209, 202, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(188, 209, 202, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #090d12 0%, #101720 46%, #090d12 100%);
  background-size: 72px 72px, 72px 72px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(167, 243, 208, 0.08) 42%, transparent 58%),
    linear-gradient(35deg, transparent 0%, rgba(201, 100, 66, 0.08) 60%, transparent 78%);
  opacity: 0.82;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.nowrap {
  white-space: nowrap;
}

::selection {
  color: var(--ink-dark);
  background: var(--accent);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(250, 249, 245, 0.18), 0 18px 42px rgba(147, 197, 253, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--paper);
}

.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 88px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 13, 18, 0.12), rgba(9, 13, 18, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(250, 249, 245, 0.035) 22px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-board {
  position: absolute;
  width: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 20, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
}

.signal-board-a {
  right: 8%;
  top: 19%;
  padding: 20px;
}

.signal-board-b {
  right: 20%;
  bottom: 19%;
  padding: 22px;
}

.board-title {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.signal-row strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-line {
  width: 100%;
  height: 10px;
  margin: 16px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(147, 197, 253, 0.18));
}

.code-line-short {
  width: 58%;
  background: linear-gradient(90deg, var(--accent-warm), rgba(201, 100, 66, 0.1));
}

.code-line-mid {
  width: 78%;
  background: linear-gradient(90deg, var(--accent-blue), rgba(147, 197, 253, 0.12));
}

.tech-field,
.tech-scan {
  position: absolute;
  overflow: hidden;
}

.tech-field::before,
.tech-field::after,
.tech-scan::before {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  opacity: 0.28;
}

.tech-field::before {
  inset: 28px 38px 42px 32px;
}

.tech-field::after {
  width: 138px;
  height: 138px;
  right: -42px;
  top: -36px;
  transform: rotate(18deg);
}

.tech-beam,
.scan-line,
.tech-node,
.scan-node {
  position: absolute;
  display: block;
}

.tech-beam {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.32;
}

.tech-beam-a {
  left: 20px;
  right: -28px;
  top: 44%;
  transform: rotate(-15deg);
}

.tech-beam-b {
  left: -18px;
  right: 46px;
  top: 66%;
  transform: rotate(11deg);
}

.tech-node {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 22%, transparent);
  box-shadow: 0 0 22px currentColor;
}

.tech-node-a {
  left: 52px;
  top: 48px;
}

.tech-node-b {
  right: 56px;
  top: 88px;
}

.tech-node-c {
  left: 46%;
  bottom: 44px;
}

.tech-scan {
  color: inherit;
}

.tech-scan::before {
  inset: 22px;
}

.scan-line {
  left: 28px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.2;
}

.scan-line-long {
  top: 44px;
  width: 74%;
}

.scan-line-warm {
  top: 78px;
  width: 48%;
}

.scan-line-cool {
  top: 112px;
  width: 62%;
}

.scan-node {
  right: 34px;
  bottom: 30px;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.2;
}

.orbit-line {
  position: absolute;
  border: 1px solid rgba(167, 243, 208, 0.18);
  transform: rotate(-18deg);
}

.orbit-line-one {
  width: 740px;
  height: 220px;
  right: -160px;
  top: 22%;
}

.orbit-line-two {
  width: 620px;
  height: 180px;
  right: 4%;
  bottom: 8%;
  border-color: rgba(147, 197, 253, 0.18);
}

.hero-content {
  max-width: 860px;
}

.hero-brand {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
}

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

h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1.04;
  font-weight: 700;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d7dfdc;
  font-size: 21px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.button.primary {
  color: var(--ink-dark);
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
}

.button.secondary {
  color: var(--paper);
  background: rgba(250, 249, 245, 0.045);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 940px;
  margin: 66px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 249, 245, 0.04);
}

.proof-strip div {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip dt {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.proof-strip dd {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-index,
.case-number {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1.14;
}

h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.24;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.intro-copy {
  color: #d4dbd8;
  font-size: 18px;
  line-height: 1.85;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 20px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.capability-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.capability-card span {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.capability-card h3 {
  margin-top: 46px;
  font-size: 22px;
}

.capability-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.76;
}

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

.section-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.case-stack {
  display: grid;
  gap: 18px;
}

.case-feature {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: stretch;
  min-height: 440px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 249, 245, 0.055);
}

.case-primary {
  background:
    linear-gradient(135deg, rgba(167, 243, 208, 0.1), transparent 52%),
    rgba(250, 249, 245, 0.06);
}

.case-copy {
  align-self: center;
}

.case-copy p:not(.case-number) {
  max-width: 620px;
  color: #d7dfdc;
  font-size: 17px;
  line-height: 1.82;
}

.case-points {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.case-points li {
  position: relative;
  padding-left: 18px;
  line-height: 1.68;
}

.case-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.case-visual {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 11, 16, 0.72);
  overflow: hidden;
}

.cockpit-preview {
  padding: 22px;
}

.cockpit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.dash-node {
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.48;
}

.dash-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.32;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric-tile {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(250, 249, 245, 0.052);
}

.metric-tile.wide {
  grid-column: span 2;
  min-height: 126px;
}

.metric-tile b {
  display: block;
  height: 48px;
  margin-top: 14px;
  background:
    linear-gradient(90deg, var(--accent) 0 18%, transparent 18% 24%, rgba(147, 197, 253, 0.72) 24% 58%, transparent 58% 64%, rgba(201, 100, 66, 0.72) 64% 84%, transparent 84%);
}

.archive-preview {
  position: relative;
  display: grid;
  align-content: end;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(188, 209, 202, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(188, 209, 202, 0.1) 1px, transparent 1px),
    #bcd1ca;
  background-size: 42px 42px;
  color: #141413;
}

.archive-line {
  position: absolute;
  left: 28px;
  top: 28px;
  right: 28px;
  height: 1px;
  background: #141413;
}

.archive-title {
  width: min(330px, 78%);
  height: 94px;
  border: 1px solid currentColor;
  background:
    linear-gradient(90deg, currentColor 0 20%, transparent 20% 30%, currentColor 30% 62%, transparent 62%),
    linear-gradient(90deg, transparent 0 14%, currentColor 14% 46%, transparent 46%),
    linear-gradient(90deg, currentColor 0 34%, transparent 34%);
  background-position: 18px 22px, 18px 46px, 18px 70px;
  background-size: calc(100% - 36px) 6px, calc(100% - 36px) 6px, calc(100% - 36px) 6px;
  background-repeat: no-repeat;
  opacity: 0.72;
}

.archive-card {
  width: 78%;
  height: 62px;
  margin-top: 28px;
  border: 1px solid #141413;
  background: #faf9f5;
}

.archive-card.small {
  width: 52%;
  height: 42px;
  margin-top: 10px;
  background: #c96442;
}

.method-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 22px 0 22px 28px;
  border-left: 1px solid var(--line);
}

.method-list span {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.method-list strong {
  display: block;
  margin-top: 10px;
  font-size: 19px;
}

.method-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  background: linear-gradient(180deg, rgba(250, 249, 245, 0.03), rgba(167, 243, 208, 0.08));
}

.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(250, 249, 245, 0.07);
}

.contact-panel h2 {
  max-width: 700px;
}

.contact-panel p:not(.section-index) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.site-footer {
  padding: 30px 0 42px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.case-page {
  background:
    linear-gradient(90deg, rgba(188, 209, 202, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(188, 209, 202, 0.035) 1px, transparent 1px),
    #090d12;
  background-size: 64px 64px, 64px 64px, auto;
}

.case-hero {
  padding: 88px 0 70px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.case-hero h1 {
  max-width: 940px;
}

.case-hero .hero-lead {
  max-width: 820px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 46px;
}

.case-meta div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.case-meta span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.case-meta strong {
  display: block;
  margin-top: 16px;
  color: var(--paper);
  font-size: 17px;
  line-height: 1.45;
}

.case-body {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
}

.case-aside {
  position: sticky;
  top: 104px;
  height: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.case-aside h2 {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

.case-aside ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.case-detail {
  display: grid;
  gap: 44px;
}

.case-detail article {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.case-detail h2 {
  font-size: 38px;
}

.case-detail p {
  color: #d7dfdc;
  font-size: 18px;
  line-height: 1.86;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.system-map div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.system-map span {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.system-map strong {
  display: block;
  margin-top: 24px;
  font-size: 18px;
}

.system-map p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.64;
}

.demo-cockpit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.demo-panel,
.demo-data-grid div,
.logic-flow div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.demo-panel {
  min-height: 172px;
  padding: 20px;
}

.demo-panel-wide {
  grid-column: span 2;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(167, 243, 208, 0.1), transparent 52%),
    var(--panel-strong);
}

.demo-panel span,
.demo-data-grid span,
.logic-flow span {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.demo-panel strong {
  display: block;
  margin-top: 22px;
  color: var(--paper);
  font-size: 20px;
  line-height: 1.36;
}

.demo-panel p,
.logic-flow p,
.demo-data-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}

.demo-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.demo-data-grid div {
  min-height: 136px;
  padding: 18px;
}

.demo-data-grid strong {
  display: block;
  margin-top: 22px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.logic-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.logic-flow div {
  min-height: 148px;
  padding: 18px;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .signal-board-a {
    right: -90px;
    top: 12%;
    opacity: 0.62;
  }

  .signal-board-b,
  .orbit-line {
    display: none;
  }

  .two-column,
  .case-feature,
  .case-body {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .capability-grid,
  .case-meta,
  .system-map,
  .demo-data-grid,
  .logic-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .nav-shell {
    min-height: 64px;
  }

  .hero {
    padding: 58px 0 30px;
  }

  .hero-brand {
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.12;
  }

  h2 {
    font-size: 30px;
    line-height: 1.22;
  }

  h3 {
    font-size: 23px;
  }

  .hero-lead,
  .intro-copy,
  .case-copy p:not(.case-number),
  .case-detail p {
    font-size: 16px;
    line-height: 1.76;
  }

  .hero-actions,
  .contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-strip,
  .capability-grid,
  .case-meta,
  .system-map,
  .demo-cockpit,
  .demo-data-grid,
  .logic-flow {
    grid-template-columns: 1fr;
  }

  .demo-panel-wide {
    grid-column: span 1;
  }

  .proof-strip div {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 70px 0;
  }

  .case-feature,
  .contact-panel {
    padding: 22px;
  }

  .case-visual {
    min-height: 280px;
  }

  .archive-title {
    font-size: 34px;
  }

  .case-hero {
    padding: 58px 0 54px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.home-page {
  --bg: #bcd1ca;
  --bg-2: #bcd1ca;
  --paper: #141413;
  --mist: #3d3d3a;
  --muted: #5e5d59;
  --muted-2: #74766f;
  --line: #8e9389;
  --fine-line: #a8aca2;
  --line-strong: #141413;
  --panel: color-mix(in srgb, #faf9f5 46%, transparent);
  --panel-strong: color-mix(in srgb, #faf9f5 66%, transparent);
  --accent: #c96442;
  --accent-blue: #3d3d3a;
  --accent-warm: #c96442;
  --ink-dark: #faf9f5;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(20, 20, 19, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 20, 19, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto;
}

body.home-page::before {
  background: none;
  opacity: 0;
}

.home-page .site-header {
  background: color-mix(in srgb, var(--bg) 92%, #faf9f5 8%);
}

.home-page .site-nav {
  color: var(--paper);
}

.home-page .brand {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.home-page .brand-mark {
  border: 1px solid var(--paper);
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(20, 20, 19, 0.08);
}

.home-page .site-nav a {
  color: var(--muted);
}

.home-page .site-nav a:hover {
  color: var(--paper);
}

.home-page .hero {
  min-height: calc(100svh - 72px);
  align-items: stretch;
  padding: 64px 0 38px;
  background: transparent;
}

.home-page .hero::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(20, 20, 19, 0.04) 23px),
    linear-gradient(180deg, rgba(188, 209, 202, 0) 0%, rgba(188, 209, 202, 0.88) 100%);
}

.home-page .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 34px 42px;
  align-items: center;
  max-width: var(--max);
}

.home-page .hero-copy {
  position: relative;
  z-index: 2;
}

.home-page .hero-brand {
  display: inline-block;
  position: relative;
  margin: 0 0 30px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 126px;
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
  background: none;
  -webkit-text-stroke: 0.35px rgba(20, 20, 19, 0.18);
  text-shadow:
    0 1px 0 rgba(250, 249, 245, 0.18),
    0 18px 34px rgba(20, 20, 19, 0.1);
}

.home-page .hero-brand::before {
  content: "";
  position: absolute;
  right: -58px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-top: 1px solid rgba(20, 20, 19, 0.38);
  border-right: 1px solid rgba(20, 20, 19, 0.26);
  opacity: 0.72;
}

.home-page .hero-brand::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.04em;
  bottom: -10px;
  height: 2px;
  background:
    linear-gradient(90deg, var(--paper), rgba(201, 100, 66, 0.72), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(20, 20, 19, 0.28) 18px 19px, transparent 19px 36px);
  box-shadow: 0 8px 0 rgba(20, 20, 19, 0.07);
}

.home-page h1 {
  max-width: 560px;
  color: var(--paper);
  font-size: 62px;
  line-height: 1.02;
  font-weight: 500;
}

.home-page .hero-lead {
  max-width: 640px;
  color: var(--graphite, #3d3d3a);
}

.home-page .button.primary {
  color: #faf9f5;
  border-color: var(--paper);
  background: var(--paper);
}

.home-page .button.secondary {
  color: var(--paper);
  background: color-mix(in srgb, #faf9f5 36%, transparent);
}

.home-page .button:hover {
  border-color: var(--paper);
  background: color-mix(in srgb, #faf9f5 58%, transparent);
  color: var(--paper);
}

.home-page .founder-snapshot {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  align-content: space-between;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--paper);
  background:
    linear-gradient(90deg, rgba(20, 20, 19, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 20, 19, 0.08) 1px, transparent 1px),
    color-mix(in srgb, #faf9f5 58%, transparent);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 18px 22px 0 rgba(20, 20, 19, 0.08);
}

.home-page .snapshot-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.home-page .founder-snapshot h2 {
  margin-top: 76px;
  color: var(--paper);
  font-size: 66px;
  line-height: 0.95;
}

.home-page .founder-role {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.home-page .founder-motto {
  max-width: 360px;
  margin: 32px 0 0;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.12;
}

.home-page .founder-motto span,
.home-page .founder-nameplate strong span {
  display: block;
}

.home-page .proof-strip {
  grid-column: 1 / -1;
  max-width: none;
  margin: 28px 0 0;
  border-color: var(--line);
  background: color-mix(in srgb, #faf9f5 36%, transparent);
}

.home-page .proof-strip div {
  border-color: var(--line);
}

.home-page .proof-strip dt,
.home-page .method-list strong,
.home-page .cockpit-top strong {
  color: var(--paper);
}

.home-page .proof-strip dd,
.home-page .intro-copy,
.home-page .section-summary,
.home-page .case-copy p:not(.case-number),
.home-page .case-points,
.home-page .method-list p,
.home-page .contact-panel p:not(.section-index) {
  color: var(--muted);
}

.home-page .signal-board {
  border-color: var(--line);
  background: color-mix(in srgb, #faf9f5 54%, transparent);
  box-shadow: 18px 22px 0 rgba(20, 20, 19, 0.08);
  opacity: 0.42;
}

.home-page .signal-board-a {
  right: -40px;
  top: 18%;
}

.home-page .signal-board-b {
  right: 8%;
  bottom: 8%;
}

.home-page .board-title {
  color: var(--accent);
}

.home-page .signal-row {
  border-color: var(--line);
  color: var(--muted);
}

.home-page .signal-row strong {
  color: var(--paper);
}

.home-page .code-line {
  background: linear-gradient(90deg, var(--paper), rgba(20, 20, 19, 0.12));
}

.home-page .code-line-short {
  background: linear-gradient(90deg, var(--accent), rgba(201, 100, 66, 0.12));
}

.home-page .code-line-mid {
  background: linear-gradient(90deg, var(--accent-blue), rgba(61, 61, 58, 0.12));
}

.home-page .orbit-line {
  border-color: rgba(20, 20, 19, 0.14);
}

.home-page .section {
  border-bottom-color: var(--line);
}

.home-page .section-index,
.home-page .case-number,
.home-page .text-link,
.home-page .capability-card span,
.home-page .method-list span {
  color: var(--accent);
}

.home-page h2,
.home-page h3 {
  color: var(--paper);
}

.home-page .founder-section {
  background:
    linear-gradient(90deg, rgba(20, 20, 19, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 20, 19, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
}

.home-page .founder-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, #faf9f5 46%, transparent);
}

.home-page .founder-nameplate,
.home-page .founder-bio {
  padding: 34px;
}

.home-page .founder-nameplate {
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.home-page .founder-nameplate h2 {
  font-size: 58px;
  line-height: 0.98;
}

.home-page .founder-nameplate p:not(.section-index) {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.home-page .founder-nameplate strong {
  display: block;
  margin-top: 68px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.16;
  font-weight: 500;
}

.home-page .founder-bio {
  display: grid;
  gap: 22px;
  align-content: center;
}

.home-page .founder-bio p {
  margin: 0;
  color: var(--graphite, #3d3d3a);
  font-size: 19px;
  line-height: 1.88;
}

.home-page .capability-card,
.home-page .case-feature,
.home-page .contact-panel {
  border-color: var(--line);
  background: var(--panel);
}

.home-page .case-primary {
  background:
    linear-gradient(135deg, rgba(201, 100, 66, 0.18), transparent 46%),
    color-mix(in srgb, #faf9f5 42%, transparent);
}

.home-page .case-visual {
  border-color: var(--line);
  background: color-mix(in srgb, #faf9f5 58%, transparent);
}

.home-page .cockpit-top {
  border-bottom-color: var(--line);
}

.home-page .metric-tile {
  border-color: var(--line);
  background: color-mix(in srgb, #faf9f5 54%, transparent);
}

.home-page .metric-tile b {
  background:
    linear-gradient(90deg, var(--paper) 0 18%, transparent 18% 24%, rgba(61, 61, 58, 0.72) 24% 58%, transparent 58% 64%, rgba(201, 100, 66, 0.72) 64% 84%, transparent 84%);
}

.home-page .archive-preview {
  border-color: var(--paper);
}

.home-page .method-list li {
  border-left-color: var(--line);
}

.home-page .contact-section {
  background: var(--bg);
}

.home-page .contact-panel {
  box-shadow: 12px 16px 0 rgba(20, 20, 19, 0.08);
}

.home-page .contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wechat-modal:target {
  display: flex;
}

.wechat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 18, 0.72);
  backdrop-filter: blur(10px);
}

.wechat-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 20, 19, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 20, 19, 0.04) 1px, transparent 1px),
    #faf9f5;
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--paper);
  text-align: center;
  box-shadow: 18px 24px 0 rgba(0, 0, 0, 0.18), 0 34px 90px rgba(0, 0, 0, 0.34);
}

.wechat-card h2 {
  font-size: 34px;
}

.wechat-card p:not(.section-index) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.wechat-card img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 22px auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wechat-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
}

.wechat-note {
  font-size: 13px !important;
}

.home-page .site-footer {
  color: rgba(250, 249, 245, 0.72);
  background: #10100f;
}

.home-page .site-footer a:hover {
  color: #faf9f5;
}

@media (max-width: 980px) {
  .home-page .hero-content,
  .home-page .founder-grid {
    grid-template-columns: 1fr;
  }

  .home-page h1 {
    font-size: 54px;
  }

  .home-page .hero-brand {
    font-size: 88px;
  }

  .home-page .founder-snapshot {
    min-height: 340px;
  }

  .home-page .founder-nameplate {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  body.home-page {
    background-size: 34px 34px, 34px 34px, auto;
  }

  .home-page .hero {
    padding-top: 38px;
  }

  .home-page h1 {
    max-width: 9ch;
    font-size: 42px;
    line-height: 1;
  }

  .home-page .hero-content {
    gap: 24px;
  }

  .home-page .hero-copy {
    order: 1;
  }

  .home-page .hero-brand {
    margin-bottom: 22px;
    font-size: 58px;
    line-height: 1;
  }

  .home-page .hero-brand::before {
    right: -22px;
    top: 7px;
    width: 18px;
    height: 18px;
  }

  .home-page .hero-brand::after {
    bottom: -10px;
    height: 1px;
  }

  .home-page .hero-lead {
    margin-top: 20px;
  }

  .home-page .hero-actions {
    margin-top: 24px;
  }

  .home-page .hero-visual {
    opacity: 0.38;
  }

  .home-page .signal-board-a {
    width: 240px;
    right: -116px;
    top: 4%;
  }

  .home-page .signal-board-a .signal-row {
    padding: 9px 0;
    font-size: 12px;
  }

  .home-page .signal-board-a .board-title {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .home-page .founder-snapshot {
    order: 3;
    min-height: 300px;
    padding: 22px;
    background-size: 18px 18px, 18px 18px, auto;
    box-shadow: 8px 10px 0 rgba(20, 20, 19, 0.08);
  }

  .home-page .snapshot-top {
    display: grid;
    gap: 6px;
  }

  .home-page .founder-snapshot h2,
  .home-page .founder-nameplate h2 {
    font-size: 42px;
  }

  .home-page .founder-role {
    max-width: 260px;
  }

  .home-page .founder-motto,
  .home-page .founder-nameplate strong {
    font-size: 24px;
  }

  .home-page .proof-strip {
    order: 2;
    margin-top: 2px;
  }

  .home-page .proof-strip div {
    min-height: 86px;
    padding: 18px;
  }

  .home-page .founder-nameplate,
  .home-page .founder-bio {
    padding: 22px;
  }

  .home-page .founder-bio p {
    font-size: 16px;
    line-height: 1.78;
  }

  .home-page .contact-actions {
    justify-content: stretch;
  }

  .wechat-card {
    padding: 24px 18px;
  }

  .wechat-card h2 {
    font-size: 28px;
  }
}
