/* ==========================================================================
   luciletranchant — design system
   Tokens from the HI Pipelines case study (Claude Design iteration, Jul 2026)
   ========================================================================== */

:root {
  --paper: #faf7f1;
  --ink: #1c1a17;
  --body: #33302a;
  --soft: #5a5348;
  --warm-grey: #6b6459;
  --muted: #a89f8d;
  --footer-grey: #8a8375;
  --line: #ddd7cb;
  --line-soft: #eee6d8;
  --accent: #c23c22;
  --accent-dark: #8f2a15;
  --accent-warm: #f0885f;
  --panel: #f2ede3;
  --panel-line: #e2dccf;
  --bar: #efe9dd;
  --card: #ffffff;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1.5px solid var(--ink);
  padding: 26px 0 14px;
}
.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.diamond {
  width: 9px; height: 9px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(45deg);
  flex: none;
}
.wordmark span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
nav.site {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
nav.site a { color: var(--warm-grey); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.3px;
  margin: 14px 0 0;
  text-wrap: balance;
  max-width: 17em;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 3.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.2px;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 18.5px);
  line-height: 1.55;
  color: var(--soft);
  margin: 16px 0 0;
  max-width: 42em;
}
p { color: var(--body); max-width: 46em; margin: 0 0 1.1em; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); }

/* ---------- section scaffolding ---------- */
.section { margin-top: 56px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.section-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--warm-grey);
}
.label-col {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 720px) {
  .label-col { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  margin-top: 26px;
}
.stat { padding: 16px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}
.stat .n .plus { color: var(--accent); }
.stat.hot .n { color: var(--accent); }
.stat .t {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.4px;
  line-height: 1.45;
  color: var(--warm-grey);
  margin-top: 8px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(5) { border-bottom: none; }
}

/* ---------- pipeline stages ---------- */
.flow {
  display: flex;
  align-items: stretch;
  margin-top: 18px;
}
.pl-stage {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 13px 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pl-stage:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -14px rgba(28, 26, 23, 0.45);
  border-color: var(--accent);
}
.pl-stage .num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  font-weight: 600;
}
.pl-stage .name {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 0.2px;
}
.pl-stage .detail {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--warm-grey);
  line-height: 1.6;
  margin-top: 9px;
}
.pl-stage.dark { background: var(--ink); border-color: var(--ink); }
.pl-stage.dark .num { color: var(--accent-warm); }
.pl-stage.dark .name { color: var(--paper); }
.pl-stage.dark .detail { color: #c9c2b4; }
.pl-stage.dark .hot { color: var(--accent-warm); }
.flow .arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  padding: 0 5px;
  flex: none;
}
@media (max-width: 860px) {
  .flow { flex-direction: column; }
  .flow .arrow { transform: rotate(90deg); padding: 6px 0; justify-content: center; }
}

/* ---------- quote + deployments ---------- */
.quote-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 30px;
}
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }
blockquote.rule {
  margin: 0;
  border-left: 2.5px solid var(--accent);
  padding-left: 18px;
}
blockquote.rule p {
  font-family: var(--serif);
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  max-width: none;
}
blockquote.rule cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--warm-grey);
  margin-top: 10px;
}
.deploys { display: flex; flex-direction: column; gap: 11px; }
.deploy { display: flex; gap: 14px; align-items: baseline; }
.deploy .k {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 13px;
  min-width: 70px;
}
.deploy .k.hot { color: var(--accent); }
.deploy .v {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--soft);
  line-height: 1.45;
}

/* ---------- lessons ---------- */
.lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 18px;
}
@media (max-width: 860px) { .lessons { grid-template-columns: 1fr; } }
.lesson-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--warm-grey);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.18s ease;
}
.lesson:hover .lesson-num { color: var(--accent); }
.lesson p { font-size: 13.5px; line-height: 1.62; margin: 9px 0 0; text-wrap: pretty; }

/* ---------- panel ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 18px 20px;
}
.panel .eyebrow { margin-bottom: 8px; display: block; }
.panel p { font-size: 13.5px; line-height: 1.62; margin: 0; }
.panel .chain { font-family: var(--mono); font-size: 11.5px; }
.provenance {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--footer-grey);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 46em;
}

/* ---------- edition anatomy ---------- */
.anatomy {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 26px;
}
@media (max-width: 860px) { .anatomy { grid-template-columns: 1fr; } }
.mail {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -20px rgba(28, 26, 23, 0.5);
}
.mail-subject {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px;
  background: #f8f4ec;
}
.mail-subject .tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.mail-subject .subj { font-size: 13px; font-weight: 600; margin-top: 4px; }
.mail-body { padding: 16px; display: flex; flex-direction: column; gap: 15px; }
.msec-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
}
.msec-label sup, .item sup { color: var(--accent); }
.bar { height: 5px; background: var(--bar); border-radius: 2px; margin-top: 7px; }
.item {
  border: 1px solid var(--line-soft);
  padding: 8px 10px;
  margin-top: 7px;
}
.item.flagged { border-left: 2px solid var(--accent); }
.item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--warm-grey);
  flex-wrap: wrap;
}
.item-head .id { color: var(--ink); font-weight: 600; }
.item-head .src { color: var(--accent); }
.item-head .harm { color: var(--ink); font-weight: 600; }
.item .bar { height: 4px; margin-top: 7px; }
.msec-cond {
  border: 1px dashed #d8cfba;
  padding: 8px 10px;
}
.msec-cond .msec-label { color: var(--muted); font-size: 9px; letter-spacing: 0.5px; }
.msec-cond .note {
  font-family: var(--mono);
  font-size: 8.5px;
  color: #b3a992;
  margin-top: 4px;
  font-style: italic;
}
.resp-row { display: flex; gap: 8px; align-items: center; margin-top: 7px; }
.resp-row .n { font-family: var(--mono); font-size: 9px; color: var(--accent); flex: none; }
.resp-row .bar { flex: 1; margin: 0; height: 4px; }
.register {
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
}
.register .ids {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.annos { display: flex; flex-direction: column; gap: 17px; }
.anno { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.anno .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.anno p { font-size: 13px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.anno .code { font-family: var(--mono); font-size: 11px; }

/* ---------- home: feature card ---------- */
.feature {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 28px;
  margin-top: 26px;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -16px rgba(28, 26, 23, 0.45);
  border-color: var(--accent);
  color: var(--ink);
}
.feature h2 { margin-top: 10px; }
.feature .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--soft);
  margin-top: 10px;
  max-width: 40em;
}
.feature .go {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 16px;
}
.ministats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.ministats .m { font-family: var(--mono); font-size: 11px; color: var(--warm-grey); }
.ministats .m b { color: var(--ink); font-size: 15px; font-weight: 600; margin-right: 6px; }

/* ---------- about ---------- */
.prose { margin-top: 26px; }
.prose p { font-size: 16px; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: var(--footer-grey);
}
footer.site a { color: var(--warm-grey); }
footer.site a:hover { color: var(--accent); }

main { padding-top: 52px; padding-bottom: 20px; }

/* ---------- contact form ---------- */
.form { max-width: 560px; margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 13px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 170px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 14px 24px;
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.form-note { font-family: var(--mono); font-size: 10px; color: var(--footer-grey); letter-spacing: 0.3px; }
.form-status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; display: none; }
.form-status.ok { display: block; color: var(--ink); }
.form-status.err { display: block; color: var(--accent); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
@media (max-width: 880px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -16px rgba(28, 26, 23, 0.45);
  border-color: var(--accent);
  color: var(--ink);
}
.work-card .tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--warm-grey);
}
.work-card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 19.5px; line-height: 1.25; letter-spacing: -0.2px;
  margin: 10px 0 0; text-wrap: balance;
}
.work-card .sub { font-size: 13.5px; line-height: 1.55; color: var(--soft); margin-top: 10px; }
.work-card .go {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-top: auto; padding-top: 16px;
}

/* ---------- animated deterministic gate (digest-architecture) ---------- */
.gatesim { margin-top: 22px; border: 1px solid var(--line); background: var(--card); }
.gs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #f8f4ec; }
.gs-head .t { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.gs-head .h { font-size: 13px; font-weight: 600; }
.gs-scroll { overflow-x: auto; }
.gs-track { position: relative; height: 252px; min-width: 660px; }
.gs-in { position: absolute; left: 3.5%; top: 50%; transform: translateY(-50%); width: 2px; height: 130px; background: linear-gradient(var(--line), transparent, var(--line)); }
.gs-inlbl { position: absolute; left: 2%; top: 8px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--warm-grey); }
.gs-gate { position: absolute; left: 41%; top: 50%; transform: translate(-50%, -50%); width: 122px; text-align: center; background: var(--ink); color: var(--paper); padding: 15px 10px; border-radius: 3px; z-index: 3; }
.gs-gate .g1 { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.gs-gate .g2 { font-family: var(--mono); font-size: 8px; letter-spacing: 0.5px; color: var(--accent-warm); margin-top: 5px; }
.gs-lane { position: absolute; left: 58%; right: 2%; height: 1px; background: var(--line); z-index: 1; }
.gs-lane.pri { top: 20%; } .gs-lane.wat { top: 50%; } .gs-lane.drop { top: 80%; }
.gs-lane .ll { position: absolute; right: 0; top: -18px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.6px; text-transform: uppercase; }
.gs-lane.pri .ll { color: var(--accent); } .gs-lane.wat .ll { color: var(--warm-grey); } .gs-lane.drop .ll { color: var(--muted); }
.gs-item { position: absolute; left: 0; top: 0; width: 180px; padding: 9px 11px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(28, 26, 23, 0.55); will-change: transform, opacity; z-index: 4; }
.gs-item.pri { border-left: 2px solid var(--accent); }
.gs-item.wat { border-left: 2px solid var(--warm-grey); }
.gs-item.drop { opacity: 0.55; }
.gsi-src { font-family: var(--mono); font-size: 9px; color: var(--accent); font-weight: 600; letter-spacing: 0.3px; }
.gsi-txt { display: block; font-size: 11.5px; line-height: 1.32; color: var(--ink); margin-top: 3px; }
.gsi-score { display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink); margin-top: 6px; opacity: 0; transform: scale(0.55); transition: opacity 0.22s ease, transform 0.22s cubic-bezier(.3,1.5,.5,1); }
.gsi-score.on { opacity: 1; transform: scale(1); }
.gsi-score .lab { color: var(--warm-grey); font-weight: 400; }
.gsi-anal { display: none; margin-top: 7px; }
.gs-item.writing .gsi-anal { display: block; }
.gsi-anal .b { height: 3px; background: var(--bar); border-radius: 2px; margin-top: 3px; width: 0; transition: width 0.5s ease; }
.gs-status { border-top: 1px solid var(--line-soft); padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2px; color: var(--soft); min-height: 20px; line-height: 1.5; }
.gs-status b { color: var(--accent); font-weight: 600; }

/* ---------- animated audit flow (mirrorline) ---------- */
.mirsim { margin-top: 22px; border: 1px solid var(--line); background: var(--card); }
.ms-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #f8f4ec; }
.ms-head .t { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ms-head .h { font-size: 13px; font-weight: 600; }
.ms-stages { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-soft); }
.ms-stage { padding: 12px; border-right: 1px solid var(--line-soft); position: relative; transition: background 0.3s ease; }
.ms-stage:last-child { border-right: none; }
.ms-stage .num { font-family: var(--mono); font-size: 9px; color: var(--muted); font-weight: 600; transition: color 0.3s; }
.ms-stage .nm { font-size: 12.5px; font-weight: 600; margin-top: 4px; letter-spacing: 0.2px; color: var(--soft); transition: color 0.3s; }
.ms-stage.done .num { color: var(--warm-grey); }
.ms-stage.on { background: var(--paper); }
.ms-stage.on .num { color: var(--accent); }
.ms-stage.on .nm { color: var(--ink); }
.ms-stage .tick { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.45s ease; }
.ms-stage.on .tick { width: 100%; }
.ms-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 204px; }
@media (max-width: 640px) { .ms-body { grid-template-columns: 1fr; } .ms-answer { border-right: none !important; border-bottom: 1px solid var(--line-soft); } }
.ms-answer { padding: 16px; border-right: 1px solid var(--line-soft); }
.ms-lab { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--warm-grey); }
.ms-q { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: var(--ink); margin-top: 11px; opacity: 0; transition: opacity 0.5s ease; }
.ms-a { font-family: var(--serif); font-size: 13.5px; line-height: 1.5; color: var(--soft); margin-top: 13px; opacity: 0; transition: opacity 0.5s ease; }
.ms-q.on, .ms-a.on { opacity: 1; }
.ms-claims2 { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ms-claimrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line-soft); padding: 8px 10px; opacity: 0; transform: translateX(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.ms-claimrow.on { opacity: 1; transform: none; }
.ms-claimrow.flag { border-left: 2px solid var(--accent); }
.ms-claimrow .c { font-size: 11.5px; line-height: 1.35; color: var(--body); }
.ms-chip { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap; opacity: 0; transform: scale(0.55); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.3,1.5,.5,1); }
.ms-chip.show { opacity: 1; transform: scale(1); }
.ms-chip.sourced { background: var(--panel); color: var(--soft); border: 1px solid var(--panel-line); }
.ms-chip.unsourced { background: var(--accent); color: var(--paper); }
.ms-chip.unverifiable { background: transparent; color: var(--warm-grey); border: 1px dashed var(--muted); }
.ms-status { border-top: 1px solid var(--line-soft); padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2px; color: var(--soft); min-height: 20px; line-height: 1.5; }
.ms-status b { color: var(--accent); font-weight: 600; }

/* ---------- live monitor feed (home) ---------- */
.feed { margin-top: 30px; border: 1px solid var(--line); background: var(--card); }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #f8f4ec; }
.feed-head .t { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.feed-head .h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.4px; color: var(--warm-grey); }
.feed-head .live { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.feed-head .live .n { color: var(--ink); font-weight: 600; }
.feed-head .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; animation: feedpulse 1.6s ease-in-out infinite; }
@keyframes feedpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.feed-view { position: relative; height: 210px; overflow: hidden; }
.feed-view { position: relative; height: 430px; overflow: hidden; }
.feed-view::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(194,60,34,0.55), transparent); z-index: 5; animation: feedscan 7s linear infinite; pointer-events: none; }
@keyframes feedscan { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateY(430px); opacity: 0; } }
.feed-scroll { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 52px 12px 70px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); transition: background 0.2s ease; }
.feed-row:hover { background: #f8f4ec; }
.feed-row .tm { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.2px; }
.feed-row .ind { width: 6px; height: 6px; border-radius: 50%; background: var(--line); justify-self: center; }
.feed-row.flag .ind { background: var(--accent); animation: feedpulse 1.4s ease-in-out infinite; }
.feed-row .src { font-family: var(--mono); font-size: 9.5px; color: var(--warm-grey); letter-spacing: 0.3px; }
.feed-row .nar { font-size: 12px; line-height: 1.35; color: var(--body); }
.feed-row .st { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; text-align: right; white-space: nowrap; }
.st.st-flag { color: var(--accent); }
.st.st-watch { color: #c07a1c; }
.st.st-clear { color: var(--warm-grey); }
.feed-row.flag { border-left: 2px solid var(--accent); }
.feed-row.flag .src { color: var(--accent); }
.feed-row.flag .nar { color: var(--ink); }
.feed-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
.feed-fade.top { top: 0; bottom: auto; height: 28px; background: linear-gradient(var(--card), transparent); }
@keyframes feedmarq { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.proof { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.3px; color: var(--warm-grey); margin: 18px 0 0; line-height: 1.95; max-width: none; }
.proof b { color: var(--ink); font-weight: 600; }
.herolinks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.herolinks a { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 10px 16px; transition: background 0.15s ease, color 0.15s ease; }
.herolinks a:first-child { background: var(--accent); color: var(--paper); }
.herolinks a:first-child:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.herolinks a:hover { background: rgba(194, 60, 34, 0.08); color: var(--accent-dark); }
.ident { font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.5; color: var(--soft); margin-top: 26px; max-width: 42em; }
.closing { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.55; color: var(--soft); margin-top: 10px; max-width: 42em; }
.closing a { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; white-space: nowrap; }
.morework { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 26px; }
.morework .mw-lbl { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--warm-grey); }
.morework .mw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 640px) { .morework .mw-grid { grid-template-columns: 1fr; } }
.mw-card { display: block; border: 1px solid var(--line); padding: 18px 20px; transition: border-color 0.15s ease, background 0.15s ease; }
.mw-card:hover { border-color: var(--accent); background: #f8f4ec; }
.mw-card .mw-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); }
.mw-card .mw-t { font-family: var(--serif); font-size: 16px; line-height: 1.35; color: var(--ink); margin-top: 8px; }
.mw-card .mw-go { font-family: var(--mono); font-size: 11px; letter-spacing: 0.4px; color: var(--warm-grey); margin-top: 12px; }
.mw-card:hover .mw-go { color: var(--accent); }
.morework .mw-contact { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--soft); margin-top: 20px; }
.morework .mw-contact a { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; }

/* homepage: monitor + executive readout, side by side */
.monitor { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-top: 30px; align-items: start; }
@media (max-width: 760px) { .monitor { grid-template-columns: 1fr; } }
.monitor .feed { margin-top: 0; }
.exreadout { border: 1px solid var(--line); background: var(--card); }
.exreadout .er-head { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #f8f4ec; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--warm-grey); }
.exreadout .er-body { padding: 4px 16px; }
.er-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.er-row:last-child { border-bottom: none; }
.er-row .er-n { font-family: var(--serif); font-size: 23px; line-height: 1; color: var(--accent); font-weight: 600; }
.er-row.calm .er-n { color: var(--soft); font-size: 20px; }
.er-row .er-t { font-size: 12.5px; line-height: 1.4; color: var(--body); }
.er-row .er-act { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--warm-grey); margin-top: 5px; }
.exreadout .er-foot { padding: 11px 16px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.3px; color: var(--muted); }
.value-note { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); margin: 26px 0 0; max-width: 42em; border-left: 2.5px solid var(--accent); padding-left: 18px; text-wrap: pretty; }

/* homepage: practice dimensions */
.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 40px; }
@media (max-width: 760px) { .dimensions { grid-template-columns: 1fr; } }
.dim { padding: 22px; border-right: 1px solid var(--line-soft); }
.dim:last-child { border-right: none; }
@media (max-width: 760px) { .dim { border-right: none; border-bottom: 1px solid var(--line-soft); } .dim:last-child { border-bottom: none; } }
.dim .dim-n { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.dim h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); margin: 11px 0 8px; }
.dim p { font-size: 13px; line-height: 1.5; color: var(--soft); margin: 0; }

/* homepage: featured flagship */
.feature { display: block; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--card); padding: 30px; margin-top: 22px; transition: background 0.15s ease; }
.feature:hover { background: #f8f4ec; }
.feature .f-tag { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.feature h3 { font-family: var(--serif); font-size: 25px; line-height: 1.22; color: var(--ink); margin: 12px 0 0; max-width: 20em; }
.feature .f-sub { font-size: 14.5px; line-height: 1.55; color: var(--soft); margin: 12px 0 0; max-width: 46em; }
.feature .f-second { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3px; color: var(--warm-grey); margin: 12px 0 0; }
.feature .f-proof { display: flex; flex-wrap: wrap; gap: 30px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.feature .fp .fp-n { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.feature .fp .fp-t { font-family: var(--mono); font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--warm-grey); margin-top: 4px; }
.feature .f-go { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-top: 22px; }
.work-card.prep { border-style: dashed; cursor: default; }
.work-card.prep:hover { border-color: var(--line); background: transparent; }
.work-card.prep .tag { color: var(--warm-grey); }
.work-card .go.muted { color: var(--warm-grey); }

/* case study: value summary + capabilities */
.vfields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 760px) { .vfields { grid-template-columns: 1fr 1fr; } }
.vf { border-top: 2px solid var(--ink); padding-top: 12px; }
.vf .vf-l { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.vf .vf-t { font-size: 13px; line-height: 1.45; color: var(--body); margin-top: 8px; }
.madelist { columns: 2; column-gap: 34px; margin-top: 18px; padding-left: 0; }
@media (max-width: 640px) { .madelist { columns: 1; } }
.madelist li { break-inside: avoid; font-size: 13.5px; line-height: 1.5; color: var(--body); margin-bottom: 12px; padding-left: 16px; position: relative; list-style: none; }
.madelist li::before { content: "\25B8"; position: absolute; left: 0; color: var(--accent); }
.product-line { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--ink); margin-top: 22px; max-width: 44em; }

/* research case study: evidence-source map */
.srcmap { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 26px; }
@media (max-width: 760px) { .srcmap { grid-template-columns: 1fr 1fr; } }
.srcmap .sc { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.srcmap .sc .sc-n { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 0.6px; }
.srcmap .sc .sc-t { font-size: 12.5px; line-height: 1.4; color: var(--ink); margin-top: 8px; }

/* research case study: method stages */
.method { margin-top: 22px; }
.mstage { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.mstage:first-child { border-top: none; padding-top: 4px; }
.mstage .ms-n { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent); line-height: 1; }
.mstage .ms-h { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.mstage .ms-p { font-size: 13.5px; line-height: 1.55; color: var(--soft); margin: 7px 0 0; max-width: 46em; }
.mstage .ms-eg { margin-top: 11px; display: flex; flex-direction: column; gap: 5px; }
.mstage .ms-eg span { font-size: 12.5px; line-height: 1.4; color: var(--body); padding-left: 16px; position: relative; }
.mstage .ms-eg span::before { content: "\2014"; position: absolute; left: 0; color: var(--muted); }

/* research case study: synthesis diagram */
.synth { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: stretch; margin-top: 26px; }
@media (max-width: 760px) { .synth { grid-template-columns: 1fr; gap: 10px; } .synth .synth-arrow { transform: rotate(90deg); padding: 4px 0; } }
.synth-col { border: 1px solid var(--line); background: var(--card); padding: 16px 16px 18px; }
.synth-col .sy-l { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--warm-grey); }
.synth-col ul { margin: 11px 0 0; padding: 0; list-style: none; }
.synth-col li { font-size: 12px; line-height: 1.42; color: var(--body); padding: 4px 0; }
.synth-col.decision { background: var(--ink); }
.synth-col.decision .sy-l { color: var(--accent-warm); }
.synth-col.decision li { color: var(--paper); }
.synth-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; }

/* research case study: executive brief mock */
.brief-p { font-size: 13px; line-height: 1.55; color: var(--body); margin: 0; max-width: none; }
.brief-p strong { color: var(--ink); }
.brief-watch { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--warm-grey); }
.brief-step { border-left: 2px solid var(--accent); padding-left: 14px; }
.brief-step p { font-family: var(--serif); font-size: 14px; line-height: 1.45; color: var(--ink); margin: 0; max-width: none; }

/* ---------- rendered edition (digest-architecture) ---------- */
.edition {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px -22px rgba(28, 26, 23, 0.5);
}
.ed-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 18px;
  background: #f8f4ec;
}
.ed-head .tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ed-head .subj { font-size: 13px; font-weight: 600; margin-top: 3px; }
.ed-head .meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.5px; color: var(--warm-grey); }
.ed-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.ed-block > .msec-label { display: block; margin-bottom: 9px; }
.readout { border-left: 2.5px solid var(--accent); padding-left: 15px; }
.readout p { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink); margin: 0; max-width: none; }
.finding { border: 1px solid var(--line); border-left: 2px solid var(--accent); padding: 14px 15px; }
.finding .claim { font-family: var(--serif); font-size: 14.5px; line-height: 1.42; color: var(--ink); margin: 0 0 13px; max-width: none; }
.wxs { display: flex; flex-direction: column; gap: 10px; }
.wxs-row { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: baseline; }
.wxs-row .k { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.wxs-row.step .k { color: var(--ink); }
.wxs-row .v { font-size: 12.5px; line-height: 1.5; color: var(--body); }
.watch { display: flex; flex-direction: column; }
.watch-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.watch-row:first-child { border-top: none; padding-top: 0; }
.watch-row .wn { font-family: var(--mono); font-size: 10px; color: var(--warm-grey); }
.watch-row .wt { font-size: 12.5px; line-height: 1.48; color: var(--body); }
.watch-row .ws { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.coverage { font-family: var(--mono); font-size: 10.5px; line-height: 1.7; color: var(--warm-grey); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.coverage b { color: var(--ink); font-weight: 600; }
.coverage .dark { color: var(--accent); }

/* ---------- assistant-answer finding (mirrorline) ---------- */
.finding-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px -22px rgba(28, 26, 23, 0.5);
  margin-top: 26px;
}
.fc-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 18px;
  background: #f8f4ec;
}
.fc-head .tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.fc-head .q { font-size: 13px; font-weight: 600; margin-top: 3px; max-width: 34em; }
.fc-head .org { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.4px; color: var(--warm-grey); align-self: center; }
.fc-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); }
.split > div { padding: 14px 16px; }
.split > div + div { border-left: 1px solid var(--line-soft); }
.split .lab { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--warm-grey); }
.split .txt { font-family: var(--serif); font-size: 13.5px; line-height: 1.5; color: var(--ink); margin: 9px 0 0; max-width: none; }
@media (max-width: 640px) {
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: none; border-top: 1px solid var(--line-soft); }
}
.claims { display: flex; flex-direction: column; }
.claim-line { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.claim-line:first-child { border-top: none; padding-top: 0; }
.claim-line .ct { font-size: 12.5px; line-height: 1.45; color: var(--body); }
.chip { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; white-space: nowrap; }
.chip.sourced { background: var(--panel); color: var(--soft); border: 1px solid var(--panel-line); }
.chip.unsourced { background: var(--accent); color: var(--paper); }
.chip.unverifiable { background: transparent; color: var(--warm-grey); border: 1px dashed var(--muted); }
.prov-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.prov-legend .lg { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.3px; color: var(--warm-grey); }
.prov-legend .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.prov-legend .sourced .dot { background: var(--soft); }
.prov-legend .unsourced .dot { background: var(--accent); }
.prov-legend .unverifiable .dot { background: transparent; border: 1px solid var(--muted); }
