:root {
  --bg: #faf9f5;
  --sand: #f1efe7;
  --sand-2: #e9e6dc;
  --white: #ffffff;
  --line: #e5e2d8;
  --line-strong: #cfcbb9;

  --ink: #141413;
  --ink-2: #52514c;
  --muted: #84827a;

  --sage: #4b6543;
  --sage-hover: #3b5134;
  --sage-soft: #e7eee3;
  --sage-term: #b5ce9e;
  --sage-term-dim: rgba(181, 206, 158, 0.14);
  --amber: #dfb474;

  --term-bg: #131513;
  --term-bar: #1a1d19;
  --term-panel: #161916;
  --term-line: #2a2f29;
  --term-text: #e6e4db;
  --term-muted: #888c83;

  --display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gh-ink: #faf9f5;
  --pill-bg: rgba(250, 249, 245, 0.8);
  --pill-border: rgba(20, 20, 19, 0.09);
  --pill-shadow: 0 10px 28px rgba(20, 20, 19, 0.07), 0 1px 2px rgba(20, 20, 19, 0.04);
  --frame-border: rgba(20, 20, 19, 0.1);
  --frame-shadow: 0 32px 84px rgba(20, 20, 19, 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111311;
  --sand: #181b17;
  --sand-2: #20241f;
  --white: #1c201b;
  --line: rgba(244, 242, 234, 0.09);
  --line-strong: rgba(244, 242, 234, 0.16);

  --ink: #f3f1ea;
  --ink-2: #b4b2a8;
  --muted: #7f7e76;

  --sage: #8fb37e;
  --sage-hover: #a5c694;
  --sage-soft: rgba(143, 179, 126, 0.15);

  --term-bg: #0c0e0c;
  --term-bar: #131613;
  --term-panel: #101310;
  --term-line: #242923;

  --gh-ink: #111311;
  --pill-bg: rgba(22, 25, 21, 0.78);
  --pill-border: rgba(244, 242, 234, 0.12);
  --pill-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --frame-border: rgba(244, 242, 234, 0.1);
  --frame-shadow: 0 32px 84px rgba(0, 0, 0, 0.5);
}

.art-dark { display: none; }
[data-theme="dark"] .art-light { display: none; }
[data-theme="dark"] .art-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  padding-top: 78px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ============================================================
   Header — Open at top, morphs into centered frosted pill on scroll
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  pointer-events: none;
  transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.header-inner {
  pointer-events: auto;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

body.is-scrolled .site-header {
  padding: 12px 20px 0;
}
body.is-scrolled .header-inner {
  max-width: 900px;
  height: 54px;
  padding: 0 9px 0 20px;
  background: var(--pill-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--pill-border);
  box-shadow: var(--pill-shadow);
}
body.is-scrolled .nav {
  gap: 22px;
}
body.is-scrolled .nav-gh {
  border-radius: 999px;
  padding: 7px 14px;
}
body.is-scrolled .nav-paper {
  color: var(--ink-2);
}
body.is-scrolled .nav-paper:hover {
  color: var(--sage);
}
.brand-prompt { color: var(--sage); }

.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
  margin: 0 2px;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.theme-toggle:hover {
  color: var(--ink);
  background: var(--sand);
  border-color: var(--line);
}
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .sh { color: var(--sage); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav a {
  text-decoration: none;
  font-weight: 450;
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-paper {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-paper:hover { color: var(--sage); }
.nav-gh {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gh-ink);
  background: var(--sage);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  transition: background 0.15s ease, border-radius 0.25s ease, padding 0.25s ease;
}
.nav-gh:hover { background: var(--sage-hover); }

/* ============================================================
   Hero — Pure Product Focus + Seamless Sculptural Workbench Art
   ============================================================ */
.hero {
  padding: 46px 0 60px;
  text-align: center;
}
.hero h1.hero-slogan {
  margin: 0 auto 22px;
  max-width: 860px;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.slogan-top {
  display: block;
}
.brand-lockup {
  display: block;
  white-space: nowrap;
}
.hero-prompt {
  display: inline-block;
  height: 0.6em;
  width: auto;
  color: var(--sage);
  vertical-align: -0.015em;
  margin: 0 0.03em 0 0.07em;
}
.hero-prompt .cursor-bar {
  animation: cursorBlink 1.15s steps(1, end) infinite;
}
@keyframes cursorBlink {
  0%, 54% { opacity: 1; }
  55%, 100% { opacity: 0.14; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-prompt .cursor-bar { animation: none; }
}
.hero h1 .accent { color: var(--sage); }

.hero-lead {
  margin: 0 auto 8px;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-sub {
  margin: 0 auto 28px;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.cmd-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cmd-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--term-bg);
  color: #faf9f5;
  border: 1px solid var(--term-line);
  border-radius: 11px;
  padding: 11px 13px 11px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  box-shadow: 0 14px 32px rgba(20, 20, 19, 0.13);
}
[data-theme="dark"] .cmd-pill {
  background: #1a1e19;
  border-color: rgba(244, 242, 234, 0.14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}
.cmd-pill .s { color: var(--sage-term); font-weight: 600; }
.copy-btn {
  font-family: var(--mono);
  font-size: 11px;
  color: #d7d5cc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4.5px 9.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { color: var(--sage-term); border-color: rgba(181, 206, 158, 0.55); }

.secondary-link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  transition: all 0.15s ease;
}
.secondary-link:hover { border-color: var(--sage); color: var(--sage); }

/* Seamless Hero Artwork (Zero visible box edge on #FAF9F5) */
.hero-sculpture {
  margin: 20px auto 0;
  max-width: 860px;
}
.hero-sculpture img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Quiet Product Capabilities Ribbon (No heavy metrics or benchmark bragging) */
.product-ribbon {
  max-width: 880px;
  margin: 18px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.rib-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.rib-item span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ============================================================
   Section 2 — Full-Width Uncropped Vibe Roboting Film
   ============================================================ */
.film-section {
  padding: 84px 0 88px;
}
.sec-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 8px;
}
.sec-row-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sec-row-head p {
  margin: 0;
  max-width: 440px;
  font-size: 15px;
  color: var(--ink-2);
}

.film-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #0c100d;
  border: 1px solid var(--frame-border);
  box-shadow: var(--frame-shadow);
}
.film-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c100d;
  cursor: pointer;
}
.film-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.film-play-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(250, 249, 245, 0.28);
  background: rgba(20, 22, 19, 0.72);
  backdrop-filter: blur(12px);
  color: #faf9f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease;
}
.film-player.is-paused .film-play-overlay {
  opacity: 1;
  pointer-events: auto;
}
.film-play-overlay:hover {
  background: var(--sage);
  transform: translate(-50%, -50%) scale(1.06);
}
.film-scrubber {
  background: var(--sand);
  padding: 10px 20px 0;
  cursor: pointer;
}
.film-scrubber-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
  transition: height 0.15s ease;
}
.film-scrubber:hover .film-scrubber-track { height: 7px; }
.film-scrubber-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--sage);
  transition: width 0.1s linear;
}
.film-bar {
  padding: 11px 20px 13px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
}
.film-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.film-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
  min-width: 78px;
}
.film-caption {
  color: var(--muted);
  font-size: 12.5px;
}
.film-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.mini-btn:hover { border-color: var(--sage); color: var(--sage); }

/* ============================================================
   Section 3 — Exquisitely Crafted Interactive ROS 2 Workbench
   ============================================================ */
.wb-section {
  padding: 84px 0 92px;
}

.wb-app {
  border-radius: 18px;
  overflow: hidden;
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  box-shadow: 0 32px 84px rgba(20, 20, 19, 0.16);
}

/* Integrated Desktop-Grade Toolbar inside the Workbench */
.wb-toolbar {
  height: 50px;
  padding: 0 16px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wb-win-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--term-muted);
}
.win-dots { display: flex; gap: 6px; }
.win-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f352e;
}
.win-dots span:first-child { background: #5a7851; }
.wb-proj { color: var(--term-text); font-weight: 500; }

.wb-segmented {
  display: inline-flex;
  background: #101210;
  border: 1px solid var(--term-line);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.wb-seg-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wb-seg-btn:hover { color: var(--term-text); }
.wb-seg-btn.active {
  background: #242b23;
  color: var(--sage-term);
  font-weight: 600;
}
.wb-status-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sage-term);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wb-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-term);
}

/* Two Synchronized Panes */
.wb-panes {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  min-height: 460px;
}

/* Left: Real Typeable Terminal */
.wb-term-pane {
  border-right: 1px solid var(--term-line);
  display: flex;
  flex-direction: column;
  background: var(--term-bg);
}
.pane-subbar {
  height: 34px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--term-muted);
}
.term-out {
  flex: 1;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12.2px;
  line-height: 1.72;
  color: var(--term-text);
  overflow-y: auto;
}
.t-cmd { color: #ffffff; margin-bottom: 6px; }
.t-cmd .p { color: var(--sage-term); margin-right: 7px; font-weight: 600; }
.t-dim { color: var(--term-muted); }
.t-ok { color: var(--sage-term); }
.t-amber { color: var(--amber); }

.term-quickbar {
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #111311;
}
.t-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #a9ada4;
  background: #1b1f1a;
  border: 1px solid #2b312a;
  border-radius: 5px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.t-chip:hover { color: var(--sage-term); border-color: rgba(181, 206, 158, 0.45); }

.term-prompt-form {
  height: 44px;
  padding: 0 16px;
  border-top: 1px solid var(--term-line);
  background: #0e100e;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.term-prompt-form .p { color: var(--sage-term); font-weight: 600; }
.term-prompt-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #faf9f5;
  font-family: var(--mono);
  font-size: 12.5px;
}
.term-prompt-form .kbd {
  font-size: 10px;
  color: #6b7067;
  border: 1px solid #282d27;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Right: Live Native Artifact Inspector */
.wb-inspector {
  display: flex;
  flex-direction: column;
  background: var(--term-panel);
}
.inspector-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Mode 1: ROS 2 Live Topic Table */
.topic-list {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.topic-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.topic-row:hover, .topic-row.active {
  background: var(--sage-term-dim);
  border-color: rgba(181, 206, 158, 0.35);
}
.topic-name { color: #faf9f5; font-weight: 500; }
.topic-type { color: var(--term-muted); font-size: 10.5px; }
.topic-rate {
  color: var(--sage-term);
  background: rgba(181, 206, 158, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
}
.topic-echo {
  margin: 0 18px 16px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #0e100e;
  border: 1px solid var(--term-line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: #c8c7be;
}
.topic-echo .k { color: var(--sage-term); }

/* Mode 2: High-Density 3D Depth Cloud Inspector */
.cloud-wrap {
  flex: 1;
  position: relative;
  background: #0f120f;
}
.cloud-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.cloud-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: #a6aba2;
  pointer-events: none;
}
.cloud-meta strong { color: var(--amber); font-weight: 500; }

/* Mode 3: Syntax Code + Live Force Telemetry Strip */
.code-pane {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 11.8px;
  line-height: 1.68;
  color: #e2e0d7;
  border-bottom: 1px solid var(--term-line);
}
.code-pane pre { margin: 0; white-space: pre-wrap; }
.ck { color: #d6b68a; }
.cg { color: var(--sage-term); }
.cc { color: #757a71; }
.osc-strip {
  flex: 1;
  min-height: 155px;
  position: relative;
  background: #0f120f;
}
.osc-strip canvas { width: 100%; height: 100%; display: block; }

/* Mode 4: Project Tree & SKILL.md Viewer */
.proj-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  flex: 1;
}
.proj-tree {
  padding: 16px 18px;
  border-right: 1px solid var(--term-line);
  font-family: var(--mono);
  font-size: 11.8px;
  line-height: 1.85;
  color: #c9c8bf;
}
.proj-tree .dir { color: var(--sage-term); font-weight: 500; }
.proj-tree .hi {
  color: #faf9f5;
  background: var(--sage-term-dim);
  padding: 1px 6px;
  border-radius: 4px;
}
.skill-doc {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #d6d4cb;
}
.skill-doc .h { color: var(--sage-term); font-weight: 600; }
.skill-doc .m { color: var(--term-muted); }

/* ============================================================
   Section 4 — Supported Ecosystem (4-Layer Dependency Matrix)
   ============================================================ */
.eco-section {
  padding: 84px 0 92px;
}
.matrix-real-note code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 1.5px 5.5px;
  border-radius: 5px;
  white-space: nowrap;
}
.matrix-board {
  display: grid;
  grid-template-columns: 0.92fr 1.24fr 0.96fr 1.18fr;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.matrix-col {
  padding: 20px 18px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.matrix-col:first-child { padding-left: 0; }
.matrix-col:last-child { border-right: none; padding-right: 0; }
.matrix-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.matrix-col-head span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.matrix-col-head strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
}
.matrix-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mx-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.18s ease;
}
.mx-item strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mx-item span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.mx-item:hover {
  background: var(--sand);
}
.mx-item.active {
  background: var(--sage-soft);
  border-color: rgba(75, 101, 67, 0.25);
}
[data-theme="dark"] .mx-item.active {
  border-color: rgba(143, 179, 126, 0.3);
}
.mx-item.active strong {
  color: var(--sage);
  font-weight: 650;
}
.mx-item.is-compat {
  background: var(--sand);
}
.mx-item.is-dim {
  opacity: 0.32;
}
.mx-item.is-dim:hover {
  opacity: 0.72;
}

.matrix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
}
.mx-tag {
  appearance: none;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 9.5px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.mx-tag:hover { border-color: var(--sage); color: var(--ink); }
.mx-tag.is-compat {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--white);
}
.mx-tag.active {
  color: var(--sage);
  background: var(--sage-soft);
  border-color: var(--sage);
  font-weight: 600;
}
.mx-tag.is-dim {
  opacity: 0.24;
}
.matrix-real-note {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--sand);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.matrix-real-note.visible { display: block; }

.matrix-cmd-bar {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--sand);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.matrix-cmd-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  overflow-x: auto;
}
.matrix-cmd-p { color: var(--sage); font-weight: 600; }
.matrix-cmd-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.matrix-summary {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ============================================================
   Section 5 — Real Hardware Spread (Seamless Studio Artwork)
   ============================================================ */
.hw-section {
  padding: 88px 0 92px;
}
.hw-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.hw-copy h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hw-copy p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.hw-copy code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 2px 6px;
  border-radius: 5px;
}
.hw-shell {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 22px;
}
.hw-shell .p { color: var(--sage); font-weight: 600; margin-right: 8px; }
.paper-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.sec-row-head p code,
.closing-grid p code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.hw-art img {
  width: 100%;
  height: auto;
}
.hw-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
}
.text-arrow.muted-arrow {
  color: var(--ink-2);
  font-weight: 500;
}
.text-arrow:hover { text-decoration: underline; }

/* ============================================================
   Section 5 — Closing Quick Start & Lightweight Research Footnote
   ============================================================ */
.closing-section {
  padding: 72px 0 80px;
}
.closing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.closing-grid h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.closing-grid p {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.quick-shell {
  background: var(--term-bg);
  color: #f0eee6;
  border-radius: 13px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  position: relative;
}
.quick-shell .p { color: var(--sage-term); margin-right: 8px; }
.quick-shell .copy-abs { position: absolute; top: 14px; right: 14px; }

.paper-note {
  padding-top: 2px;
}
.paper-note-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.paper-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
}
.paper-links a {
  color: var(--sage);
  text-decoration: none;
  font-weight: 600;
}
.paper-links a:hover { text-decoration: underline; }
.cite-toggle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
}
.cite-toggle:hover { border-color: var(--sage); color: var(--sage); }

.bibtex-box {
  display: none;
  margin-top: 16px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  overflow-x: auto;
  line-height: 1.6;
}
.bibtex-box.open { display: block; }
.bibtex-box pre { margin: 0; }

/* Minimal Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  font-size: 13px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-links { display: flex; gap: 22px; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--sage); }

@media (max-width: 960px) {
  .wb-panes, .hw-grid, .closing-grid, .proj-split { grid-template-columns: 1fr; }
  .matrix-board { grid-template-columns: repeat(2, 1fr); }
  .matrix-col { padding: 18px 14px; border-bottom: 1px solid var(--line); }
  .matrix-col:nth-child(2n) { border-right: none; }
  .product-ribbon { grid-template-columns: repeat(2, 1fr); }
  .wb-term-pane { border-right: none; border-bottom: 1px solid var(--term-line); }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .wrap, .header-inner { padding-left: 20px; padding-right: 20px; }
  .matrix-board { grid-template-columns: 1fr; }
  .matrix-col { border-right: none; padding: 16px 0; }
  .wb-status-pill { display: none; }
}
