/* CX Ventures Weekly — design system.
   The deal desk, on tinted newsprint. Ground is the Financial Times salmon
   (#FFF1E5 — ft.com's computed html background, FT Origami's "paper" token),
   the canonical paper for a markets publication; hairlines are derived FROM the
   ground (#CCC1B7 / #E6D9CE, FT's own rule colours) rather than reached for in
   grey. Red stays the signal colour (flags, rules, indices — never decoration).
   Sora throughout with tabular figures, because a deals desk is mostly numbers.
   Signature moves: the beat ticker, the CX-AI category-map exhibit, the flagged
   lead panel, the equal-height wire of funding entries. */

:root {
  /* palette — tinted paper, dark ink (see also the dark-token compatibility
     block below: names like --surface stay meaningful, they just invert) */
  --bg: #FFF1E5;            /* FT salmon paper */
  --bg-2: #FFF9F5;          /* ticker strip, wells — FT's lighter wash */
  --surface: #FFFFFF;       /* raised panels read as fresh stock on the salmon */
  --surface-2: #FBF3EC;     /* rows, chips */
  --surface-3: #F2DFCE;     /* FT "wheat" — the single lead panel / hover */
  --ink: #1A1614;           /* headlines / primary text — 15.4:1 on paper */
  --ink-2: #33302E;         /* body text — FT's body ink, 11.9:1 */
  --muted: #66605C;         /* bylines, meta — 6.1:1 */
  --faint: #6E6863;         /* faint labels, legal — measured 5.4:1 on paper
                               (#857D77 came out at 3.65:1 on the .desk-sig label) */
  --brand: #C81E3C;         /* red darkened for AA on light paper (4.9:1) */
  --brand-2: #990F3D;       /* FT claret — small text and kickers, 7.4:1 */
  --brand-down: #A5162F;    /* pressed / hover fill */
  --brand-ink: #ffffff;
  --brand-tint: rgba(200, 30, 60, .10);
  --brand-tint-2: rgba(200, 30, 60, .05);
  --brand-line: rgba(200, 30, 60, .34);
  --ghost: rgba(26, 22, 20, .06);
  --ghost-hot: rgba(200, 30, 60, .14);
  --line: #E6D9CE;          /* FT hairline */
  --line-2: #CCC1B7;        /* FT heavier divider */

  /* form — sharp, terminal-grade edges; radii are deliberately non-uniform */
  --radius-xs: 2px;   /* chips, ticks */
  --radius-sm: 4px;   /* inputs, buttons */
  --radius: 6px;      /* code wells, the exhibit */
  --maxw: 1160px;

  /* spacing — one 4px-based scale; new components measure against this */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* shadows are near-invisible on paper — keep them shallow and warm-tinted */
  --shadow-lift: 0 1px 2px rgba(60, 40, 28, .10), 0 8px 22px rgba(60, 40, 28, .09);
  --shadow-plate: 0 1px 3px rgba(60, 40, 28, .12), 0 12px 28px rgba(60, 40, 28, .10);
  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Sora carries meta too; mono retired so operator is the network's only mono site */
  --mono: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --t-hover: .18s;
  --t-reveal: .45s;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; background: var(--bg); }
:root { font-variant-numeric: tabular-nums; }   /* a deals desk is mostly numbers */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
time { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(239, 68, 68, .30); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 9px 14px; border-radius: var(--radius-sm);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* shared meta primitives */
.chip {
  display: inline-block; font-family: var(--mono);
  font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-2); border: 1px solid var(--brand-line);
  padding: 3px 8px 2px; border-radius: var(--radius-xs); white-space: nowrap;
}
.chip-dim { color: var(--muted); border-color: var(--line-2); }
.dateline {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 241, 229, .86);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.masthead.scrolled { background: rgba(255, 241, 229, .96); border-color: var(--line-2); }
/* inverted deal-desk header — mono utility nav ON TOP, wordmark row beneath */
.desk-utility {
  display: flex; align-items: center; gap: 20px;
  padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.desk-utility .nav { min-width: 0; }
.masthead-in { display: flex; align-items: baseline; gap: 18px; height: 62px; align-items: center; transition: height .3s var(--ease-out); }
.masthead.scrolled .masthead-in { height: 52px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.035em; font-size: 1.28rem; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.brand-mark { border-radius: 7px; }
.desk-sig {
  margin-left: auto; font-family: var(--mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.nav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
  padding: 8px 0;
  transition: color var(--t-hover) ease;
}
.nav a + a::before { content: "/"; margin: 0 13px; color: var(--line-2); }
.nav a:hover { color: var(--brand); }
.nav-cta {
  margin-left: auto; flex-shrink: 0;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--mono); font-weight: 600; font-size: .66rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 12px 5px; border-radius: var(--radius-sm);
  transition: background var(--t-hover) ease, transform var(--t-hover) ease;
}
.nav-cta:hover { background: var(--brand-down); transform: translateY(-1px); }

/* ---------- ticker (index) ----------
   Fixed opaque label cell; items scroll under it on a seamless
   transform-only loop (list duplicated; each item carries its own gap
   so translateX(-50%) lands exactly on the seam). */
.ticker {
  display: flex; align-items: stretch;
  height: 42px; overflow: hidden;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.ticker-label {
  flex: none; position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-2);                       /* opaque: items pass beneath */
  border-right: 1px solid var(--line-2);
  padding-left: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  padding-right: 18px;
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--ink);
  white-space: nowrap;
}
.live-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); }
  50% { opacity: .55; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}
.ticker-viewport {
  flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 96px), transparent 100%);
}
.ticker-track {
  display: flex; width: max-content; will-change: transform;
  animation: ticker-scroll 52s linear infinite;
}
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item {
  flex: none; position: relative; padding: 0 48px 0 0; margin-left: 24px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em; color: var(--muted);
  line-height: 42px; white-space: nowrap;
}
.ticker-item::after {
  content: ""; position: absolute; right: 21px; top: 50%; margin-top: -2px;
  width: 4px; height: 4px; background: var(--brand); border-radius: 1px;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero: the deal desk ----------
   Two columns — editorial copy on the left, the CX-AI category-map exhibit on
   the right — over a quiet ambient "signal lattice" canvas. */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-fx {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}
/* mirrored split — category map anchors the LEFT rail, copy reads on the right */
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 344px minmax(0, 1fr);
  align-items: center; gap: 60px;
  padding: 74px 24px 58px;
}
.hero-copy { min-width: 0; grid-column: 2; grid-row: 1; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--brand-2);
}
.kicker::before { content: ""; width: 6px; height: 6px; background: var(--brand); border-radius: 1px; flex: none; }
.hero-title {
  margin: 0 0 20px; color: var(--ink);
  font-size: clamp(2.6rem, 5.4vw, 4.05rem); font-weight: 800;
  line-height: .98; letter-spacing: -.045em; max-width: 15ch;
  text-wrap: balance;
}
.hero-sub { font-size: 1.14rem; line-height: 1.65; color: var(--ink-2); max-width: 52ch; margin: 0 0 32px; }
.hero-signup { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.hero-signup input {
  flex: 1; min-width: 210px; padding: 13px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit;
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.hero-signup input::placeholder { color: var(--faint); font-family: var(--mono); font-size: .9rem; }
.hero-signup input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.hero-signup button {
  padding: 13px 24px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; letter-spacing: -.01em;
  transition: background var(--t-hover) ease, transform var(--t-hover) ease;
}
.hero-signup button:hover { background: var(--brand-down); transform: translateY(-1px); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center;
  margin-top: 46px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.hero-meta span { display: inline-flex; align-items: center; }
.hero-meta span + span::before {
  content: ""; width: 3px; height: 3px; background: var(--brand); border-radius: 1px;
  margin-right: 14px; flex: none;
}
.hero-meta time { color: var(--muted); margin-left: 6px; }

/* the exhibit — CX-AI category map, drawn as an inline schematic (no figures) */
.hero-fig { position: relative; margin: 0; grid-column: 1; grid-row: 1; }
.plate {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5));
}
.plate-frame { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; }
.plate-brand { fill: var(--ink); font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .14em; }
.plate-emblem-line { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plate-emblem-head { fill: var(--brand); }
.plate-rule { stroke: var(--line-2); stroke-width: 1; }
.plate-sub { fill: var(--muted); font-family: var(--mono); font-size: 7px; font-weight: 600; letter-spacing: .18em; }
.plate-illus { fill: var(--brand-2); font-family: var(--mono); font-size: 6px; font-weight: 600; letter-spacing: .2em; }
.plate-cell { fill: none; stroke: var(--line-2); stroke-width: 1; }
.plate-cell--signal { stroke: var(--brand-line); fill: var(--brand-tint-2); }
.plate-node { fill: var(--faint); }
.plate-node--signal { fill: var(--brand); }
.plate-code { fill: var(--faint); font-family: var(--mono); font-size: 6px; letter-spacing: .1em; }
.plate-cat { fill: var(--ink-2); font-family: var(--font); font-size: 8.2px; font-weight: 600; letter-spacing: .02em; }
.plate-cat--signal { fill: var(--ink); }
.plate-ret-ring { fill: none; stroke: var(--brand); stroke-width: 1; }
.plate-ret-cross { stroke: var(--brand); stroke-width: 1; stroke-linecap: round; }
.plate-ret-dot { fill: var(--brand); }
.plate-swatch { fill: none; stroke: var(--line-2); stroke-width: 1; }
.plate-legend { fill: var(--muted); font-family: var(--mono); font-size: 6px; letter-spacing: .12em; }
.plate-note { fill: var(--faint); font-family: var(--mono); font-size: 5.4px; letter-spacing: .13em; }
.fig-cap {
  margin: 12px 2px 0; font-family: var(--mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.fig-cap b { color: var(--brand-2); font-weight: 600; }

/* one-time load choreography (hero copy + article/page headers) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .article-head > *, .page-head > * { animation: rise .62s var(--ease-out) both; }
  .hero-copy > :nth-child(2), .article-head > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3), .article-head > :nth-child(3), .page-head > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4), .article-head > :nth-child(4), .page-head > :nth-child(4) { animation-delay: .21s; }
  .hero-copy > :nth-child(5), .article-head > :nth-child(5) { animation-delay: .28s; }
  .hero-fig { animation: rise .7s var(--ease-out) both; animation-delay: .2s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- coverage strip (expertise) ----------
   A desk "register": what the beat tracks, how we cover it, the standard we hold.
   The taxonomy cell carries a schematic funding-stage rail (stage names only). */
.coverage { background: var(--bg-2); border-bottom: 1px solid var(--line); }
/* asymmetric register: taxonomy rail spans the left, the two desk notes stack right */
.coverage-in { display: grid; grid-template-columns: 1.35fr 1fr; }
.cov { padding: 26px 30px 28px; border-left: 1px solid var(--line); min-width: 0; }
.cov:first-child { border-left: 0; padding-left: 24px; grid-row: 1 / 3; }
.cov:nth-child(2) { padding-bottom: 20px; }
.cov:nth-child(3) { border-top: 1px solid var(--line); padding-top: 20px; padding-right: 24px; }
.cov-k {
  display: flex; align-items: center; gap: 9px; margin: 0 0 13px;
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: var(--muted);
}
.cov-k::before { content: "//"; color: var(--brand); font-weight: 600; }
.cov-k.has-mark::before { content: none; }
.cov-v { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.62; max-width: 44ch; }
.cov-v b { color: var(--ink-2); font-weight: 600; }
.cov-mark { width: 17px; height: 17px; flex: none; }
.cov-mark-line { fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cov-mark-head { fill: var(--brand); }
.cov-rail { display: block; width: 100%; height: auto; max-width: 330px; margin: 4px 0 14px; }
.cov-rail-line { fill: none; stroke: var(--line-2); stroke-width: 1; }
.cov-rail-ring { fill: none; stroke: var(--brand-line); stroke-width: 1; }
.cov-rail-node { fill: var(--brand); }
.cov-rail-head { fill: var(--brand); }
.cov-rail-label { fill: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .06em; }

/* ---------- feed ---------- */
.feed { padding: 52px 24px 32px; }

/* lead story — flagged panel with a red corner ribbon */
.lead {
  position: relative; display: block;
  background: var(--surface); border: 1px solid var(--line);
  padding: 46px 48px 40px; margin-bottom: 56px;
  transition-property: opacity, translate, border-color, box-shadow, transform;
}
.lead:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.lead-flag {
  position: absolute; top: -1px; left: 40px;
  width: 16px; height: 38px; background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%);
  transition: height var(--t-hover) var(--ease-out);
}
.lead:hover .lead-flag { height: 46px; }
.lead-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lead-kicker {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--brand-2);
}
.lead-title {
  margin: 20px 0 16px; color: var(--ink);
  font-size: clamp(1.9rem, 4.4vw, 3.15rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -.035em; max-width: 22ch;
  text-wrap: balance;
}
.lead-excerpt { margin: 0 0 26px; max-width: 64ch; font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); }
.lead-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.lead-byline {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .11em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.lead-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .11em; color: var(--brand-2);
}
.lead-cta .arrow { transition: transform var(--t-hover) var(--ease-out); }
.lead:hover .lead-cta .arrow { transform: translateX(5px); }

/* briefing — numbered rows with oversized ghost numerals behind each row */
/* ---------- the wire ----------
   FLEX-WRAP with stretch equalisation: two entries per row, and because flex
   children stretch by default every panel in a row is exactly the same height
   with no fixed heights and no line-clamp guessing. Ref: the London Review of
   Books (measured equal-height panels in production with no heights in the CSS)
   and the FT's rule-on-the-item teaser stack with border-left column rules.
   No other site in the network uses flex for its index. */
.briefing { counter-reset: brief; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-2); }
.briefing-head {
  flex: 1 0 100%;   /* the head is a wire child now — span the full width, not a slot */
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.briefing-title {
  margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.briefing-title::before { content: "// "; color: var(--brand); font-family: var(--mono); font-weight: 600; }
.briefing-sub { color: var(--muted); font-size: .86rem; }
.briefing-count {
  margin-left: auto; font-family: var(--mono); font-size: .66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--faint);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* two per row; flex:2 1 auto + width:50% means the pair splits the wire evenly and
   stretches to a shared height. The rules live ON the item (FT), and the left rule
   is dropped on odd children so the outer edge stays clean. */
.row {
  counter-increment: brief;
  position: relative; overflow: hidden;
  flex: 2 1 auto; width: 50%; min-width: 0;
  display: block;
  padding: 24px 26px 24px 46px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line-2);
  transition-property: opacity, translate, background-color;
}
/* nth-of-type, not nth-child: .briefing-head is the first child and would offset
   the count by one, putting the rule on the wrong edge of every pair. */
.briefing .row:nth-of-type(odd) { border-left: 0; }
.row > * + * { margin-top: 12px; }
/* Entry number hangs small in the left gutter. The old 4.6rem ghost numeral was
   built to glow through a near-black ground; on salmon paper it read as a clipped
   grey smudge. FT hangs its own indices small and in claret instead. */
.briefing .row::before {
  content: counter(brief, decimal-leading-zero);
  position: absolute; left: 0; top: 30px; z-index: 0;
  font-size: .72rem; font-weight: 700; line-height: 1; letter-spacing: .08em;
  color: var(--brand-2); font-variant-numeric: tabular-nums;
  transition: color var(--t-hover) ease;
  pointer-events: none;
}
.row:hover { background: var(--surface); }
.briefing .row:hover::before { color: var(--ink); }
.row-main, .row-meta { position: relative; z-index: 1; }
.row-tags { margin-bottom: 10px; }
.row-main h3 {
  margin: 0 0 7px; color: var(--ink);
  font-size: 1.26rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em;
  transition: color var(--t-hover) ease;
}
.row:hover .row-main h3 { color: var(--brand-2); }
.row-sum { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 62ch; }
.row-meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.row-date {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row-author { color: var(--faint); font-size: .74rem; white-space: nowrap; }

.empty { color: var(--muted); padding: 48px 0; font-family: var(--mono); font-size: .9rem; }

/* ---------- article ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 100; pointer-events: none; background: transparent;
}
.progress-bar {
  display: block; height: 100%; background: var(--brand);
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

.article { padding: 0 0 44px; }
.article-head { padding-top: 44px; }
.crumb { margin: 0 0 26px; }
.back {
  display: inline-block; padding: 10px 0; margin: -10px 0;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  transition: color var(--t-hover) ease;
}
.back:hover { color: var(--brand-2); }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.article-head h1 {
  margin: 0 0 18px; color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -.038em; max-width: 24ch;
  text-wrap: balance;
}
.standfirst {
  margin: 0 0 20px; color: var(--ink); font-size: 1.28rem; font-weight: 500;
  line-height: 1.55; letter-spacing: -.012em; max-width: 56ch;
}
.byline-row { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.byline {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .11em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* prose */
.prose { max-width: 740px; padding-top: 34px; font-size: 1.09rem; line-height: 1.75; color: var(--ink-2); counter-reset: entry; }
.prose > * { max-width: 68ch; }
.prose p { margin: 0 0 22px; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 700; }
/* ledger sections — red entry numbers hang in the left margin on wide screens */
.prose h2 {
  margin: 52px 0 14px; color: var(--ink); position: relative;
  font-size: 1.62rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em;
  text-wrap: balance; counter-increment: entry;
}
.prose h2::before {
  content: counter(entry, decimal-leading-zero);
  color: var(--brand); font-family: var(--mono); font-weight: 600; font-size: .74rem;
  letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
@media (min-width: 1100px) {
  .prose h2::before { position: absolute; right: calc(100% + 22px); top: .5em; }
  .prose h2::after {
    content: ""; position: absolute; right: calc(100% + 10px); top: .42em;
    width: 1px; height: 1.1em; background: var(--line-2);
  }
}
@media (max-width: 1099.9px) {
  .prose h2::before { display: block; margin-bottom: 6px; }
}
.prose h3 { margin: 34px 0 10px; color: var(--ink); font-size: 1.24rem; font-weight: 700; letter-spacing: -.018em; }
.prose a {
  color: var(--brand-2); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--brand-line);
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}
.prose a:hover { color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 26px; }
.prose li { margin: 9px 0; }
.prose li::marker { color: var(--brand); }
.prose ul { list-style: square; }
.prose ol li::marker {
  font-family: var(--mono); font-size: .82em; font-weight: 600;
  color: var(--brand-2); content: counter(list-item, decimal-leading-zero) "  ";
}
.prose blockquote {
  margin: 36px 0; padding: 10px 0 10px 28px;
  border-left: 4px solid var(--brand);
  color: var(--ink); font-size: 1.3rem; font-weight: 600;
  line-height: 1.5; letter-spacing: -.015em; text-wrap: balance;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 12px; }
.prose code {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: var(--radius-xs);
  font-size: .88em; font-family: var(--mono); color: var(--ink);
}
.prose pre {
  background: var(--bg-2); border: 1px solid var(--line); color: #e7e5e4;
  padding: 18px 20px; border-radius: var(--radius); overflow-x: auto;
  font-size: .92rem;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { border-radius: var(--radius-xs); margin: 26px 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 44px 0; position: relative; overflow: visible; }
.prose hr::after { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 1px; background: var(--brand); }

/* the signal — the closing takeaway of every brief (articles only) */
.article:not(.page) .prose > h2:last-of-type {
  margin-top: 60px; padding-top: 20px; border-top: 2px solid var(--brand);
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brand-2);
}
.article:not(.page) .prose > h2:last-of-type::before { content: "// "; font-size: 1em; }
.article:not(.page) .prose > h2:last-of-type ~ p {
  color: var(--ink); font-size: 1.24rem; font-weight: 500; line-height: 1.6; letter-spacing: -.012em;
}

/* visited links stay legible on dark — a settled, desaturated signal red */
.prose a:visited { color: #E4A9A9; text-decoration-color: rgba(228, 169, 169, .4); }
.prose a:visited:hover { color: var(--ink); text-decoration-color: var(--brand); }

/* tables — mono heads, tabular numerals, scroll-wrapped (JS adds .table-wrap) */
.table-wrap { max-width: 68ch; margin: 0 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.table-wrap:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; line-height: 1.5; margin: 0; }
.prose .table-wrap table { min-width: 520px; }
.prose table:not(.table-wrap table) { margin-bottom: 26px; }
.prose th {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--brand);
  white-space: nowrap; background: var(--bg-2);
}
.prose td {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background-color var(--t-hover) ease; }
.prose tbody tr:hover { background: var(--surface); }
.prose td:first-child { color: var(--ink); font-weight: 600; }

/* key takeaways — the red-ruled "signal panel" (JS tags .tk-h + .takeaways) */
.prose .tk-h {
  margin: 52px 0 0; padding: 18px 24px 0; border: 1px solid var(--line); border-bottom: 0;
  border-top: 2px solid var(--brand); background: var(--surface); max-width: min(100%, 660px);
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brand-2);
}
.prose .tk-h::before { content: "// "; color: var(--brand); font-family: var(--mono); font-size: 1em; }
.prose ul.takeaways {
  margin: 0 0 34px; padding: 14px 24px 20px 44px; border: 1px solid var(--line); border-top: 0;
  background: var(--surface); max-width: min(100%, 660px); list-style: square;
}
.prose ul.takeaways li { margin: 10px 0; font-size: 1rem; line-height: 1.65; }
.prose ul.takeaways li strong { color: var(--ink); }

/* FAQ — briefing Q&A with mono markers (JS tags .faq-h + .faq-item) */
.prose h2.faq-h { margin: 56px 0 6px; }
.prose p.faq-item {
  position: relative; margin: 0; padding: 20px 0 20px 40px;
  border-bottom: 1px solid var(--line); max-width: min(100%, 660px);
}
.prose p.faq-item::before {
  content: "Q"; position: absolute; left: 0; top: 22px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  color: var(--brand-2); border: 1px solid var(--brand-line);
  width: 24px; height: 24px; line-height: 23px; text-align: center;
  border-radius: var(--radius-xs);
}
.prose p.faq-item > strong:first-child {
  display: block; color: var(--ink); font-weight: 700; letter-spacing: -.015em;
  margin-bottom: 6px;
}
/* FAQ answers must not inherit the closing-signal enlargement */
.article:not(.page) .prose > h2.faq-h ~ p { font-size: 1.02rem; font-weight: 400; color: var(--ink-2); line-height: 1.7; letter-spacing: 0; }
.article:not(.page) .prose > h2.faq-h {
  margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--brand);
  max-width: min(100%, 660px);
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brand-2);
}

/* signup states — the script toggles is-wait / is-ok / is-err */
.hero-signup button:disabled, .prose form button:disabled { cursor: wait; opacity: .75; transform: none; }
.hero-signup button.is-ok, .prose form button.is-ok { background: var(--surface-3); color: var(--ink); opacity: 1; }
.hero-signup button.is-err, .prose form button.is-err {
  background: transparent; color: var(--brand-2);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}

/* dark autofill — kill the pale WebKit flash */
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 99999s ease-in-out 0s;
}

/* forms living inside markdown pages (inline-styled at source; unified here) */
.prose form input, .prose form textarea, .prose form button { border-radius: var(--radius-sm) !important; }
.prose form input, .prose form textarea { transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.prose form input:focus, .prose form textarea:focus {
  outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-tint);
}
.prose form input::placeholder, .prose form textarea::placeholder { color: var(--faint); font-family: var(--mono); font-size: .9rem; }
.prose form button { transition: filter var(--t-hover) ease, transform var(--t-hover) ease; }
.prose form button:hover { filter: brightness(1.14); transform: translateY(-1px); }

/* ---------- static pages ---------- */
.page-head { padding-top: 52px; }
.page-kicker {
  margin: 0 0 18px; font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--faint);
}
.page-kicker .k-sep { color: var(--brand); margin: 0 4px; }
.page-title {
  margin: 0 0 18px; color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800;
  line-height: 1.02; letter-spacing: -.04em; text-wrap: balance;
}
.page-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--brand); margin-top: 28px; }
.page-head .standfirst { margin-bottom: 30px; }
.page .prose { counter-reset: pagesec; padding-bottom: 8px; }
.page .prose h2 { counter-increment: pagesec; margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line); }
.page .prose > h2:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
.page .prose h2::before {
  content: counter(pagesec, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; color: var(--brand-2);
}

/* ---------- related ---------- */
.related { padding: 8px 24px 64px; }
.related-h {
  margin: 0 0 4px; padding-top: 30px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.related-h::before { content: "// "; color: var(--brand); }
.related-list .row { width: 100%; border-left: 0; padding: 22px 16px 22px 8px; }
.related-list .row h3 { font-size: 1.06rem; }

/* ---------- footer ---------- */
.footer { background: #080606; color: var(--muted); margin-top: 64px; border-top: 1px solid var(--line); }
.footer-in {
  display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 40px;
  padding: 52px 24px 0; align-items: start;
}
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-name { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.footer-tag { color: var(--faint); font-size: .88rem; margin-top: 3px; max-width: 34ch; }
.footer-h {
  margin: 0 0 14px; font-family: var(--mono); font-size: .64rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--faint);
}
.footer-col a {
  display: block; color: var(--muted); font-size: .92rem; padding: 9px 0; /* ≥40px touch target */
  text-decoration: underline transparent; text-underline-offset: 4px;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}
.footer-col a:hover { color: var(--ink); text-decoration-color: var(--brand); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-legal {
  grid-column: 1 / -1; margin-top: 40px; padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; color: var(--faint); line-height: 1.8;
}

/* ---------- scroll reveals (JS adds .js; IO adds .in) ---------- */
.js [data-reveal] {
  opacity: 0; translate: 0 12px;
  transition:
    opacity var(--t-reveal) var(--ease-out) var(--rd, 0ms),
    translate var(--t-reveal) var(--ease-out) var(--rd, 0ms),
    background-color var(--t-hover) ease,
    border-color var(--t-hover) ease,
    box-shadow var(--t-hover) ease,
    transform var(--t-hover) var(--ease-out);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-item[aria-hidden="true"] { display: none; }
  .masthead, .masthead-in, .lead, .lead-flag, .lead-cta .arrow, .row, .briefing .row::before,
  .nav-cta, .hero-signup button, .prose form button { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 48px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-fig { grid-column: 1; grid-row: 2; max-width: 400px; }
  .hero-sub { max-width: 60ch; }
  .coverage-in { grid-template-columns: 1fr; }
  .cov { border-left: 0; border-top: 1px solid var(--line); padding: 22px 24px; }
  .cov:first-child { border-top: 0; grid-row: auto; }
  .cov:nth-child(3) { border-top: 1px solid var(--line); padding-top: 22px; padding-right: 24px; }
  .cov-rail { max-width: 360px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead-in { height: 54px; }
  .masthead.scrolled .masthead-in { height: 54px; }
  .brand { flex: 1; font-size: 1.08rem; }
  .desk-sig { display: none; }
  .nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .nav a { padding: 10px 0; }
  .nav a + a::before { margin: 0 10px; }
  .ticker { height: 38px; }
  .ticker-label { padding-right: 14px; letter-spacing: .12em; }
  .ticker-item { line-height: 38px; }
  .hero-in { padding: 46px 24px 40px; gap: 34px; }
  .hero-fig { max-width: 340px; }
  .fig-cap { font-size: .6rem; }
  .hero-meta { gap: 10px 22px; margin-top: 36px; }
  .cov { padding: 20px 24px; }
  .feed { padding: 40px 24px 24px; }
  .lead { padding: 34px 24px 28px; margin-bottom: 44px; }
  .lead-flag { left: 24px; height: 32px; }
  .lead:hover .lead-flag { height: 38px; }
  .briefing-head { flex-wrap: wrap; row-gap: 4px; }
  .briefing-sub { display: none; }
  .row { width: 100%; border-left: 0; padding: 24px 8px 24px 40px; }
  .briefing .row::before { top: 24px; left: 0; }
  .briefing .row:hover::before { translate: 5px 0; }
  .row-meta { gap: 12px; }
  .article-head { padding-top: 34px; }
  .page-head { padding-top: 38px; }
  .prose { font-size: 1.05rem; }
  .prose blockquote { font-size: 1.16rem; padding-left: 20px; }
  .related-list .row { padding-left: 8px; }
  .footer-in { grid-template-columns: 1fr; gap: 30px; padding-top: 42px; }
  .footer-legal { margin-top: 8px; }
}

/* ── article images (hero + card thumbs) ─────────────────────────────── */
.lead-thumb { display:block; width:100%; height:220px; object-fit:cover; border:1px solid var(--line); margin:18px 0 20px; }
/* Tape entries carry no art: only 5 of 21 briefs have an image, and a photo inside a
   ledger row broke the scan. The lead entry keeps its exhibit. */
.row-thumb { display: none; }
.post-hero { margin:6px auto 28px; }
.post-hero img { display:block; width:100%; aspect-ratio:2/1; object-fit:cover; border:1px solid var(--line); }
@media (max-width:640px){ .lead-thumb{ height:140px; } .row-thumb{ width:100%; height:90px; } }
