/* Nexus CX Partners — design system.
   "Advisory brief": calm, consultative, buyer-side. Warm paper, rich-black ink,
   restrained violet accent, hairline rules, brief-cover cards.
   Type: Plus Jakarta Sans (UI/display) + Source Serif 4 (standfirsts, callouts only).
   Signatures:
     · the hero exhibit — an inline-SVG "evaluation matrix" plate (a buyer's-brief
       cover) sitting over an ambient "nexus" field of drifting connective nodes;
     · the advisory-standards band under the hero (how we work, on equal footing);
     · brief-cover hover (violet keyline + 2px lift);
     · the article dossier (sticky sidebar, elevated with an evaluation lens);
     · step-connector hairline that draws in with the content;
     · a slim violet reading-progress bar on articles.
   One canonical file per brand: design tokens + component styles. */

:root {
  /* ink & paper */
  --bg: #faf9f7;            /* warm paper */
  --surface: #ffffff;
  --wash: #f5f3fb;          /* faint violet wash — hero only */
  --ink: #111827;
  --ink-2: #3d4351;
  --muted: #6c7180;
  --faint: #9aa0ac;

  /* accent — violet is a keyline + label color, never a theme */
  --brand: #8b5cf6;
  --brand-deep: #7c3aed;    /* accent text on light (AA) */
  --brand-dark: #6d28d9;
  --brand-ink: #ffffff;
  --brand-tint: #ede9fe;
  --brand-tint-2: #f5f3ff;

  /* hairlines */
  --line: #e8e4dd;          /* warm hairline */
  --line-2: #d9d4cb;
  --line-violet: #ddd3f6;

  /* one spacing scale (4px base) — used across new components + rhythm */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 20px;
  --s-6: 24px;  --s-8: 32px;  --s-10: 40px; --s-12: 48px; --s-14: 56px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* form */
  --radius: 3px;
  --maxw: 1120px;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.23, .62, .22, .99);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(139, 92, 246, .22); }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700;
  padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus-visible { top: 0; }

/* caps label — the system's recurring voice */
.kicker {
  margin: 0 0 18px; color: var(--brand-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.kicker::before {
  content: ""; display: inline-block; width: 15px; height: 2px;
  background: var(--brand); vertical-align: 3px; margin-right: 10px;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 247, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.masthead.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(17, 24, 39, .05); }
.masthead-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 1.02rem; white-space: nowrap; flex-shrink: 0; }
.brand-mark { border-radius: 7px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 12px 0;
  position: relative; transition: color .18s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--brand); transition: right .22s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav-cta {
  background: var(--ink); color: #fff; font-weight: 700; font-size: .84rem;
  padding: 9px 16px; border-radius: var(--radius); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-cta:active { transform: translateY(1px); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--wash) 0%, rgba(245, 243, 251, 0) 74%);
}
/* ambient "nexus" field — drifting connective nodes (see footer script) */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: var(--s-14); align-items: center;
  padding: 88px 24px 64px;
}
.hero-copy { max-width: 620px; }
.hero-title {
  margin: 0 0 22px; font-size: clamp(2.6rem, 5.4vw, 3.9rem); line-height: 1.03;
  letter-spacing: -.038em; font-weight: 800; text-wrap: balance;
}
.hero-standfirst {
  margin: 0; max-width: 560px; font-family: var(--serif);
  font-size: clamp(1.16rem, 2vw, 1.32rem); line-height: 1.55; color: var(--ink-2);
}
.hero-signup { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; margin: 34px 0 0; }
.hero-signup input {
  flex: 1; min-width: 220px; padding: 13px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.hero-signup input::placeholder { color: var(--faint); }
.hero-signup input:hover { border-color: var(--faint); }
.hero-signup input:focus-visible { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px var(--brand-tint); }
.hero-signup button {
  padding: 13px 22px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--brand-deep); color: var(--brand-ink); font: inherit; font-size: .95rem; font-weight: 700;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.hero-signup button:hover { background: var(--brand-dark); }
.hero-signup button:active { transform: translateY(1px); }
/* signup states — set by the shared capture script */
.hero-signup button:disabled { opacity: .72; cursor: progress; transform: none; }
.hero-signup button.is-ok, .hero-signup button.is-ok:hover { background: var(--ink); opacity: 1; }
.hero-signup button.is-err, .hero-signup button.is-err:hover { background: #b91c1c; }
.signup-status { margin: 10px 0 0; font-size: .8rem; font-weight: 600; color: var(--muted); min-height: 1.2em; }
.signup-status.ok { color: var(--brand-deep); }
.signup-status.err { color: #b91c1c; }
.hero-fine { margin: 12px 0 0; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* framework chips — hairline tabs with small numerals; lift + violet keyline on hover */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 34px 0 0; }
.hero-chips li {
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  padding: 7px 13px; font-size: .78rem; font-weight: 600; color: var(--ink-2);
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.hero-chips li:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.chip-no { font-size: .64rem; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums; letter-spacing: .05em; }

/* hero exhibit — the evaluation-matrix plate + caption */
.hero-figure { justify-self: end; width: 100%; max-width: 340px; margin: 0; }
.plate { display: block; width: 100%; height: auto; }
.plate-frame { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.plate-brand { fill: var(--ink); font-family: var(--font); font-weight: 700; font-size: 9px; letter-spacing: .14em; }
.plate-rule { stroke: var(--line); stroke-width: 1; }
.plate-sub { fill: var(--muted); font-family: var(--font); font-weight: 700; font-size: 7.5px; letter-spacing: .14em; }
.plate-illus { fill: var(--faint); font-family: var(--font); font-weight: 700; font-size: 7px; letter-spacing: .13em; }
.plate-col { fill: var(--faint); font-family: var(--font); font-weight: 700; font-size: 6.5px; letter-spacing: .12em; }
.plate-div { stroke: var(--line); stroke-width: 1; }
.plate-crit { fill: var(--ink-2); font-family: var(--font); font-weight: 600; font-size: 8.5px; }
.plate-track { stroke: var(--line-2); stroke-width: 4; stroke-linecap: round; }
.plate-fill { stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.plate-wt { fill: var(--ink-2); font-family: var(--font); font-weight: 700; font-size: 8px; font-variant-numeric: tabular-nums; }
.plate-node line { stroke: var(--brand); stroke-width: 1; }
.plate-node .nd, .plate-node .ne { fill: var(--brand); }
.plate-ret .ring { fill: none; stroke: var(--brand); stroke-width: 1.2; }
.plate-ret line { stroke: var(--brand); stroke-width: 1; }
.plate-ret .focus { fill: var(--brand); }
.plate-legend { fill: var(--muted); font-family: var(--font); font-weight: 700; font-size: 6.5px; letter-spacing: .1em; }
.plate-note { fill: var(--faint); font-family: var(--font); font-weight: 500; font-size: 7px; letter-spacing: .01em; }
.fig-cap { margin: 12px 2px 0; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.fig-cap b { color: var(--brand-deep); font-weight: 700; letter-spacing: .05em; }

/* one-time load choreography (hero + article head) */
.h-anim { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- advisory-standards band ---------- */
.standards { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.standards-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.std { padding: 22px 28px; }
.std + .std { border-left: 1px solid var(--line); }
.std:first-child { padding-left: 0; }
.std:last-child { padding-right: 0; }
.std-k {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.std-mark { flex-shrink: 0; width: 19px; height: 19px; }
.std-mark * { fill: none; stroke: var(--brand); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.std-mark .fill { fill: var(--brand); stroke: none; }
.std-v { margin: 10px 0 0; max-width: 34ch; font-size: .86rem; line-height: 1.55; color: var(--muted); }

/* ---------- feed / brief covers ---------- */
.feed { padding: 60px 24px 8px; counter-reset: brief; }
.feed-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.section-label {
  margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.section-sub { margin: 0; color: var(--muted); font-size: .88rem; }
.feed-head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* brief cover — the index's core object */
.cover {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 22px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cover:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 28px rgba(17, 24, 39, .06); }
.feed .cover { counter-increment: brief; }

.cover-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.cover-tag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); }
.cover-flag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cover-flag::after { content: "·"; margin: 0 9px 0 10px; color: var(--faint); }
.cover-no { font-size: .68rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cover-no::before { content: "No.\2009" counter(brief, decimal-leading-zero); }

.cover-title { margin: 0 0 10px; font-size: 1.26rem; line-height: 1.3; letter-spacing: -.016em; font-weight: 750; text-wrap: balance; }
.cover-standfirst {
  margin: 0 0 18px; font-family: var(--serif); font-size: .96rem; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-meta {
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.cover-meta > span + span:not(.cover-cta)::before { content: "·"; margin-right: 8px; color: var(--faint); }
.cover-cta { margin-left: auto; color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
.arrow { display: inline-block; transition: transform .2s var(--ease); }
.cover:hover .arrow, .back:hover .arrow { transform: translateX(3px); }
.back:hover .arrow { transform: translateX(-3px); }

/* featured brief */
.cover-lg { grid-column: 1 / -1; padding: 36px 40px 26px; margin-bottom: 20px; }
.cover-lg .cover-title { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.16; letter-spacing: -.024em; margin-bottom: 14px; max-width: 21em; }
.cover-lg .cover-standfirst { font-size: 1.1rem; max-width: 58ch; -webkit-line-clamp: 3; margin-bottom: 26px; }
.cover-lg .cover-top { margin-bottom: 22px; }

.empty { color: var(--muted); padding: 40px 0; }

/* ---------- article ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress b { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

.article { padding: 8px 0 48px; }
.article-head { padding-top: 44px; max-width: 860px; }
.back { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: color .18s var(--ease); }
.back:hover { color: var(--brand-deep); }
.article-head .kicker { margin-bottom: 16px; }
.article-head h1 {
  margin: 0 0 18px; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12;
  letter-spacing: -.03em; font-weight: 800; text-wrap: balance;
}
.lede { margin: 0; max-width: 680px; font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--ink-2); }
.article-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline;
  margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.article-meta span + span::before { content: "·"; margin-right: 8px; color: var(--faint); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-top: 38px; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; font-size: 1.07rem; line-height: 1.72; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3em; text-wrap: pretty; }
.prose h2 {
  position: relative; margin: 2.4em 0 .75em; padding-top: 1.05em;
  border-top: 1px solid var(--line);
  font-size: 1.5rem; line-height: 1.25; letter-spacing: -.018em; font-weight: 750;
  text-wrap: balance; scroll-margin-top: 84px;
}
.prose h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--brand); }
.prose h3 { margin: 1.9em 0 .55em; font-size: 1.18rem; letter-spacing: -.012em; font-weight: 700; scroll-margin-top: 84px; }
.prose a { color: var(--brand-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-violet); transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
.prose a:visited { color: var(--brand-dark); }
.prose a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--ink); }

/* framework steps — numbered plates joined by a hairline that draws in */
.prose ol { list-style: none; counter-reset: step; margin: 1.7em 0 2em; padding: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 52px; margin: 0 0 1.4em; }
.prose ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--brand-deep); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.prose ol > li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 38px; bottom: calc(-1.4em + 5px);
  width: 1px; background: var(--line-violet);
}
.prose ol > li.rv::after { transform: scaleY(0); transform-origin: top; transition: transform .55s var(--ease); transition-delay: calc(var(--d, 0ms) + 250ms); }
.prose ol > li.rv.in::after { transform: scaleY(1); }

/* checklist bullets — violet dash markers */
.prose ul { list-style: none; margin: 1.5em 0 1.8em; padding: 0; }
.prose ul > li { position: relative; padding-left: 26px; margin: .7em 0; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .74em; width: 12px; height: 2px; background: var(--brand); }

/* buyer's note — serif callout, typography does the work */
.prose blockquote {
  margin: 2.1em 0; padding: 20px 24px;
  background: var(--brand-tint-2); border: 1px solid var(--line-violet); border-left: 2px solid var(--brand);
  border-radius: var(--radius);
  font-family: var(--serif); font-size: 1.02em; line-height: 1.62; color: var(--ink-2);
}
.prose blockquote p { margin: 0 0 .7em; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code { background: var(--brand-tint-2); border: 1px solid var(--line-violet); padding: 1px 6px; border-radius: 3px; font-size: .88em; color: var(--brand-dark); }
.prose pre { background: var(--ink); color: #e5e7eb; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .88em; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }

/* ---------- tables — comparison exhibits with a scroll wrapper (added by footer JS) ---------- */
.table-wrap { margin: 1.8em 0 2em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; line-height: 1.5; margin: 0; }
.table-wrap > table { min-width: 560px; }
.prose thead th {
  background: var(--brand-tint-2); color: var(--ink);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line-violet);
}
.prose tbody td, .prose tbody th { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.prose tbody th { text-align: left; font-weight: 650; color: var(--ink); }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose tbody tr:hover { background: var(--bg); }

/* ---------- key-takeaways — violet-keyline brief summary (wrapped by footer JS) ---------- */
.takeaways {
  margin: 2em 0 2.2em; padding: 20px 24px 22px;
  background: var(--surface); border: 1px solid var(--line-violet); border-top: 2px solid var(--brand);
  border-radius: var(--radius);
}
.takeaways > p { margin: 0 0 10px; }
.takeaways > p strong {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-deep);
}
.takeaways > ul { margin: 0; }
.takeaways > ul > li { margin: .55em 0; font-size: .98rem; line-height: 1.6; }
.takeaways > ul > li:first-child { margin-top: 0; }
.takeaways > ul > li:last-child { margin-bottom: 0; }

/* ---------- FAQ — a clean buyer's Q&A (classes added by footer JS) ---------- */
.prose h2.faq-h { margin-bottom: 1em; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 15px 46px; margin: 0 0 12px; position: relative;
  transition: border-color .18s var(--ease);
}
.faq-item:hover { border-color: var(--line-violet); }
.faq-item::before {
  content: "Q"; position: absolute; left: 18px; top: 17px;
  color: var(--brand-deep); font-size: .78rem; font-weight: 700; letter-spacing: .05em;
}
.prose .faq-item h3 { margin: 0 0 .45em; font-size: 1.04rem; line-height: 1.4; }
.prose .faq-item p { margin: 0 0 .8em; font-size: .96rem; line-height: 1.62; color: var(--ink-2); }
.prose .faq-item p:last-child { margin-bottom: 0; }

/* editorial end mark */
.prose > p:last-child::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--brand); border-radius: 1px; margin-left: 10px;
}

/* ---------- dossier (sticky buyer's sidebar) ---------- */
.sidebar { position: sticky; top: 86px; }
.dossier {
  background: var(--surface);
  border: 1px solid var(--line); border-top: 2px solid var(--brand);
  border-radius: var(--radius); padding: 20px 24px 20px;
}
.dossier-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 13px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.dossier-label { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.dossier-emblem { width: 18px; height: 18px; flex-shrink: 0; }
.dossier-emblem line { stroke: var(--brand); stroke-width: 1; }
.dossier-emblem .nd, .dossier-emblem .ne { fill: var(--brand); }
.dossier-meta { margin: 0; }
.dossier-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dossier-meta dt { font-size: .64rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.dossier-meta dd { margin: 0; font-size: .86rem; font-weight: 650; color: var(--ink); text-align: right; flex: 1; font-variant-numeric: tabular-nums; }

/* evaluation lens — how we assess (a signaling, non-fabricated method note) */
.dossier-lens { margin-top: 16px; }
.dossier-lens-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.dossier-lens ol { list-style: none; counter-reset: lens; margin: 0; padding: 0; }
.dossier-lens li {
  counter-increment: lens; position: relative; padding-left: 24px; margin: 0 0 7px;
  font-size: .8rem; line-height: 1.4; color: var(--ink-2);
}
.dossier-lens li:last-child { margin-bottom: 0; }
.dossier-lens li::before {
  content: counter(lens, decimal-leading-zero); position: absolute; left: 0; top: .05em;
  color: var(--brand-deep); font-size: .62rem; font-weight: 700; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.dossier-note { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.dossier-note-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.dossier-note p { margin: 0; font-size: .78rem; line-height: 1.6; color: var(--muted); }
.dossier-note a { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: var(--line-violet); }
.dossier-note a:hover { color: var(--brand-dark); text-decoration-color: currentColor; }

/* ---------- related ---------- */
.related { padding: 26px 24px 56px; }
.related-h {
  display: flex; align-items: center; gap: 20px; margin: 0 0 20px; padding-top: 34px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
}
.related-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.related .cover-title { font-size: 1.08rem; }

/* ---------- static pages ---------- */
.page-head { padding-top: 60px; max-width: 820px; }
.page-head h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1.08; letter-spacing: -.032em; font-weight: 800; text-wrap: balance; }
.page-head .lede { padding-bottom: 0; border-bottom: 0; }
.prose-page { max-width: 68ch; padding: 44px 0 12px; counter-reset: sec; }
.prose-page h2 { counter-increment: sec; margin-top: 2.1em; }
.prose-page > h2:first-child { margin-top: 0; }
.prose-page h2::before {
  content: counter(sec, decimal-leading-zero);
  position: static; display: block; width: auto; height: auto; background: none;
  margin-bottom: 12px; color: var(--brand-deep);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; margin-top: 64px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 54px 24px 30px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { color: #fff; font-weight: 800; letter-spacing: -.01em; }
.footer-tag { color: #a8aebc; font-size: .92rem; font-family: var(--serif); font-style: italic; margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; padding-top: 6px; }
.footer-nav a { color: #cbd5e1; font-size: .84rem; font-weight: 600; padding: 8px 0; transition: color .18s var(--ease); }
.footer :focus-visible { outline-color: #c4b5fd; }
.footer-nav a:hover { color: #fff; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 22px; padding-top: 20px; color: #9aa0ac; font-size: .78rem; font-variant-numeric: tabular-nums; }

/* ---------- scroll reveals (JS adds .rv, then .in when visible) ---------- */
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: rise .55s var(--ease) backwards; animation-delay: var(--d, 0ms); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .hero-figure { justify-self: start; max-width: 320px; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .dossier { max-width: 560px; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .cover-lg { padding: 28px 26px 22px; }
  .feed-head { flex-wrap: wrap; gap: 6px 20px; }
  .feed-head::after { display: none; }
  .standards-in { grid-template-columns: 1fr; }
  .std { padding: 20px 0; border-top: 1px solid var(--line); }
  .std:first-child { border-top: 0; }
  .std + .std { border-left: 0; }
  .std-v { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead-in { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 0; gap: 16px; }
  .brand { order: 1; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav {
    order: 3; width: 100%; margin: 10px -24px 0; padding: 0 24px 12px;
    overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 22px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .hero-in { padding: 52px 24px 44px; }
  .hero-figure { max-width: 300px; margin: 0 auto; justify-self: stretch; }
  .feed { padding-top: 44px; }
  .article-head { padding-top: 32px; }
  .page-head { padding-top: 40px; }
  .cover-meta { row-gap: 4px; }
  .cover-cta { margin-left: 0; flex-basis: 100%; }
  .cover-lg .cover-cta, .related .cover-cta { flex-basis: auto; margin-left: auto; }
  .footer-in { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav { justify-content: flex-start; padding-top: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
}

/* related-card date (right slot of cover-top) */
.cover-date { font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
