/* ============================================================
   辨证云 — components.css  (light theme)
   shared cards / metrics / tabs / accordion / timeline / tables
   ============================================================ */

/* ---------- card ---------- */
.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--radius-m);
  background: linear-gradient(165deg, #fffdf8, #fbf7ec);
  border: 1px solid var(--line-1);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.45s var(--ease), background 0.4s, box-shadow 0.45s;
}
.card::before {
  /* corner bracket */
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--gold-500);
  border-right: 1px solid var(--gold-500);
  opacity: 0.45;
  transition: opacity 0.4s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 26px 46px -32px rgba(27, 38, 33, 0.45);
}
.card:hover::before { opacity: 0.9; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--text-2); line-height: 1.8; }
.card .card-link { margin-top: 18px; font-size: 0.84rem; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(35, 136, 102, 0.07), transparent 62%);
}
.card:hover::after { opacity: 1; }

.card-flat { background: rgba(255, 255, 255, 0.5); }
.card-flat:hover { transform: none; }
.card-paper {
  background: #fffdf8;
  border: 1px solid var(--line-ink);
  color: var(--inktext-1);
  box-shadow: 0 16px 34px -30px rgba(27, 38, 33, 0.4);
}
.card-paper h3, .card-paper h4 { color: var(--inktext-0); }
.card-paper p { color: var(--inktext-1); }

/* icon */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(35, 136, 102, 0.28);
  background: radial-gradient(circle at 30% 20%, rgba(35, 136, 102, 0.16), rgba(35, 136, 102, 0.04));
  color: var(--jade-700);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.ico svg { width: 22px; height: 22px; }
.ico-gold { background: radial-gradient(circle at 30% 20%, rgba(184, 151, 90, 0.24), rgba(184, 151, 90, 0.05)); color: var(--gold-400); border-color: var(--line-gold); }
.ico-seal { background: radial-gradient(circle at 30% 20%, rgba(168, 58, 47, 0.16), rgba(168, 58, 47, 0.03)); color: var(--seal-500); border-color: rgba(168, 58, 47, 0.3); }
.ico-lg { width: 58px; height: 58px; border-radius: 14px; }
.ico-lg svg { width: 27px; height: 27px; }

/* index number */
.idx {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  opacity: 0.9;
}

/* ---------- badge / chip ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 136, 102, 0.28);
  background: rgba(35, 136, 102, 0.07);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--jade-700);
  text-transform: uppercase;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade-500);
  box-shadow: 0 0 0 3px rgba(35, 136, 102, 0.16);
  animation: pulse 2.6s infinite;
}
.badge-gold { border-color: var(--line-gold); background: rgba(184, 151, 90, 0.1); color: var(--gold-600); }
.badge-seal { border-color: rgba(168, 58, 47, 0.32); background: rgba(168, 58, 47, 0.07); color: var(--seal-500); }
.badge-plain { background: transparent; color: var(--text-2); border-color: var(--line-1); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ---------- metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-1);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.72);
}
.metric {
  padding: clamp(20px, 2.4vw, 32px);
  border-right: 1px solid var(--line-1);
  position: relative;
}
.metric:last-child { border-right: 0; }
.metric .num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1;
  color: var(--text-0);
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.metric .num em {
  font-style: normal;
  font-size: 0.42em;
  color: var(--jade-600);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.06em;
  transform: translateY(-0.15em);
}
.metric .lbl { margin-top: 12px; font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.04em; }
.metric .sub { margin-top: 4px; font-size: 0.68rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.08em; }
.metric-gold .num em { color: var(--gold-500); }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line-1); }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .metric:last-child { border-bottom: 0; }
}

/* big inline stat row */
.statline { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); }
.statline .item .n {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--text-0);
  line-height: 1.1;
}
.statline .item .t { font-size: 0.76rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.12em; margin-top: 6px; text-transform: uppercase; }

/* ---------- tab system ---------- */
.tabs-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  margin-bottom: 34px;
}
.tab-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-2);
  transition: color 0.25s, background 0.3s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-0); }
.tab-btn[aria-selected="true"] {
  background: linear-gradient(135deg, var(--jade-500), var(--jade-700));
  color: #f7fbf8;
  box-shadow: 0 8px 18px -12px rgba(22, 97, 78, 0.6);
}
.tab-panel { display: none; animation: fadeUp 0.55s var(--ease-out); }
.tab-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line-1); }
.acc-item { border-bottom: 1px solid var(--line-1); }
.acc-q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 4px;
  text-align: left;
  font-size: 1.02rem;
  color: var(--text-0);
  font-family: var(--font-serif);
  transition: color 0.2s;
}
.acc-q:hover { color: var(--jade-700); }
.acc-q .q-idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold-500); letter-spacing: 0.1em; flex-shrink: 0; }
.acc-q .plus {
  margin-left: auto;
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.acc-q .plus::before, .acc-q .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--jade-600);
  transition: transform 0.35s var(--ease);
}
.acc-q .plus::after { transform: rotate(90deg); }
.acc-item.open .acc-q .plus::after { transform: rotate(0); }
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s;
  opacity: 0;
}
.acc-item.open .acc-a { opacity: 1; }
.acc-a-inner { padding: 0 4px 26px 46px; color: var(--text-2); font-size: 0.92rem; max-width: 82ch; }
@media (max-width: 560px) { .acc-a-inner { padding-left: 4px; } }

/* ---------- timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
}
.tl-item { position: relative; padding: 0 0 clamp(30px, 4vw, 52px) clamp(30px, 3.4vw, 46px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-0);
  border: 1px solid var(--jade-500);
  box-shadow: 0 0 0 4px rgba(35, 136, 102, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}
.tl-item:hover::before { background: var(--jade-500); box-shadow: 0 0 0 5px rgba(35, 136, 102, 0.16); }
.tl-year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold-500);
  margin-bottom: 8px;
}
.tl-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.tl-item p { font-size: 0.9rem; color: var(--text-2); max-width: 62ch; }

/* ---------- quote ---------- */
.quote {
  padding: 26px 28px;
  border-left: 2px solid var(--jade-600);
  background: linear-gradient(90deg, rgba(35, 136, 102, 0.08), transparent 75%);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-1);
  line-height: 1.85;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.quote-gold { border-left-color: var(--gold-500); background: linear-gradient(90deg, rgba(184, 151, 90, 0.1), transparent 75%); }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-1); vertical-align: top; }
.tbl th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  border-bottom-color: var(--line-2);
  white-space: nowrap;
}
.tbl td { color: var(--text-2); }
.tbl td:first-child { color: var(--text-0); font-family: var(--font-serif); font-size: 0.98rem; }
.tbl tr:hover td { background: rgba(35, 136, 102, 0.045); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-1); border-radius: var(--radius-m); background: rgba(255, 253, 248, 0.7); }

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  font-size: 0.92rem;
  color: var(--text-2);
  white-space: nowrap;
  border-right: 1px solid var(--line-1);
}
.marquee-item .mono { font-size: 0.66rem; color: var(--gold-500); letter-spacing: 0.14em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- progress / bars ---------- */
.bar-row { display: grid; gap: 16px; }
.bar-item .bar-top { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-2); margin-bottom: 8px; }
.bar-item .bar-top b { font-family: var(--font-mono); color: var(--jade-700); font-weight: 500; }
.bar-track { height: 3px; background: rgba(27, 38, 33, 0.08); border-radius: 3px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--jade-500), var(--jade-400));
  transition: width 1.4s var(--ease-out);
}

/* ---------- code block (dark island) ---------- */
.code {
  border: 1px solid rgba(27, 38, 33, 0.16);
  border-radius: var(--radius-m);
  background: #0b1a16;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  box-shadow: 0 24px 40px -34px rgba(27, 38, 33, 0.55);
}
.code-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(120, 200, 168, 0.14);
  color: rgba(186, 206, 196, 0.55);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.code-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: inline-block; }
.code-top i:nth-child(1) { background: rgba(178, 58, 47, 0.75); }
.code-top i:nth-child(2) { background: rgba(194, 160, 92, 0.75); }
.code-top i:nth-child(3) { background: rgba(47, 165, 131, 0.75); }
.code-body { padding: 18px 20px; overflow-x: auto; color: #b3d6c6; white-space: pre; }
.code-body .k { color: #ecd6a4; }
.code-body .s { color: #8fe0c4; }
.code-body .c { color: rgba(186, 206, 196, 0.45); }
.code-body .f { color: #c9a2ff; }

/* ---------- figure / frame ---------- */
.frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: linear-gradient(160deg, #fffdf8, #f8f3e7);
  box-shadow: 0 20px 40px -36px rgba(27, 38, 33, 0.45);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--jade-600) 14px, transparent 14px) top left / 14px 1px no-repeat,
    linear-gradient(to bottom, var(--jade-600) 14px, transparent 14px) top left / 1px 14px no-repeat,
    linear-gradient(to left, var(--jade-600) 14px, transparent 14px) top right / 14px 1px no-repeat,
    linear-gradient(to bottom, var(--jade-600) 14px, transparent 14px) top right / 1px 14px no-repeat;
  opacity: 0.55;
}
.figure-cap {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-top: 12px;
  text-transform: uppercase;
}
.figure-cap b { color: var(--text-2); font-weight: 500; }

/* ---------- split feature ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 64px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 96px); }
.feature-row.flip .feature-media { order: -1; }
.feature-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin-bottom: 16px; }
.feature-copy .lead { color: var(--text-2); font-size: 0.96rem; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--text-2); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--jade-600);
  rotate: 45deg;
}
.feature-list li b { color: var(--text-0); font-weight: 600; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
}

/* ---------- mini stat card ---------- */
.stat-card {
  padding: 20px 22px;
  border: 1px solid var(--line-1);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
}
.stat-card .n {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-0);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-card .n small { font-family: var(--font-sans); font-size: 0.6em; color: var(--jade-600); }
.stat-card .t { font-size: 0.74rem; color: var(--text-3); margin-top: 7px; letter-spacing: 0.04em; }
.stat-card .d { font-size: 0.75rem; color: var(--text-2); margin-top: 4px; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.75rem;
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid var(--line-1);
  color: var(--text-2);
  background: rgba(255, 253, 248, 0.65);
}
.bg-paper .tag { border-color: var(--line-ink); color: var(--inktext-2); }

/* ---------- divider ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-500); opacity: 0.7; }
.ornament::before, .ornament::after { content: ""; width: clamp(30px, 7vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament span { font-family: var(--font-serif); font-size: 0.8rem; letter-spacing: 0.4em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-l);
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(80% 130% at 6% 0%, rgba(35, 136, 102, 0.12), transparent 58%),
    radial-gradient(70% 120% at 96% 100%, rgba(184, 151, 90, 0.16), transparent 62%),
    linear-gradient(160deg, #fffdf8, #f7f1e2);
  box-shadow: 0 30px 60px -46px rgba(27, 38, 33, 0.4);
}
.cta-band h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); max-width: 15em; line-height: 1.35; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-band .side-note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--text-3); margin-top: 20px; text-transform: uppercase; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- hero (shared) ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 78% 22%, rgba(35, 136, 102, 0.1), transparent 62%),
    radial-gradient(50% 50% at 18% 12%, rgba(184, 151, 90, 0.1), transparent 60%),
    linear-gradient(180deg, #faf7ef, var(--ink-0) 62%);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 58% 55% at 24% 42%, rgba(248, 245, 238, 0.92), transparent 72%),
    linear-gradient(90deg, rgba(248, 245, 238, 0.96) 0%, rgba(248, 245, 238, 0.7) 42%, rgba(248, 245, 238, 0.18) 72%, rgba(248, 245, 238, 0.5) 100%),
    linear-gradient(180deg, rgba(250, 247, 239, 0.7), transparent 24%, transparent 72%, var(--ink-0) 99%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(100deg, #134f40, #7d5f24 52%, #0f4a3b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--text-2); max-width: 54ch; line-height: 1.95; }
.hero-lead b { color: var(--text-0); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line-1);
  font-size: 0.76rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 4px; height: 4px; background: var(--jade-500); rotate: 45deg; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 70px; }
  .hero-side { display: none; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(60px, 8vw, 110px)) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-1);
  background: linear-gradient(180deg, #faf7ef, var(--ink-0));
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 100% at 78% -10%, rgba(35, 136, 102, 0.11), transparent 62%),
    radial-gradient(60% 80% at 10% 110%, rgba(184, 151, 90, 0.1), transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 38, 33, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 38, 33, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 20px; max-width: 22ch; }
.page-hero .lead { color: var(--text-2); font-size: clamp(0.98rem, 1.3vw, 1.1rem); max-width: 64ch; }
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.crumb a:hover { color: var(--jade-700); }
.crumb .sep { opacity: 0.4; }

/* ---------- note strip ---------- */
.notice {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border: 1px dashed rgba(35, 136, 102, 0.35);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
  background: rgba(35, 136, 102, 0.05);
  line-height: 1.75;
}
.notice b { color: var(--jade-700); font-weight: 600; }

/* ---------- inference network figures ---------- */
.nn-figure {
  margin: clamp(30px, 4vw, 52px) auto 0;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 34px 64px -54px rgba(27, 38, 33, 0.5);
}
.nn-figure.is-square { max-width: 880px; }
.nn-figure.is-tall { max-width: 880px; }
.nn-figure.is-portrait { max-width: 840px; }
.nn-figure-img { padding: clamp(12px, 1.8vw, 24px); background: #fffdf8; }
.nn-figure-img img { width: 100%; height: auto; display: block; }
.nn-figcap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-1);
  background: linear-gradient(180deg, #fffdf8, #fbf6ea);
}
.nn-fig-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-0);
}
.nn-figcap .mono {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--gold-500);
}
.nn-fig-note { font-size: 0.7rem; color: var(--text-3); line-height: 1.7; flex: 1 1 260px; }
.nn-fig-link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--jade-700);
  border-bottom: 1px solid rgba(22, 97, 78, 0.28);
  padding-bottom: 1px;
  white-space: nowrap;
}
.nn-fig-link:hover { color: var(--jade-600); border-color: var(--jade-600); }
@media (max-width: 640px) {
  .nn-figcap { padding: 12px 14px; }
  .nn-fig-note { flex-basis: 100%; }
}
