/* =========================================================================
   人闪咨询 · 页面区块
   ========================================================================= */

/* ================================================================= HERO */
.hero {
  padding: 125px 0 40px;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 54%, var(--wash) 0%, transparent 58%);
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 15px;
  background: var(--surface);
}
.kicker b { color: var(--ink); font-weight: 500; }

.hero-h1 {
  text-wrap: balance;
  margin: 26px auto 0;
  font-family: var(--cjk);
  font-weight: 640;
  letter-spacing: -0.038em;
  line-height: 1.14;
  font-size: clamp(30px, 3.9vw, 56px);
  position: relative;
  z-index: 2;
}
.hero-h1 .l1 { display: block; }
.hero-h1 .l2 {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-top: 0.52em;
}
.hero-h1 .l2 .lead-word { color: var(--muted); }
.hero-h1 .l2 .ink { color: var(--ink); font-weight: 600; }

/* - rotating role slot - */
.roleslot {
  display: inline-block;
  line-height: 1.3;
  height: 1.3em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  transition: width 0.55s var(--ease-out);
  text-align: left;
}
.roleslot .rw {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.62s var(--ease-out);
}
.roleslot .ri {
  height: 1.3em;
  line-height: 1.3;
  flex: none;
  white-space: nowrap;
  transition: opacity 0.4s;
  color: var(--ink);
  font-weight: 600;
}
.roleslot .ri:not(.on) { opacity: 0.22; }
.h1cursor {
  display: inline-block;
  width: 0.05em;
  height: 0.78em;
  background: var(--ink);
  vertical-align: baseline;
  margin-left: 0.06em;
  transform: translateY(0.04em);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================ THE SCENE */
.scene {
  margin: 44px auto 0;
  max-width: 1344px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(300px, 1.3fr) minmax(260px, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  text-align: left;
}
.gateway-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.gateway-routes path {
  fill: none;
  stroke: rgba(26, 26, 26, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hcell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}
.hcell .sl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 14px;
}
.hcell--list .sl { color: var(--muted2); text-align: left; }

/* - the brief card (agent role) - */
.aghead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.aghead .ag-tile {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--panel2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.aghead .ag-t { min-width: 0; }
.aghead b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); }
.aghead i {
  font-style: normal;
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* - the query input inside the brief card - */
.briefquery { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.briefquery .bq-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rb);
  padding: 9px 12px;
  transition: border-color 0.16s var(--ease), background 0.16s;
}
.briefquery .bq-field:focus-within { border-color: var(--ink); background: var(--surface); }
.briefquery .bq-field span { font-family: var(--mono); font-size: 11px; color: var(--muted2); flex: none; }
.briefquery input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  padding: 0;
}
.briefquery input::placeholder { color: var(--muted2); }
.briefquery .bq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn {
  font-family: var(--cjk);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
  white-space: nowrap;
}
.chipbtn:hover { color: var(--ink); border-color: var(--line2); }
.chipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* - the run steps - */
.hsteps { display: flex; flex-direction: column; gap: 9px; padding-top: 22px; }
.hst {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.hst.in { opacity: 1; transform: none; }
.hst .tg {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--panel2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 10px;
  flex: none;
}
.hst .hst-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hst i { font-style: normal; color: var(--green); font-size: 12px; text-align: right; }
.hst.pending i { color: var(--muted2); }
.hst.pending .tg { background: var(--panel); color: var(--muted2); }

/* - the centre core - */
.hcell--core {
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-top: 26px;
  text-align: center;
}
.hcore { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hcore .glyph { width: 34px; height: 34px; border-radius: 10px; }
.hcore b {
  font-family: var(--cjk);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.hcli {
  background: #ffffffed;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.hcli .okc { color: var(--green); }
.hcli .ps { color: var(--muted2); }
.hfoot {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted2);
  text-align: center;
}
.hfoot b { color: var(--green); font-weight: 500; }

/* - the shortlist cards - */
.htoolrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.htool {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  font-size: 14px;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s;
  position: relative;
  text-align: left;
}
.htool:hover { border-color: var(--muted2); box-shadow: var(--shadow-md); }
.htool .ht-tile {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  background: #fbfaf7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.htool .ht-t { min-width: 0; }
.htool .ht-t b {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.htool .ht-t s {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  color: var(--muted2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.htool .ht-pct {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  flex: none;
  align-self: center;
}
.htool.swap { opacity: 0; transform: translateY(6px); }

/* ============================================================ GIVEBOX */
.givebox {
  max-width: 640px;
  margin: 54px auto 0;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  background: #000;
  color: #fff;
  border: 1px solid #303030;
  padding: 8px;
  text-align: left;
}
.gb-h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f5f7f6;
  padding: 14px 8px 18px;
  margin: 0;
}
.gb-h .gb-ics { display: flex; gap: 5px; }
.gb-h .gb-ics span {
  width: 19px; height: 19px;
  border-radius: 6px;
  background: #ffffff1f;
  color: #d9d9d6;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
}
.gb-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #222;
  border: 1px solid #ffffff0d;
  border-radius: 14px;
  padding: 10px 14px;
}
.gb-cmd .ps { color: #a3a3a3; flex: none; font-size: 13px; font-family: var(--mono); }
.gb-cmd code {
  font-family: var(--mono);
  font-size: 12px;
  color: #f5f7f6;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-height: 1.4em;
}
.gb-cmd code::-webkit-scrollbar { display: none; }
.gb-cmd button {
  flex: none;
  border: 1px solid #f5f7f6;
  background: #f5f7f6;
  color: #171a18;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 9px;
  padding: 5px 11px;
  min-height: 38px;
  min-width: 64px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.gb-cmd button:hover { background: #e5e5e5; border-color: #e5e5e5; }
.gb-cmd button.done { background: #e5e5e5; border-color: #e5e5e5; color: #118453; }

.hero-note {
  margin: 26px auto 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted2);
  text-align: center;
}
.hero-note::before { content: "› "; }
.hero-stats {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 40px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted2);
}
.hero-stats b { color: var(--ink); font-weight: 500; font-size: 13px; }

/* ============================================================== LOGOS */
.logos { padding: 34px 0 0; }
.keywall {
  margin: 34px auto 0;
  border-radius: var(--card-radius);
  background: var(--panel2);
  padding: 26px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.kw-key {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 14px;
  padding: 11px 20px;
  box-shadow: var(--shadow-sm);
}
.kw-key .kg {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--inverse); color: var(--inverse-ink);
  font-size: 12px;
}
.kw-key code { font-family: var(--mono); font-size: 14px; color: var(--ink); font-weight: 500; }
.kw-key .kdots { color: var(--muted2); font-family: var(--mono); font-size: 12px; }
.kw-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.kw-row { overflow: hidden; }
.kw-track { display: flex; gap: 10px; width: max-content; animation: kwslide 46s linear infinite; }
.kw-track.rev { animation-direction: reverse; animation-duration: 54s; }
@keyframes kwslide { to { transform: translateX(-50%); } }
.kw-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 15px 8px 10px;
  box-shadow: var(--shadow-sm);
  flex: none;
  font-family: var(--cjk);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}
.kw-chip img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; flex: none; }
.kw-chip .kw-mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.kw-chip .kw-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted2);
  text-transform: uppercase;
}

/* ============================================================ CATALOG */
.svc { padding: 110px 0 0; }
.svc-head { text-align: center; max-width: 720px; margin: 22px auto 0; }
.svc-head h2 {
  text-wrap: balance;
  font-family: var(--cjk);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.16;
  font-size: clamp(26px, 3.1vw, 44px);
  color: var(--ink);
}
.svc-head p { margin-top: 18px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.svc-head p b { color: var(--ink); font-weight: 600; }

.catwrap { max-width: 1184px; margin: 54px auto 0; }
.pcatgrp + .pcatgrp { margin-top: 8px; }
.pcat {
  font-family: var(--cjk);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 42px 0 20px;
}
.pcat span.pn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted2);
  letter-spacing: 0.1em;
}
.pcat em {
  font-style: normal;
  font-family: var(--cjk);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted2);
}
.pcat::after { content: ""; height: 1px; background: var(--line); flex: 1; align-self: center; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pcard {
  border-radius: var(--r);
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pcard:hover { border-color: var(--muted2); box-shadow: var(--shadow-lg); }
.pcard .ph {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: #fbfaf7;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.pcard .ph .pi {
  width: 100%; height: 100%;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.pcard .pt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pcard .pt span {
  font-family: var(--cjk);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard s {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted2);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-foot {
  margin: 46px auto 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.svc-foot::before { content: ""; width: 60px; height: 1px; background: var(--line); }

/* ============================================================ BENEFITS */
.bens { padding: 40px 0 0; }
.ben {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}
.ben.flip .bentext { order: 2; }
.bennum { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--muted2); }
.ben h3 {
  text-wrap: balance;
  font-family: var(--cjk);
  font-weight: 650;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  margin: 12px 0 0;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.ben h3 i { font-style: normal; }
.ben p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 16px 0 0; }
.ben p b { color: var(--ink); font-weight: 600; }
.benmeta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted2);
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
}
.benmeta span::before { content: "› "; color: var(--muted2); }

/* - the window artifact - */
.win {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.wbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.wbar i {
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line2);
  display: block;
}
.wt { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wt b { color: var(--ink); font-weight: 500; }
.wf {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  background: var(--panel);
  text-align: center;
}
.wbody { padding: 20px 22px 22px; }

/* - quadrant plot - */
.plot { position: relative; }
.plot-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted2);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.plot-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.plot-quad { fill: none; stroke: var(--line); stroke-width: 1; }
.plot-quad--hot { fill: rgba(17, 132, 83, 0.05); stroke: rgba(17, 132, 83, 0.28); }
.plot-grid { stroke: var(--line); stroke-width: 1; }
.plot-axis { stroke: var(--line2); stroke-width: 1; }
.plot-tick { fill: var(--muted2); font-family: var(--mono); font-size: 9px; }
.plot-qlabel { fill: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; }
.plot-qlabel.hot { fill: var(--green); }
.plot-dot { fill: var(--ink); opacity: 0.16; }
.plot-dot.hot { fill: var(--green); opacity: 0.85; }
.plot-focus { fill: none; stroke: var(--green); stroke-width: 1.4; }
.plot-focus-halo { fill: rgba(17, 132, 83, 0.08); }
.plot-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  line-height: 1.8;
}
.plot-note b { color: var(--ink); font-weight: 500; }

/* - engine flow - */
.flow { display: grid; gap: 1px; align-content: start; }
.flow li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.flow li:first-child { border-top: 0; padding-top: 2px; }
.flow li > span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted2);
  padding-top: 3px;
}
.flow li b {
  display: block;
  font-family: var(--cjk);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.flow li p { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.engine-map-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.engine-map-top i { flex: 1; height: 1px; background: var(--line); display: block; }
.engine-map-top .live { color: var(--green); }
.engine-links path { stroke: rgba(26, 26, 26, 0.13); stroke-width: 1; fill: none; }
.engine-nodes circle { fill: var(--muted2); }
.engine-nodes circle.major { fill: var(--ink); }
.engine-core-ring { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.5; }
.engine-core { fill: var(--ink); }
.engine-map-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  margin-top: 4px;
}
.engine-map-metric b { font-size: 15px; color: var(--ink); font-weight: 500; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }

/* - committee - */
.comm { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; }
.comm-rail { display: flex; flex-direction: column; gap: 7px; }
.comm-thumb {
  width: 100%;
  height: 88px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}
.comm-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.24s var(--ease);
  display: block;
}
.comm-thumb:hover img { filter: grayscale(0.4); }
.comm-thumb[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}
.comm-thumb[aria-pressed="true"] img { filter: grayscale(0); }
.comm-panel { min-width: 0; }
.comm-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted2);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.comm-head .idx { margin-left: auto; }
.comm-name {
  text-wrap: balance;
  font-family: var(--cjk);
  font-weight: 650;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 16px 0 0;
}
.comm-desc { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 8px; }
.comm-dl { margin-top: 16px; display: grid; gap: 10px; }
.comm-dl div { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.comm-dl dt { font-family: var(--mono); font-size: 10.5px; color: var(--muted2); letter-spacing: 0.08em; }
.comm-dl dd { font-size: 12.5px; line-height: 1.7; color: var(--ink); margin: 0; }
.bars { margin-top: 18px; display: grid; gap: 8px; }
.bar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 26px;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.bar .track { height: 4px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.bar .track i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 99px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s var(--ease-out);
}
.bar b { color: var(--ink); font-weight: 500; text-align: right; }

/* - case rows - */
.caserows { display: grid; }
.caserow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  width: 100%;
  background: none;
  border-left: 0; border-right: 0; border-bottom: 0;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s;
}
.caserow:first-child { border-top: 0; }
.caserow:hover { opacity: 0.72; }
.caserow .cn { min-width: 0; }
.caserow .cn .idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted2);
  display: block;
  margin-bottom: 5px;
}
.caserow .cn b {
  font-family: var(--cjk);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}
.caserow .cn span.sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted2);
  margin-top: 4px;
}
.caserow .cv { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.caserow .cv b { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.caserow .cv span { display: block; font-size: 10px; color: var(--muted2); margin-top: 2px; }

/* ============================================================== LEDGER */
.why { padding: 110px 0 0; }
.why-head { max-width: 780px; }
.why-head h2 {
  text-wrap: balance;
  font-family: var(--cjk);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-size: clamp(26px, 3.1vw, 44px);
  margin-top: 18px;
  color: var(--ink);
}
.why-head p { margin-top: 16px; font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 620px; }
.ledger { margin: 40px 0 0; }
.lhead {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.lrow {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.65;
}
.lrow .ldim { font-family: var(--mono); font-size: 11px; color: var(--muted2); letter-spacing: 0.06em; }
.lrow .lold {
  color: var(--muted2);
  text-decoration: line-through;
  text-decoration-color: rgba(192, 54, 47, 0.5);
  text-decoration-thickness: 1px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.lrow .lold::before { content: "×"; color: rgba(192, 54, 47, 0.72); font-family: var(--mono); font-size: 11px; flex: none; font-style: normal; text-decoration: none; display: inline-block; }
.lrow .lnew { color: var(--ink); display: flex; align-items: baseline; gap: 9px; }
.lrow .lnew::before { content: "✓"; color: var(--green); font-family: var(--mono); font-size: 11px; flex: none; }
.why-note { margin-top: 20px; font-family: var(--mono); font-size: 11px; line-height: 1.9; color: var(--muted2); }
.why-note::before { content: "› "; }

/* ========================================================== PUNCTUATION */
.zeroband { padding: 110px 0 96px; text-align: center; }
.zeroband h3 {
  text-wrap: balance;
  font-family: var(--cjk);
  font-weight: 640;
  letter-spacing: -0.035em;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.zeq {
  max-width: 560px;
  margin: 28px auto 0;
  background: var(--inverse);
  border-radius: var(--rb);
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.zeq .ps { color: #7f7f7f; font-family: var(--mono); font-size: 13px; flex: none; }
.zeq code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #e9e9e9;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 1.3em;
}
.zeq code::-webkit-scrollbar { display: none; }
.zeq code b { color: #6fdba4; font-weight: 500; }
.zsub { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--muted2); }
.zsub::before { content: "› "; }

/* ============================================================== CONTACT */
.contact { padding: 125px 0 70px; text-align: center; }
.contact h2 {
  text-wrap: balance;
  font-family: var(--cjk);
  font-weight: 640;
  letter-spacing: -0.038em;
  line-height: 1.16;
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 16px 0 0;
  color: #f7f8f7;
}
.contact .sub {
  font-size: 15px;
  line-height: 1.75;
  color: #9b9e9b;
  max-width: 620px;
  margin: 22px auto 0;
}
.contact .sub b { color: #e6e8e6; font-weight: 600; }
.promise-row {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: #8f938f;
}
.promise-row li { display: flex; align-items: baseline; gap: 7px; }
.promise-row b { color: #f5f7f6; font-weight: 500; font-size: 13px; }
.contact-actions {
  margin: 40px auto 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f5f7f6;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.copy-email:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.copy-email span {
  font-family: var(--cjk);
  font-size: 10.5px;
  color: #8f938f;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 9px;
}
.copy-status {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: #6fdba4;
  min-height: 16px;
}

.lead-card {
  max-width: 720px;
  margin: 64px auto 0;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 28px 26px 26px;
  text-align: left;
}
.lead-card .lc-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #767a76;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
}
.lead-card .lc-head .dot { color: #6fdba4; }
.lead-form { margin-top: 20px; display: grid; gap: 14px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-field { display: grid; gap: 7px; }
.lead-field > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767a76;
}
.lead-field > span b { color: #b9bcb9; font-weight: 400; }
.lead-field input,
.lead-field textarea {
  width: 100%;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rb);
  padding: 11px 13px;
  font-family: var(--cjk);
  font-size: 13.5px;
  color: #f5f7f6;
  outline: none;
  resize: vertical;
  transition: border-color 0.16s;
}
.lead-field input::placeholder,
.lead-field textarea::placeholder { color: #5c5f5c; }
.lead-field input:focus,
.lead-field textarea:focus { border-color: rgba(255, 255, 255, 0.55); }
.lead-context {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(111, 219, 164, 0.07);
  border: 1px solid rgba(111, 219, 164, 0.24);
  border-radius: var(--rb);
  padding: 10px 13px;
  font-family: var(--mono);
  font-size: 11px;
  color: #a9d9c2;
}
.lead-context p { flex: 1; min-width: 0; margin: 0; }
.lead-context button {
  background: none; border: 0; color: #a9d9c2; cursor: pointer; font-size: 14px;
  padding: 0 2px; line-height: 1;
}
.lead-consent {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: #8f938f;
  font-family: var(--cjk);
}
.lead-consent input { width: 14px; height: 14px; accent-color: #f5f7f6; flex: none; }
.lead-error { font-family: var(--mono); font-size: 11.5px; color: #ff8a80; }
.lead-submit {
  justify-self: start;
  background: #f5f7f6;
  color: #171a18;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--cjk);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, opacity 0.16s;
}
.lead-submit:hover { background: #e5e5e5; }
.lead-submit[disabled] { opacity: 0.5; cursor: default; }
.lead-success { margin-top: 18px; display: grid; gap: 10px; }
.lead-success .ok {
  width: 34px; height: 34px; border-radius: 99px;
  background: rgba(111, 219, 164, 0.14);
  color: #6fdba4;
  display: grid; place-items: center;
  font-size: 15px;
}
.lead-success h3 { font-family: var(--cjk); font-weight: 650; font-size: 18px; color: #f5f7f6; }
.lead-success p { font-size: 13px; color: #9b9e9b; line-height: 1.7; }
.lead-wechat {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #767a76;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}
.lead-wechat img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 3px; flex: none; }
.lead-wechat div { display: grid; gap: 4px; }
.lead-wechat b { color: #b9bcb9; font-weight: 400; }
.lead-wechat span { font-family: var(--cjk); font-size: 11px; line-height: 1.6; }

/* =============================================================== MODALS */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.62);
  display: none;
  place-items: center;
  z-index: 120;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.scrim.open { display: grid; }
.modal {
  width: min(940px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  position: relative;
  overscroll-behavior: contain;
}
.modal .cls {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: 0;
  color: var(--muted2);
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  padding: 4px;
}
.modal .cls:hover { color: var(--ink); }

/* - case modal - */
.case-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.case-side {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-side .idx { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted2); }
.case-side h3 { font-family: var(--cjk); font-weight: 650; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; }
.case-side .client { font-family: var(--mono); font-size: 10.5px; color: var(--muted2); }
.case-metrics { display: grid; gap: 12px; margin-top: 4px; }
.case-metrics div { display: flex; align-items: baseline; gap: 8px; }
.case-metrics b { font-family: var(--mono); font-size: 17px; color: var(--ink); font-weight: 500; }
.case-metrics span { font-family: var(--mono); font-size: 10px; color: var(--muted2); }
.case-nav { margin-top: auto; display: flex; gap: 8px; }
.case-nav button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.case-nav button:hover { border-color: var(--line2); color: var(--ink); }
.case-main { padding: 30px 30px 32px; }
.case-main h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 8px;
}
.case-main section + section { margin-top: 26px; }
.case-main p { font-size: 13.5px; line-height: 1.85; color: var(--ink); }
.case-main p.muted { color: var(--muted); }

/* - workbench modal - */
.wb-head {
  background: #000;
  color: #f5f7f6;
  padding: 24px 26px;
  border-radius: 24px 24px 0 0;
  display: grid;
  gap: 6px;
}
.wb-head .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: #767a76; text-transform: uppercase; }
.wb-head h3 { font-family: var(--cjk); font-weight: 650; font-size: 20px; letter-spacing: -0.025em; }
.wb-head p { font-size: 12.5px; color: #9b9e9b; line-height: 1.7; }
.wb-body { padding: 22px 26px 26px; display: grid; gap: 18px; }
.wb-form { display: grid; gap: 10px; }
.wb-form .bq-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--rb); padding: 12px 14px;
}
.wb-form .bq-field:focus-within { border-color: var(--ink); background: var(--surface); }
.wb-form .bq-field span.ps { font-family: var(--mono); font-size: 12px; color: var(--muted2); flex: none; }
.wb-form input {
  border: 0; background: none; outline: none; width: 100%;
  font-family: var(--cjk); font-size: 14px; color: var(--ink); padding: 0;
}
.wb-form input::placeholder { color: var(--muted2); }
.wb-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.wb-log {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rb);
  padding: 13px 15px;
  min-height: 96px;
}
.wb-log .ln { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-log .ln.ok { color: var(--green); }
.wb-log .ln.dim { color: var(--muted2); }
.wb-read {
  border-left: 2px solid var(--line2);
  padding: 2px 0 2px 14px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink);
}
.wb-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.wb-cand {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 15px 16px;
  background: var(--surface);
  display: grid;
  gap: 8px;
  align-content: start;
}
.wb-cand .top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wb-cand .code { font-family: var(--mono); font-size: 10.5px; color: var(--muted2); letter-spacing: 0.08em; }
.wb-cand .pct { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 500; }
.wb-cand h4 { font-family: var(--cjk); font-weight: 600; font-size: 13px; line-height: 1.4; letter-spacing: -0.01em; }
.wb-cand .meta { font-family: var(--mono); font-size: 10px; color: var(--muted2); }
.wb-cand .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.wb-cand .tags span {
  font-family: var(--cjk); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px;
}
.wb-cand .why { font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.wb-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted2);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ========================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comm { grid-template-columns: 92px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 108px 0 20px; }
  .hero-h1 { font-size: clamp(27px, 6.4vw, 40px); }
  .hero-h1 .l2 { font-size: 0.46em; }
  .scene {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
  }
  .gateway-routes { display: none; }
  .hcell--core { padding-top: 0; order: 2; }
  .hcell--brief { order: 1; }
  .hcell--list { order: 3; }
  .hcore b { font-size: 26px; }
  .ben { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .ben.flip .bentext { order: 0; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .svc { padding: 76px 0 0; }
  .why { padding: 76px 0 0; }
  .zeroband { padding: 76px 0 64px; }
  .contact { padding: 90px 0 56px; }
  .ledger { margin-top: 30px; }
  .lhead { display: none; }
  .lrow {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .lrow .ldim { color: var(--muted2); }
  .case-in { grid-template-columns: 1fr; }
  .case-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-nav { margin-top: 6px; }
  .wb-cands { grid-template-columns: 1fr; }
  .comm { grid-template-columns: 1fr; gap: 16px; }
  .comm-rail { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .comm-thumb { width: 64px; flex: none; }
  .lead-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; gap: 8px; }
  .pcard { padding: 13px 13px; gap: 11px; }
  .pcard .pt { flex-direction: row; align-items: baseline; gap: 10px; flex: 1; justify-content: space-between; }
  .pcard .pt span { flex: 0 1 auto; }
  .pcard .pt s { flex: 0 1 auto; }
  .pcat { font-size: 15px; gap: 10px; margin: 32px 0 14px; }
  .pcat em { display: none; }
  .hero-h1 { font-size: 27px; }
  .givebox { margin-top: 30px; padding: 8px; }
  .gb-h { font-size: 12px; flex-wrap: wrap; }
  .gb-cmd { padding: 11px; gap: 7px; }
  .gb-cmd code { font-size: 10.5px; white-space: normal; overflow-wrap: anywhere; }
  .gb-cmd button { min-width: 48px; min-height: 44px; padding: 6px 9px; }
  .htoolrow { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px 22px; }
  .win { border-radius: 24px; }
  .wbody { padding: 16px; }
  .lead-card { padding: 20px 16px; border-radius: 24px; }
  .modal { border-radius: 18px; }
  .case-main { padding: 22px 20px 26px; }
  .why-head h2, .svc-head h2 { font-size: 25px; }
  .zeroband h3 { font-size: 22px; }
  .zeq code { white-space: normal; font-size: 11px; }
}

/* --------------------------------------------------- catalog extras */
.pgrid.svc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 34px;
  font-family: var(--cjk);
  font-size: 12px;
  color: var(--muted);
}
.svc-steps b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted2); margin-right: 3px; }
.svc-steps i { font-style: normal; color: var(--muted2); font-family: var(--mono); font-size: 11px; }

/* the trailing "more" card, same grammar as treg's .htool.more */
.htool.more {
  border-style: dashed;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  justify-content: center;
  gap: 8px;
  line-height: 1.5;
}
.htool.more:hover { border-color: var(--muted2); box-shadow: none; }
.htool.more b { color: var(--ink); font-weight: 500; font-size: 13px; }

@media (max-width: 1180px) {
  .pgrid.svc4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pgrid.svc4 { grid-template-columns: 1fr; }
}
