/* ============================================================
   Euler Motion Intelligence — 欧拉体感科技
   Dark industrial-tech aesthetic
   ============================================================ */

:root {
  --bg-0: #04060c;
  --bg-1: #070b14;
  --bg-2: #0a1020;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.14);

  --text: #e6edf3;
  --text-2: #b4bccb;
  --text-3: #6b7689;
  --text-4: #4a5366;

  /* Brand: teal-cyan glow */
  --accent: oklch(0.82 0.16 180);          /* #00e5c7-ish */
  --accent-2: oklch(0.74 0.14 200);
  --accent-soft: oklch(0.82 0.16 180 / 0.18);
  --accent-glow: oklch(0.82 0.16 180 / 0.5);

  --warn: oklch(0.78 0.16 60);              /* amber */
  --danger: oklch(0.7 0.19 25);             /* red-orange */
  --ok: oklch(0.78 0.15 150);               /* green */

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--cn);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Global decorative grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

main, section, nav, footer { position: relative; z-index: 1; }

/* ============================================================
   Full-page scroll (screen transitions)
   ============================================================ */
.page-viewport {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

.page-track {
  transition: transform 760ms cubic-bezier(0.2, 0.86, 0.28, 1);
  will-change: transform;
}

.page {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

section.page {
  padding: calc(var(--nav-h) + 28px) 0 40px;
}

section.page.tight {
  padding: calc(var(--nav-h) + 20px) 0 36px;
}

.page-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.page-dot:hover,
.page-dot:focus-visible {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.page-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.2);
}

.nav-links a.is-active {
  color: var(--accent);
}

@media (max-width: 900px) {
  .page-dots {
    right: 12px;
    gap: 8px;
  }

  .page-dot {
    width: 6px;
    height: 6px;
  }
}

/* Typography helpers */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; font-weight: 500; }
h3 { font-size: 20px; line-height: 1.3; }

.section-title-cn {
  font-family: var(--cn);
  font-weight: 500;
  color: var(--text);
}

.muted { color: var(--text-2); }
.mono { font-family: var(--mono); }

/* ============================================================
   Layout
   ============================================================ */
.shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 900px) {
  .shell { padding: 0 24px; }
}

section { padding: 100px 0; }
section.tight { padding: 80px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .title-block h2 { margin-top: 14px; }
.section-head .title-block .cn { color: var(--text-3); margin-top: 6px; font-size: 14px; letter-spacing: 0.04em; }
.section-head .lede { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 560px; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 80px 0; }
  .hero .hero-headline { font-size: clamp(38px, 8.5vw, 52px); }
  .hero-headline .hero-line { white-space: normal; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(4,6,12,0.85) 0%, rgba(4,6,12,0.4) 100%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 16px var(--accent-glow));
}

.brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  font-family: "Iowan Old Style", "Songti SC", var(--display), serif;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-sub {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand--footer .brand-logo {
  width: 32px;
  height: 32px;
}

.brand--footer .brand-mark {
  font-size: 1rem;
}

.brand--footer .brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .brand-sub {
    display: none;
  }

  .brand-copy {
    gap: 0;
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: #001a17;
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: all .2s;
  font-family: var(--cn);
}
.nav-cta:hover { box-shadow: 0 0 24px var(--accent-glow); }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.nav-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px oklch(0.78 0.15 150 / 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; gap: 16px; }
  .nav-links, .nav-status { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  padding: 92px 0 44px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero.page {
  min-height: 100vh;
  height: 100vh;
  padding: calc(var(--nav-h) + 20px) 0 32px;
  overflow: hidden;
}
.hero .hero-headline {
  font-size: clamp(48px, 4.15vw, 62px);
  line-height: 1.12;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(400px, 1.04fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
  padding-right: 12px;
}
.hero-copy .eyebrow {
  margin-bottom: 28px;
  font-size: 12px;
}
.hero h1 .accent-line {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.68;
  color: var(--text-2);
  max-width: 620px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 15px;
  font-family: var(--cn);
  text-decoration: none;
  border-radius: 4px;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #001a17;
  font-weight: 600;
  border-color: var(--accent);
}
.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hi);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero video panel */
.hero-viz {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  overflow: hidden;
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: none;
}

/* Industrial scene placeholder */
.viz-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, oklch(0.32 0.05 240 / 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, oklch(0.28 0.04 220 / 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #050810 100%);
}
.viz-bg::before {
  /* scene stripes */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 24px,
    rgba(255,255,255,0.012) 24px 25px
  );
}
.viz-bg::after {
  content: "PLACEHOLDER · 现场视频 / industrial scene · 1920×1080";
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-4);
  letter-spacing: 0.08em;
}

/* Worker silhouette placeholder + skeleton */
.viz-skeleton {
  position: absolute;
  inset: 0;
}
.viz-skeleton svg { width: 100%; height: 100%; }

/* HUD overlays */
.hud {
  position: absolute;
  background: rgba(4,6,12,0.66);
  border: 1px solid var(--line-hi);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  min-width: 0;
}
.hud .hud-label {
  color: var(--text-3);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}
.hud .hud-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.hud .hud-row .v { color: var(--text); }
.hud .hud-row .v.accent { color: var(--accent); }
.hud .hud-row .v.warn { color: var(--warn); }
.hud .hud-row .v.danger { color: var(--danger); }

.hud-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
}
.hud-tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud-tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.hud-bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.hud-br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.hud-risk {
  top: 18px;
  right: 18px;
  min-width: 160px;
}
.hud-risk .score {
  font-family: var(--display);
  font-size: 34px;
  color: var(--warn);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0 4px;
}
.hud-risk .bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  position: relative;
  margin-top: 6px;
  overflow: hidden;
}
.hud-risk .bar::after {
  content: "";
  position: absolute;
  inset: 0 30% 0 0;
  background: linear-gradient(90deg, var(--accent), var(--warn));
}

.hud-kine {
  bottom: 18px;
  left: 18px;
  min-width: 220px;
}
.hud-kine .row { margin-top: 3px; }

.hud-tag {
  position: absolute;
  background: var(--accent);
  color: #001a17;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 2px;
  font-weight: 600;
}

.hud-vec {
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Tickers around the viz */
.viz-tick {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-4);
}
.viz-tick.tl { top: 8px; left: 14px; }
.viz-tick.tr { top: 8px; right: 14px; color: var(--accent); }
.viz-tick.bl { bottom: 6px; left: 14px; }
.viz-tick.br { bottom: 6px; right: 14px; }

/* layer stack indicator on right */
.viz-layers {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%) translateX(100%);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viz-layers .layer {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.viz-layers .layer::before {
  content: "";
  width: 10px; height: 1px;
  background: var(--text-4);
}
.viz-layers .layer.on { color: var(--accent); }
.viz-layers .layer.on::before { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .viz-layers { display: none; }
  .hero { padding-top: 110px; }
}

/* ============================================================
   Pipeline — compare stages (from euler-website capabilities)
   ============================================================ */
#pipeline.pipeline-page {
  padding: calc(var(--nav-h) + 8px) 28px 20px;
  overflow: hidden;
}

#pipeline .capabilities-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  width: min(1380px, 100%);
  height: calc(100vh - var(--nav-h) - 28px);
  margin: 0 auto;
}

#pipeline .capabilities-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: clamp(48px, 8vh, 72px);
}

#pipeline .capabilities-title {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
}

#pipeline .capabilities-hint {
  margin: -8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-4);
  letter-spacing: 0.02em;
}

#pipeline .capabilities-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pipeline .capabilities-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 8px 16px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

#pipeline .capabilities-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

#pipeline .capabilities-step span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#pipeline .capabilities-step strong {
  font-family: var(--cn);
  font-size: 14px;
  font-weight: 600;
}

#pipeline .capabilities-step:hover {
  color: var(--text);
  transform: translateX(2px);
}

#pipeline .capabilities-step.is-active {
  color: var(--text);
}

#pipeline .capabilities-step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

#pipeline .capabilities-main {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}

#pipeline .pipeline-stage-header {
  padding: 36px 0 0;
  min-width: 0;
}

#pipeline .capability-slides-track {
  display: flex;
  width: calc(var(--slide-count, 3) * 100%);
  height: 100%;
  transition: transform 820ms cubic-bezier(0.2, 0.86, 0.28, 1);
  will-change: transform;
}

#pipeline .capability-slide {
  width: calc(100% / var(--slide-count, 3));
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
}

#pipeline .capability-slide-header span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

#pipeline .capability-slide-header h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#pipeline .capability-stage-shell {
  min-height: 0;
  width: min(100%, 1040px);
  margin: 0 auto;
}

#pipeline .capability-stage-frame {
  position: relative;
  height: min(56vh, 560px);
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 28%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

#pipeline .capability-stage-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}

#pipeline .capability-stage-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#pipeline .capability-stage-particles::before,
#pipeline .capability-stage-particles::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.16;
  animation: capabilityDrift 18s linear infinite;
}

#pipeline .capability-stage-particles::after {
  background-size: 96px 96px;
  opacity: 0.1;
  animation-duration: 25s;
  animation-direction: reverse;
}

#pipeline .capability-stage-glass {
  position: absolute;
  top: 6%;
  bottom: 6%;
  width: 30%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  pointer-events: none;
  z-index: 1;
}

#pipeline .capability-stage-glass.is-left { left: 4%; }
#pipeline .capability-stage-glass.is-right { right: 4%; }

#pipeline .capability-stage-image {
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  bottom: 0;
  z-index: 2;
}

#pipeline .capability-stage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: center center;
}

#pipeline .capability-stage-frame[data-stage-index="0"] .capability-stage-image.is-left img {
  object-position: 55% 50%;
}
#pipeline .capability-stage-frame[data-stage-index="0"] .capability-stage-image.is-right img {
  object-position: 45% 50%;
}
#pipeline .capability-stage-frame[data-stage-index="1"] .capability-stage-image.is-left img {
  object-position: 52% 50%;
}
#pipeline .capability-stage-frame[data-stage-index="1"] .capability-stage-image.is-right img {
  object-position: 48% 50%;
}
#pipeline .capability-stage-frame[data-stage-index="2"] .capability-stage-image.is-left img {
  object-position: 53% 50%;
}
#pipeline .capability-stage-frame[data-stage-index="2"] .capability-stage-image.is-right img {
  object-position: 47% 50%;
}

#pipeline .capability-stage-image.is-left img {
  filter: saturate(0.95) brightness(0.94);
}
#pipeline .capability-stage-image.is-right img {
  filter: saturate(1.04) brightness(1.02);
}

#pipeline .capability-stage-beam {
  position: absolute;
  left: 50%;
  top: 18%;
  bottom: 18%;
  width: 200px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, var(--accent-soft), transparent);
  filter: blur(18px);
  z-index: 3;
  pointer-events: none;
}

#pipeline .capability-stage-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  color: var(--text);
  font-size: 1.75rem;
  text-shadow: 0 0 20px var(--accent-glow);
  pointer-events: none;
}

#pipeline .capability-stage-label {
  position: absolute;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: rgba(4, 6, 12, 0.72);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(8px);
}

#pipeline .capability-stage-label.is-left { left: 16px; }
#pipeline .capability-stage-label.is-right { right: 16px; }

#pipeline .capability-stage-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  transform: translateX(-50%);
  z-index: 6;
  cursor: ew-resize;
  touch-action: none;
}

#pipeline .capability-stage-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent-glow);
}

#pipeline .capability-stage-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 16px var(--accent-glow);
}

#pipeline .capability-slide-footer p {
  margin: 0;
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-3);
}

#pipeline .capability-slide-footer p strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-2);
  font-weight: 500;
  font-family: var(--display);
  font-size: 14px;
}

@keyframes capabilityDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(3%, -2%, 0); }
}

@media (max-width: 1100px) {
  #pipeline .capabilities-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--nav-h) - 28px);
  }

  #pipeline .capabilities-sidebar {
    padding-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
  }

  #pipeline .capabilities-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  #pipeline .capabilities-step {
    padding: 6px 12px 6px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  #pipeline .capability-slide {
    padding-top: 8px;
  }

  #pipeline .capability-stage-frame {
    min-height: 300px;
    height: 48vh;
  }
}

/* ============================================================
   Solutions — 3-column industry cards
   ============================================================ */
#solutions.page {
  padding: calc(var(--nav-h) + 52px) 0 20px;
}

/* 应用场景 / Demo Lab — 双栏版头：说明文字统一字号，与左侧标题区底对齐 */
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title lede";
  column-gap: clamp(40px, 5vw, 72px);
  row-gap: 14px;
  align-items: end;
}

#solutions .section-head--split {
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "title"
    "lede";
  row-gap: 16px;
}

.section-head--split .section-head__eyebrow {
  grid-area: eyebrow;
  align-self: start;
}

.section-head--split .section-head__title {
  grid-area: title;
  min-width: 0;
  align-self: end;
}

.section-head--split .section-head__title h2 {
  margin-top: 0;
}

#solutions .section-head__title h2 {
  font-size: clamp(28px, 2.55vw, 42px);
  line-height: 1.14;
  white-space: nowrap;
}

.section-head--split .section-head__lede {
  grid-area: lede;
  margin: 0;
  padding-top: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: none;
  align-self: end;
}

#solutions .section-head__lede {
  max-width: 980px;
}

#solutions .section-head--split,
#lab .section-head--split {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "lede";
    row-gap: 12px;
    align-items: start;
  }

  .section-head--split .section-head__title,
  .section-head--split .section-head__lede {
    align-self: start;
  }

  #solutions .section-head__title h2 {
    white-space: normal;
  }
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 3.6vw, 44px);
  width: 100%;
  margin: 0;
}

.solution-card {
  width: 100%;
  max-width: min(100%, 360px);
  justify-self: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .2s, transform .2s;
}

.solutions-grid .solution-card:nth-child(1) {
  justify-self: start;
}

.solutions-grid .solution-card:nth-child(2) {
  justify-self: center;
}

.solutions-grid .solution-card:nth-child(3) {
  justify-self: end;
}

.solution-card:hover {
  border-color: var(--line-hi);
  transform: translateY(-2px);
}

.solution-media {
  position: relative;
  aspect-ratio: 4 / 4.65;
  overflow: hidden;
  background: var(--bg-2);
}

.solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Fitness card — slightly smaller figure + joint callouts */
.solution-media--fitness img {
  transform: scale(1.02);
  transform-origin: center top;
  object-position: center top;
}

.solution-callouts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.sol-callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(4, 6, 12, 0.88);
  border: 1px solid oklch(0.82 0.16 180 / 0.45);
  border-radius: 2px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.sol-callout::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}

.sol-callout em {
  font-family: var(--cn);
  font-style: normal;
  font-size: 8.5px;
  color: var(--text-2);
  margin-right: 2px;
}

.sol-callout strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.sol-callout--warn {
  color: var(--warn);
  border-color: oklch(0.78 0.16 60 / 0.55);
  background: rgba(32, 12, 6, 0.9);
}

.sol-callout--warn::before {
  background: var(--warn);
  box-shadow: 0 0 6px oklch(0.78 0.16 60 / 0.5);
}

.sol-callout--warn strong {
  color: var(--warn);
}

.solution-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(4, 6, 12, 0.82);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  border-radius: 2px;
  line-height: 1.2;
}

.solution-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 14px;
  min-height: 0;
}

.solution-cn {
  margin: 0;
  font-family: var(--cn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.solution-en {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.solution-desc {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}

.solution-metrics {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.solution-metrics strong {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 960px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 520px;
    margin: 0 auto;
  }

  .solutions-grid .solution-card:nth-child(n) {
    justify-self: stretch;
    max-width: none;
  }

  .solution-media {
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   Demo Lab
   ============================================================ */
.lab-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 640px);
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 40%, var(--accent-soft), transparent 55%),
    var(--bg-1);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.lab-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.lab-media__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lab-media.is-ready .lab-media__video,
.lab-media.is-playing .lab-media__video {
  opacity: 1;
}

.lab-media__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.lab-media.is-ready .lab-media__placeholder,
.lab-media.is-playing .lab-media__placeholder {
  opacity: 0;
  visibility: hidden;
}

.lab-media__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.lab-media__hint {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.lab-media__hint code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .lab-media {
    max-height: 48vh;
    min-height: 220px;
  }
}

/* legacy lab dashboard (unused) */
.lab-frame {
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.lab-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.lab-titlebar .dots {
  display: flex; gap: 6px;
}
.lab-titlebar .dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line-hi);
}
.lab-titlebar .dots span:first-child { background: var(--danger); }
.lab-titlebar .dots span:nth-child(2) { background: var(--warn); }
.lab-titlebar .dots span:nth-child(3) { background: var(--ok); }
.lab-titlebar .breadcrumb { color: var(--text-2); }
.lab-titlebar .breadcrumb b { color: var(--text); font-weight: 500; }
.lab-titlebar .status {
  margin-left: auto;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.lab-titlebar .status .live-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.6s infinite;
}

.lab-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 520px;
}
.lab-video {
  position: relative;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.lab-video .scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 70%, oklch(0.3 0.05 250 / 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #050810 100%);
}
.lab-video .scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 28px, rgba(255,255,255,0.01) 28px 29px);
}
.lab-video .scene::after {
  content: "PLACEHOLDER · LIVE FEED · CAM-04";
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-4);
  letter-spacing: 0.16em;
}
.lab-video .skel { position: absolute; inset: 0; }
.lab-video .skel svg { width: 100%; height: 100%; }

.lab-overlays {
  position: absolute;
  inset: 0;
  padding: 14px;
  pointer-events: none;
}
.lab-overlays .ov {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: rgba(4,6,12,0.7);
  border: 1px solid var(--accent);
  padding: 4px 7px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.lab-side {
  display: flex;
  flex-direction: column;
}
.lab-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.lab-section:last-child { border-bottom: none; flex: 1; }
.lab-section h4 {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab-section h4::before {
  content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}

.risk-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.risk-score .big {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--warn);
}
.risk-score .max { color: var(--text-4); font-family: var(--mono); font-size: 13px; }
.risk-score .label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--warn);
  border: 1px solid var(--warn);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}
.risk-meters {
  margin-top: 16px;
  display: grid; gap: 10px;
}
.risk-meter {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.risk-meter .label { color: var(--text-2); }
.risk-meter .bar { height: 4px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; border-radius: 2px; }
.risk-meter .bar > i {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--warn));
  transform-origin: left;
}
.risk-meter .v { color: var(--text); text-align: right; }

.rule-list { display: grid; gap: 8px; }
.rule {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  background: rgba(255,255,255,0.015);
}
.rule.triggered {
  border-color: oklch(0.78 0.16 60 / 0.5);
  background: oklch(0.78 0.16 60 / 0.05);
}
.rule.triggered .dot { background: var(--warn); box-shadow: 0 0 8px oklch(0.78 0.16 60 / 0.5); }
.rule .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }
.rule .name { color: var(--text); }
.rule .ts { font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: 0.05em; }
.rule .name small { color: var(--text-3); margin-left: 6px; font-size: 11px; }

.action-list { display: grid; gap: 8px; }
.action {
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(0,229,199,0.04);
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}
.action .ts { color: var(--accent); font-family: var(--mono); font-size: 10px; margin-right: 8px; letter-spacing: 0.05em; }

.lab-curve {
  border-top: 1px solid var(--line);
  padding: 16px 22px 22px;
  background: var(--bg-2);
}
.lab-curve-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.lab-curve-head .t {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lab-curve-head .legend {
  display: flex; gap: 16px;
  font-family: var(--mono); font-size: 10px;
}
.lab-curve-head .legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.lab-curve-head .legend span::before {
  content: ""; width: 10px; height: 2px;
}
.lab-curve-head .legend .a::before { background: var(--accent); }
.lab-curve-head .legend .b::before { background: var(--warn); }

.lab-curve svg { width: 100%; height: 80px; display: block; }

@media (max-width: 760px) {
  .lab-body { grid-template-columns: 1fr; }
  .lab-video { border-right: none; border-bottom: 1px solid var(--line); min-height: 320px; }
}

/* ============================================================
   Deployment
   ============================================================ */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.deploy-card {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.deploy-card:hover { border-color: var(--accent); }
.deploy-card .glyph {
  width: 64px; height: 64px;
  border: 1px solid var(--line-hi);
  border-radius: 4px;
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.deploy-card .glyph svg { width: 30px; height: 30px; }
.deploy-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}
.deploy-card .h3-cn { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.deploy-card .desc {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}
.deploy-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.deploy-card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.deploy-card ul li::before {
  content: "+";
  color: var(--accent);
}

@media (max-width: 900px) {
  .deploy-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  border-top: 1px solid var(--line);
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 50% 0%, oklch(0.82 0.16 180 / 0.06) 0%, transparent 60%),
    var(--bg-0);
}

.page-end.contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 28px) 0 0;
  border-top: 0;
}

.page-end .shell.contact-shell {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  padding-top: 0;
  padding-bottom: clamp(20px, 3.5vh, 36px);
  text-align: left;
}

.page-end .page-footer {
  flex: none;
  margin-top: auto;
  padding: 24px 0 18px;
}

#contact .contact-layout,
#contact .contact-main {
  text-align: left;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "main form";
  column-gap: clamp(40px, 4.6vw, 76px);
  row-gap: 16px;
  align-items: start;
  width: 100%;
}

.contact-layout__eyebrow {
  grid-area: eyebrow;
}

.contact-main {
  grid-area: main;
  min-width: 0;
  padding-top: 24px;
}

.contact-title {
  margin: 0;
  max-width: 13.5ch;
  font-size: clamp(40px, 3.9vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contact-title span {
  display: block;
  white-space: nowrap;
}

.contact-title span:nth-child(2) {
  font-size: 0.86em;
  letter-spacing: -0.015em;
}

.contact-intro {
  max-width: 35ch;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

.contact-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.contact-points {
  margin-top: 14px;
  border-top: 1px solid transparent;
}

.contact-point {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.contact-point__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  border: 1px solid oklch(0.82 0.16 180 / 0.18);
  background:
    radial-gradient(circle at 50% 35%, oklch(0.82 0.16 180 / 0.16), transparent 70%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.92), rgba(4, 7, 12, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.contact-point__icon svg {
  width: 24px;
  height: 24px;
}

.contact-point__body {
  min-width: 0;
}

.contact-point__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.contact-point__value {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line-hi);
  background: rgba(8, 13, 22, 0.72);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.contact-side-card {
  grid-area: form;
  width: 100%;
  padding: clamp(24px, 2.8vw, 34px);
  border-radius: 18px;
  border: 1px solid rgba(87, 196, 184, 0.14);
  background:
    radial-gradient(circle at 22% 0%, rgba(0, 229, 199, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(8, 18, 28, 0.94), rgba(7, 11, 20, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 28px 80px rgba(0, 0, 0, 0.32);
}

.contact-side-head {
  margin-bottom: 10px;
}

.contact-side-title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.contact-side-lede {
  margin: 10px 0 0;
  max-width: 34ch;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
}

.contact-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #1fe5d2 0%, #12e0cf 48%, #22f0d3 100%);
  color: #031311;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.contact-mail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 229, 199, 0.22);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "main"
      "form";
    row-gap: 24px;
  }

  .contact-title {
    font-size: clamp(38px, 10vw, 56px);
    max-width: none;
  }

  .contact-intro {
    max-width: none;
  }

  .contact-point {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .contact-point__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .contact-tag {
    min-height: 46px;
    padding: 0 16px;
  }

  .contact-title span {
    white-space: normal;
  }
}

/* ============================================================
   Footer
   ============================================================ */
footer,
.page-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-0);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.footer-inner a { color: var(--text-3); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-inner .spacer { flex: 1; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(2200%); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  47%, 50% { opacity: 0.92; }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  animation: scanline 6s linear infinite;
  pointer-events: none;
  top: 0;
}

/* skeleton stroke animation */
.skel-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 2s ease-out forwards;
}
.skel-line.d2 { animation-delay: .2s; }
.skel-line.d3 { animation-delay: .4s; }
.skel-line.d4 { animation-delay: .6s; }
.skel-line.d5 { animation-delay: .8s; }

/* Section divider */
.section-divider {
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================================
   Image slot styling — for user-droppable anatomical/scene imagery
   ============================================================ */
image-slot {
  --is-bg: transparent;
  --is-border-color: rgba(255,255,255,0.08);
  --is-border-style: solid;
  --is-text-color: var(--text-4);
  --is-label-size: 9px;
  width: 100%; height: 100%;
  display: block;
}

/* Chinese hero headline — different metrics than Latin */
.hero-headline {
  font-family: var(--cn);
  font-weight: 500;
  font-size: clamp(48px, 4.15vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
  max-width: 100%;
}
.hero-headline .hero-line {
  display: block;
  white-space: nowrap;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--display);
}

/* Scenario matrix */
.scenario-matrix {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.sm-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.sm-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.sm-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-4);
  margin-left: auto;
}
.sm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.sm-cell {
  background: var(--bg-1);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text);
  transition: background .2s;
  min-width: 0;
}
.sm-cell:hover { background: var(--bg-2); }
.sm-cell .sm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-4);
  flex-shrink: 0;
}
.sm-cell .sm-name {
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-cell .sm-status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  color: var(--text-3);
  flex-shrink: 0;
  white-space: nowrap;
}
.sm-cell.live .sm-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}
.sm-cell.live .sm-status { color: var(--accent); border-color: var(--accent); }
.sm-cell.pilot .sm-dot { background: oklch(0.78 0.16 60); }
.sm-cell.pilot .sm-status { color: oklch(0.78 0.16 60); border-color: oklch(0.78 0.16 60 / 0.5); }
.sm-cell.ship .sm-dot { background: oklch(0.78 0.15 150); }
.sm-cell.ship .sm-status { color: oklch(0.78 0.15 150); border-color: oklch(0.78 0.15 150 / 0.5); }
.sm-cell.rd .sm-dot { background: var(--text-3); }
.sm-cell.rd .sm-status { color: var(--text-3); }

@media (max-width: 600px) {
  .sm-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero reconstruction frame — 3-panel real-time analysis
   ============================================================ */
.hero-viz.hv-recon {
  aspect-ratio: 16 / 10.2;
  min-height: 360px;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hv-frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #070b14 0%, #050810 100%);
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

/* Title bar */
.hv-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.hv-title-l {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hv-title-l .hv-bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  border-radius: 1px;
}
.hv-title-l .hv-title {
  font-family: var(--cn);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.hv-title-r {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.hv-title-r .rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.4s infinite;
}
.hv-title-r .rec-time { color: var(--text); }

/* Three columns — third slightly wider for muscle labels */
.hv-cols {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.12fr;
  gap: 1px;
  background: var(--line);
  min-height: 0;
}
.hv-col {
  background: linear-gradient(180deg, #070b14 0%, #04060c 100%);
  display: flex;
  flex-direction: column;
  padding: 12px 10px 8px;
  min-height: 0;
}
.hv-col-head {
  font-family: var(--cn);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,229,199,0.12);
  margin-bottom: 8px;
  position: relative;
}
.hv-col-head::after {
  /* short cyan accent line under title */
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.hv-col-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,229,199,0.04) 0%, transparent 60%),
    #050810;
  overflow: hidden;
  border-radius: 2px;
}
.hv-col-stage.portrait {
  display: flex;
  align-items: stretch;
  justify-content: center;
  --hv-body-h: 90%;
}

/* Shared figure stage — identical box = equal body height across panels */
.hv-subject {
  position: relative;
  width: 72%;
  height: var(--hv-body-h);
  max-height: 100%;
  margin: auto 0;
  flex-shrink: 0;
  align-self: center;
}

.hv-col-stage image-slot {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  --is-bg: transparent;
  --is-border-color: transparent;
}

/* Skeleton overlay sits above image */
.hv-skel {
  position: absolute;
  inset: 12% 18% 8%;
  pointer-events: none;
  filter: drop-shadow(0 0 4px oklch(0.88 0.22 110 / 0.5));
}

/* Floor ring for 3D skeleton column */
.hv-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 36px;
  pointer-events: none;
}

/* Corner brackets per column */
.hv-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.hv-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.hv-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.hv-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.hv-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.hv-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
  background: rgba(4,6,12,0.75);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

/* Muscle activation labels on column 3 (HTML overlay — not baked into image) */
.hv-musc {
  position: absolute;
  right: 8px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid oklch(0.82 0.16 180 / 0.35);
  background: rgba(4,6,12,0.75);
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  min-width: 76px;
  text-align: right;
  line-height: 1.35;
}
.hv-musc .n {
  color: var(--text-2);
  font-family: var(--cn);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.hv-musc .v {
  color: var(--accent);
  font-size: 10.5px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.hv-musc-1 { top: 22%; }
.hv-musc-2 { top: 48%; }
.hv-musc-3 { top: 72%; }

/* Leader pin dots on body */
.hv-pin {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hv-pin::after {
  /* leader dotted line outward */
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

/* Bottom metrics strip */
.hv-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
  flex-wrap: wrap;
}
.hv-bot {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}
.hv-bot .k {
  color: var(--text-4);
  letter-spacing: 0.14em;
  font-size: 9px;
  text-transform: uppercase;
}
.hv-bot .v {
  color: var(--text);
  letter-spacing: 0.02em;
}
.hv-bot .v.accent { color: var(--accent); }

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-viz.hv-recon {
    min-height: 340px;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 880px) {
  .hero-viz.hv-recon { aspect-ratio: 4 / 4.2; }
  .hv-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 520px) {
  .hv-cols { grid-template-columns: 1fr; }
  .hv-recon { aspect-ratio: auto; }
  .hv-col-stage { min-height: 220px; }
}

/* hero viz — anatomy stage */
.hero-viz {
  aspect-ratio: 4 / 3.6;
}
.hero-stage {
  position: absolute;
  inset: 28px 200px 24px 28px;
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  overflow: hidden;
}
.hero-stage .anatomy-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, oklch(0.32 0.05 200 / 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #050810 100%);
}
.hero-stage .anatomy-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-stage image-slot {
  position: absolute;
  inset: 0;
}
/* dropped image inherits — show subtle blue tint */
.hero-stage image-slot::part(image) {
  filter: contrast(1.05) saturate(0.7);
}

.anatomy-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.anatomy-placeholder .ph-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-align: center;
  line-height: 1.6;
  border: 1px dashed var(--line-hi);
  padding: 10px 14px;
  background: rgba(0,0,0,0.45);
  max-width: 60%;
}
.anatomy-placeholder .ph-label b {
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.22em;
  font-size: 9px;
}
.anatomy-placeholder .ph-label small {
  display: block;
  margin-top: 6px;
  color: var(--text-4);
  font-size: 8px;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

/* Crosshair + axes that read as 3D measurement, not a stick figure */
.anatomy-axes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.anatomy-axes svg { width: 100%; height: 100%; }

/* Floating measurement label */
.measure {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: rgba(4,6,12,0.85);
  border: 1px solid var(--accent);
  padding: 3px 7px;
  letter-spacing: 0.05em;
  border-radius: 2px;
  pointer-events: none;
}
.measure::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.measure.warn { color: var(--warn); border-color: var(--warn); }
.measure.warn::before { background: var(--warn); box-shadow: 0 0 8px oklch(0.78 0.16 60 / 0.6); }
.measure.line {
  /* render as label with leader-line */
}
.measure-line {
  position: absolute;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
  pointer-events: none;
  transform-origin: left center;
}
.measure-line.warn { background: var(--warn); }

/* Right sidebar — joint coordinate table */
.hero-side {
  position: absolute;
  right: 16px;
  top: 28px;
  bottom: 24px;
  width: 172px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-panel {
  background: rgba(4,6,12,0.72);
  border: 1px solid var(--line-hi);
  padding: 9px 10px;
  font-family: var(--mono);
  border-radius: 2px;
  backdrop-filter: blur(8px);
}
.side-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.side-panel .panel-head .badge {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.joint-table {
  font-size: 9.5px;
  color: var(--text-2);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 2px 8px;
  line-height: 1.5;
}
.joint-table .h {
  color: var(--text-4);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  margin-bottom: 3px;
}
.joint-table .row-cell { font-variant-numeric: tabular-nums; }
.joint-table .row-cell.n { color: var(--text); }
.joint-table .row-cell.warn { color: var(--warn); }

.mini-chart {
  height: 36px;
  display: block;
}
.mini-chart svg { width: 100%; height: 100%; }

.activation-rows {
  display: grid;
  gap: 5px;
  font-size: 10px;
}
.activation-row {
  display: grid;
  grid-template-columns: 60px 1fr 28px;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.activation-row .bar2 {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.activation-row .bar2 > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--warn));
  transform-origin: left;
}
.activation-row .v { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

/* Frame strip along bottom */
.hero-framestrip {
  display: none;
}
.frame-cell {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.frame-cell.live {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.frame-cell image-slot { position: absolute; inset: 0; }
.frame-cell::after {
  content: attr(data-t);
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text-4);
  letter-spacing: 0.06em;
}
.frame-cell.live::after { color: var(--accent); }
.frame-cell .frame-risk {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 10px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warn));
  opacity: 0.7;
}

@media (max-width: 880px) {
  .hero-viz { aspect-ratio: 4 / 3.6; }
  .hero-stage { inset: 24px 24px 100px 24px; }
  .hero-side {
    position: static;
    width: auto;
    flex-direction: row;
    gap: 8px;
    margin: 12px 24px 0;
    overflow-x: auto;
  }
  .hero-side .side-panel { min-width: 200px; }
}

/* ============================================================
   Solution scene — image slot replaces SVG worker
   ============================================================ */
.scene-slot {
  position: absolute;
  inset: 0;
}
.scene-slot image-slot { position: absolute; inset: 0; }
.scene-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene-overlay .corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
}
.scene-overlay .corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.scene-overlay .corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.scene-overlay .corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.scene-overlay .corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.scene-readout {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.scene-readout .l, .scene-readout .r {
  background: rgba(4,6,12,0.7);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.scene-readout .r .v { color: var(--warn); }

/* ============================================================
   Demo lab redesigned — joint coordinate panel
   ============================================================ */
.lab-video .lab-img-slot {
  position: absolute;
  inset: 0;
}
.lab-video .lab-img-slot image-slot { position: absolute; inset: 0; }

.lab-bodychart {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}
.bodychart-row {
  display: grid;
  grid-template-columns: 88px 1fr 30px 28px;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.bodychart-row:last-child { border-bottom: none; }
.bodychart-row .label { color: var(--text-2); font-size: 11px; }
.bodychart-row .heat {
  height: 4px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.bodychart-row .heat > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--warn));
  transform-origin: left;
}
.bodychart-row .heat > i.danger {
  background: linear-gradient(90deg, var(--warn), var(--danger));
}
.bodychart-row .v { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.bodychart-row .pct { color: var(--text-4); text-align: right; font-size: 10px; }
.bodychart-row.high .label { color: var(--warn); }
.bodychart-row.high .v { color: var(--warn); }

/* Joint xyz table in lab side */
.joint-xyz {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  width: 100%;
  border-collapse: collapse;
}
.joint-xyz th {
  text-align: left;
  font-weight: 400;
  color: var(--text-4);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 4px 4px;
  border-bottom: 1px solid var(--line);
}
.joint-xyz th.r { text-align: right; }
.joint-xyz td {
  padding: 3px 4px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.joint-xyz td.r { text-align: right; color: var(--text); }
.joint-xyz tr.hot td { color: var(--warn); }
.joint-xyz tr.hot td.r { color: var(--warn); }
.joint-xyz .ix { color: var(--text-4); font-size: 9px; }

/* Anatomy region heatmap (mini) */
.bodymap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: 6px;
}
.bodymap .cell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
}
.bodymap .cell[data-h="1"] { background: oklch(0.78 0.15 150 / 0.25); }
.bodymap .cell[data-h="2"] { background: oklch(0.82 0.16 180 / 0.35); }
.bodymap .cell[data-h="3"] { background: oklch(0.78 0.16 60 / 0.45); }
.bodymap .cell[data-h="4"] { background: oklch(0.78 0.16 60 / 0.75); }
.bodymap .cell[data-h="5"] { background: oklch(0.7 0.19 25 / 0.7); }

/* Pipe icon style refinement — slightly more anatomical */
.pipe-step .icon { background: var(--bg-2); }
