/* ============================================================
   RAG 生产级实战 — 工程仪表盘 / 蓝图主题
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #080b0d;
  --bg-2:      #0b1013;
  --surface:   #0e1518;
  --surface-2: #121b1f;
  --line:      #1c2a2f;
  --line-2:    #28393f;

  /* Text */
  --ink:       #e9f1ef;
  --ink-2:     #b3c4c1;
  --muted:     #6f8480;
  --faint:     #455753;

  /* Signal accents */
  --signal:    #34e0a1;   /* phosphor green — measurement / success / pass */
  --signal-dim:#1c8a64;
  --signal-glow: rgba(52, 224, 161, 0.18);
  --warn:      #ff6b4a;   /* coral — failure / 翻车 / warning */
  --warn-dim:  #b23c25;
  --warn-glow: rgba(255, 107, 74, 0.16);
  --cyan:      #56b6e8;   /* secondary cool accent */

  /* Type */
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint grid + radial glow backdrop, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 540px at 50% -8%, var(--signal-glow), transparent 60%),
    radial-gradient(700px 500px at 100% 18%, var(--warn-glow), transparent 60%);
  pointer-events: none;
}

::selection { background: var(--signal); color: #042018; }

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

/* ---------- Shared layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--signal);
  display: inline-block;
}

.mono { font-family: var(--mono); }
.sig { color: var(--signal); }
.wn { color: var(--warn); }

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 150px); }

h2.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 18px;
  text-wrap: balance;
}
.section-title .accent { color: var(--signal); }

.lead {
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 62ch;
  margin-top: 20px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: #042018;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--signal-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px var(--signal-glow), 0 0 22px var(--signal-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8, 11, 13, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 11, 13, 0.88);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.brand .glyph {
  width: 26px; height: 26px;
  border: 1.5px solid var(--signal);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--signal);
  font-size: 12px;
  position: relative;
  flex: none;
}
.brand .glyph::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 2px;
  background: var(--signal);
  opacity: .12;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 4px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--signal); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.nav-price b { color: var(--signal); font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-price { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(40px, 7vw, 80px);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 6px 13px;
  background: rgba(255,255,255,0.015);
}
.tag.sig { color: var(--signal); border-color: var(--signal-dim); }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .br { color: var(--signal); }
.hero h1 small {
  display: block;
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin-top: 18px;
}

.hero-sub {
  margin-top: 30px;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.price-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  margin-left: 6px;
}
.price-chip .num { font-size: 30px; color: var(--ink); font-weight: 600; }
.price-chip .cur { font-size: 16px; color: var(--signal); }
.price-chip .note { font-size: 12px; color: var(--muted); }

/* staggered reveal — only hide when JS confirms the doc is visible & animating */
.js-anim .reveal { opacity: 0; transform: translateY(20px); }
.js-anim .reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.d1 { transition-delay: .05s; } .d2 { transition-delay: .12s; }
.d3 { transition-delay: .19s; } .d4 { transition-delay: .26s; }
.d5 { transition-delay: .33s; } .d6 { transition-delay: .40s; }

/* ============================================================
   PIPELINE STRIP (hero visual)
   ============================================================ */
.pipeline {
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}
.pipeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.pipeline-head .dots { display: flex; gap: 6px; }
.pipeline-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.pipeline-head .dots i:nth-child(1){ background: var(--warn); }
.pipeline-head .dots i:nth-child(2){ background: #d9b44a; }
.pipeline-head .dots i:nth-child(3){ background: var(--signal); }

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.stage {
  flex: 1 0 auto;
  min-width: 96px;
  text-align: center;
  position: relative;
  padding: 0 6px;
}
.stage .node {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  position: relative;
  z-index: 2;
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.stage.lit .node {
  border-color: var(--signal);
  color: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-glow), 0 0 20px var(--signal-glow);
}
.stage .node svg { width: 22px; height: 22px; }
.stage .lbl { font-family: var(--mono); font-size: 11.5px; color: var(--muted); transition: color .3s; }
.stage.lit .lbl { color: var(--ink); }
.stage .idx { font-family: var(--mono); font-size: 10px; color: var(--faint); display: block; margin-top: 3px; }
/* connector line */
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px; right: -2px;
  width: calc(100% - 52px);
  height: 1px;
  left: calc(50% + 26px);
  background: var(--line-2);
  z-index: 1;
}
.flow-track {
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 2px;
  z-index: 1;
  pointer-events: none;
}
.flow-pulse {
  position: absolute;
  top: -1px;
  width: 60px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  filter: blur(1px);
  animation: pulse-travel 5.5s linear infinite;
}
@keyframes pulse-travel {
  0% { left: -8%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

/* ============================================================
   THESIS — the 翻车 problem
   ============================================================ */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 52px;
}
.thesis-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.thesis-card .state {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.thesis-card .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.thesis-card.demo .state { color: var(--muted); }
.thesis-card.demo .state::before { background: var(--muted); }
.thesis-card.fail { border-color: var(--warn-dim); }
.thesis-card.fail .state { color: var(--warn); }
.thesis-card.fail .state::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.thesis-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.thesis-card.fail h3 { color: var(--warn); }
.thesis-card ul { list-style: none; display: grid; gap: 10px; }
.thesis-card li { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; }
.thesis-card li::before { content: "›"; color: var(--faint); }
.thesis-card.fail li::before { content: "✕"; color: var(--warn); }

.thesis-bridge {
  margin-top: 40px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.thesis-bridge .sig { white-space: nowrap; }

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

/* ============================================================
   SELLING POINTS
   ============================================================ */
.points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.point {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  background: var(--surface);
  position: relative;
  transition: border-color .3s, transform .3s, background .3s;
}
.point:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.point:first-child { grid-column: span 2; }
.point .pt-idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--signal);
  border: 1px solid var(--signal-dim);
  border-radius: 5px;
  padding: 3px 9px;
  display: inline-block;
  margin-bottom: 18px;
}
.point h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.point p { color: var(--ink-2); font-size: 14.5px; }
.point .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.point .tags span {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
@media (max-width: 720px) {
  .points { grid-template-columns: 1fr; }
  .point:first-child { grid-column: span 1; }
}

/* ============================================================
   THREE LAYERS
   ============================================================ */
.layers { margin-top: 52px; display: grid; gap: 14px; }
.layer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.layer::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
}
.layer.l1::before { background: var(--signal); }
.layer.l2::before { background: var(--cyan); }
.layer.l3::before { background: var(--warn); }
.layer .lhead .tier { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.layer .lhead h3 { font-size: 21px; font-weight: 600; margin-top: 6px; }
.layer.l1 .lhead h3 { color: var(--signal); }
.layer.l2 .lhead h3 { color: var(--cyan); }
.layer.l3 .lhead h3 { color: var(--warn); }
.layer .lhead p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.layer .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.layer .chips span {
  font-size: 13px; font-family: var(--mono);
  color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 5px;
  padding: 6px 11px;
  background: var(--bg-2);
}
@media (max-width: 720px) {
  .layer { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   CURRICULUM ACCORDION
   ============================================================ */
.curriculum { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 46px 0 18px;
}
.tier-label::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.tier-label.t0::before { background: var(--muted); }
.tier-label.t1::before { background: var(--signal); }
.tier-label.t2::before { background: var(--cyan); }
.tier-label.t3::before { background: var(--warn); }
.tier-label .count { color: var(--muted); font-size: 12px; margin-left: auto; letter-spacing: 0; }

.module {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s;
}
.module:hover { border-color: var(--line-2); }
.module.open { border-color: var(--signal-dim); }
.module-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}
.module-head .m-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--signal);
  flex: none;
  width: 64px;
}
.module-head .m-title { font-size: 17px; font-weight: 600; flex: 1; }
.module-head .m-title .m-sub { display:block; font-weight: 400; font-size: 13px; color: var(--muted); font-family: var(--sans); margin-top: 3px; }
.module-head .m-free {
  font-family: var(--mono); font-size: 11px; color: var(--signal);
  border: 1px solid var(--signal-dim); border-radius: 100px; padding: 3px 10px; flex: none;
}
.module-head .m-toggle {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--muted);
  transition: transform .3s ease, color .25s, border-color .25s;
}
.module.open .m-toggle { transform: rotate(45deg); color: var(--signal); border-color: var(--signal); }
.module-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1);
}
.module.open .module-body { grid-template-rows: 1fr; }
.module-body > .mb-inner { overflow: hidden; }
.mb-pad { padding: 4px 24px 24px 24px; }
.sub {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
}
.sub:first-child { border-top: none; }
.sub .s-num { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }
.sub h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.sub ul { list-style: none; display: grid; gap: 6px; }
.sub li { font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; text-wrap: pretty; }
.sub li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.deliver {
  margin-top: 16px;
  border-top: 1px dashed var(--line-2);
  padding-top: 16px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2);
}
.deliver .d-tag {
  font-family: var(--mono); font-size: 11px; color: var(--signal);
  letter-spacing: .08em; flex: none; padding-top: 1px;
}
.deliver b { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .module-head { gap: 12px; padding: 16px; }
  .module-head .m-num { width: 48px; font-size: 12px; }
  .sub { grid-template-columns: 1fr; gap: 6px; }
  .mb-pad { padding: 4px 16px 18px; }
}

/* ============================================================
   DELIVERABLES + AUDIENCE
   ============================================================ */
.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.del-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: var(--surface);
  transition: border-color .3s, transform .3s;
}
.del-card:hover { border-color: var(--signal-dim); transform: translateY(-3px); }
.del-card .dc-num { font-family: var(--mono); font-size: 22px; color: var(--signal); display: block; margin-bottom: 12px; }
.del-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.del-card p { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .deliverables { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .deliverables { grid-template-columns: 1fr; } }

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.aud-card { border: 1px solid var(--line); border-radius: 12px; padding: 30px; background: var(--surface); }
.aud-card.fit { border-color: var(--signal-dim); }
.aud-card.nofit { border-color: var(--warn-dim); }
.aud-card .ah { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.aud-card.fit .ah { color: var(--signal); }
.aud-card.nofit .ah { color: var(--warn); }
.aud-card ul { list-style: none; display: grid; gap: 13px; }
.aud-card li { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.aud-card li .mk { flex: none; font-family: var(--mono); }
.aud-card.fit li .mk { color: var(--signal); }
.aud-card.nofit li .mk { color: var(--warn); }
@media (max-width: 720px) { .audience { grid-template-columns: 1fr; } }

.prereq {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 30px;
  background: var(--bg-2);
}
.prereq .ph { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.prereq ul { columns: 2; column-gap: 36px; list-style: none; }
.prereq li { font-size: 14px; color: var(--ink-2); padding: 7px 0 7px 18px; position: relative; break-inside: avoid; }
.prereq li::before { content: "+"; position: absolute; left: 0; color: var(--cyan); font-family: var(--mono); }
@media (max-width: 600px) { .prereq ul { columns: 1; } }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.stat { background: var(--surface); padding: 30px 26px; }
.stat .sv { font-family: var(--mono); font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); font-weight: 600; }
.stat .sv .u { font-size: 15px; color: var(--signal); margin-left: 3px; }
.stat .sl { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finale {
  text-align: center;
  padding-block: clamp(80px, 12vw, 150px);
  position: relative;
}
.finale .quote {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.28;
  max-width: 22ch;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.finale .quote .sig { color: var(--signal); }
.finale .fine {
  font-family: var(--mono); font-size: 14px; color: var(--ink-2);
  max-width: 60ch; margin: 0 auto 40px; line-height: 1.7;
}
.finale-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner .fb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; }
.foot-inner small { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ============================================================
   DECORATIONS — blueprint / oscilloscope / measurement motifs
   ============================================================ */

/* ambient vector-space field (sits above grid, below content) */
#ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6; }

/* corner crosshair ticks (injected into cards by decor.js) */
.tick { position: absolute; width: 11px; height: 11px; pointer-events: none; z-index: 3;
  border: 0 solid var(--line-2); opacity: .7; transition: border-color .35s ease; }
.tick.tl { top: 9px; left: 9px; border-top-width: 1px; border-left-width: 1px; }
.tick.tr { top: 9px; right: 9px; border-top-width: 1px; border-right-width: 1px; }
.tick.bl { bottom: 9px; left: 9px; border-bottom-width: 1px; border-left-width: 1px; }
.tick.br { bottom: 9px; right: 9px; border-bottom-width: 1px; border-right-width: 1px; }
.point:hover .tick, .thesis-card.demo:hover .tick, .del-card:hover .tick,
.aud-card.fit:hover .tick, .layer:hover .tick { border-color: var(--signal); }
.thesis-card.fail:hover .tick, .aud-card.nofit:hover .tick { border-color: var(--warn); }

/* big ghost watermark label per section */
.sec-wm {
  position: absolute; top: clamp(34px, 6vw, 76px); right: clamp(8px, 3vw, 40px);
  font-family: var(--mono); font-weight: 600; font-size: clamp(64px, 13vw, 184px);
  line-height: .78; color: transparent; -webkit-text-stroke: 1px var(--line-2);
  opacity: .4; pointer-events: none; user-select: none; letter-spacing: -.05em; z-index: 0;
  white-space: nowrap;
}
.has-wm { isolation: isolate; }
.has-wm > * { position: relative; z-index: 1; }
.has-wm > .sec-wm { z-index: 0; }

/* measurement tick-ruler under section titles */
.ruler { position: relative; height: 18px; margin: 20px 0 2px; max-width: 440px; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px;
  background: linear-gradient(90deg, var(--signal-dim), var(--line-2) 55%, transparent); opacity: .7; }
.ruler i { position: absolute; top: 4px; width: 1px; height: 8px; background: var(--line-2); }
.ruler i.maj { height: 16px; top: 0; background: var(--signal); box-shadow: 0 0 6px var(--signal-glow); }

/* oscilloscope scan-line divider between sections */
.scope-divider { position: relative; height: 86px; margin: 0; pointer-events: none; }
.scope-divider svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scope-divider .sd-base { stroke: var(--line); stroke-width: 1; fill: none; }
.scope-divider .sd-ticks { stroke: var(--line-2); stroke-width: 1; }
.scope-divider .sd-wave { stroke: var(--signal); stroke-width: 1.6; fill: none; opacity: .5;
  filter: drop-shadow(0 0 5px var(--signal-glow)); stroke-dasharray: 5 11; }
.js-anim .scope-divider .sd-wave { animation: dash-flow 5.5s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -176; } }
.scope-divider .sd-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  fill: var(--faint); text-transform: uppercase; }

/* signal-sweep sheen on hover for feature cards */
.point, .del-card { overflow: hidden; }
.point::after, .del-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -65%; width: 42%;
  background: linear-gradient(100deg, transparent, var(--signal-glow), transparent);
  opacity: 0; pointer-events: none; transform: skewX(-14deg); z-index: 2; }
.js-anim .point:hover::after, .js-anim .del-card:hover::after { opacity: 1; animation: sweep 1.05s ease; }
@keyframes sweep { from { left: -65%; } to { left: 130%; } }

/* thesis oscilloscope readout */
.scope { height: 56px; width: 100%; margin: 2px 0 18px; }
.scope svg { width: 100%; height: 100%; display: block; }
.scope .sc-grid { stroke: var(--line); stroke-width: .5; }
.scope .sc-mid { stroke: var(--line-2); stroke-width: .5; stroke-dasharray: 3 4; }
.scope .sc-trace { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.demo .scope .sc-trace { stroke: var(--signal); filter: drop-shadow(0 0 4px var(--signal-glow)); }
.fail .scope .sc-trace { stroke: var(--warn); filter: drop-shadow(0 0 4px var(--warn-glow)); }
.js-anim .scope .sc-trace { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace-draw 2.2s ease .15s forwards; }
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
.scope .sc-readout { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.demo .scope .sc-readout { fill: var(--signal-dim); }
.fail .scope .sc-readout { fill: var(--warn-dim); }

/* live metric readout (eval point card) */
.metrics { margin-top: 20px; display: grid; gap: 12px; }
.metrics-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--faint); text-transform: uppercase; margin-bottom: 2px; }
.metric { display: grid; grid-template-columns: minmax(96px,140px) 1fr 44px; align-items: center; gap: 14px; }
.metric .mname { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.metric .mbar { height: 6px; border-radius: 3px; background: var(--bg-2); position: relative;
  overflow: hidden; border: 1px solid var(--line); }
.metric .mfill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; width: var(--w, 70%);
  background: linear-gradient(90deg, var(--signal-dim), var(--signal)); box-shadow: 0 0 9px var(--signal-glow); }
.metric .mval { font-family: var(--mono); font-size: 12px; color: var(--signal); text-align: right; }
/* only animate fill-from-zero when a live compositor is confirmed */
.anim-live .metric .mfill { width: 0; transition: width 1.15s cubic-bezier(.2,.7,.2,1); }
.anim-live .metric.fillme .mfill { width: var(--w, 70%); }

/* eyebrow live status dot */
.eyebrow.rec::after { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 8px var(--signal); margin-left: 2px; }
.js-anim .eyebrow.rec::after { animation: rec-blink 1.6s ease-in-out infinite; }
@keyframes rec-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 720px) {
  .sec-wm { font-size: clamp(48px, 18vw, 96px); opacity: .3; }
  .metric { grid-template-columns: 90px 1fr 40px; gap: 10px; }
}

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