/* datum — landing page
   Palette: bg #232323 · text #FFFFFF · muted #989898 · line #59575A
            light #DBD6DC · panel #2A2A2A · row #292929 · bids #5FA97C · offers #C96A72 */

html, body {
  margin: 0;
  padding: 0;
  background: #232323;
  color: #FFFFFF;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: #FFFFFF; }
a:hover { color: #989898; }

::selection { background: #DBD6DC; color: #232323; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* Type */

h1 {
  margin: 0;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 18ch;
}

h2 {
  margin: 0 0 56px 0;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.15;
}

.tight-heading { margin-bottom: 36px; }

.kicker {
  margin: 0 0 26px 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #989898;
}

/* Buttons and links */

.button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #FFFFFF;
  padding: 13px 26px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button:hover {
  background: #2A2A2A;
  color: #FFFFFF;
}

.quiet-link {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #989898;
}

.quiet-link:hover { color: #FFFFFF; }

/* Masthead */

.masthead { border-bottom: 1px solid #59575A; }

.masthead-inner {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  letter-spacing: 0.01em;
}

.wordmark-mark {
  width: 63px;
  height: auto;
  flex-shrink: 0;
  filter: invert(1);
}

a.wordmark:hover .wordmark-mark { opacity: 0.6; }

.masthead-link {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #59575A;
  padding-bottom: 3px;
}

/* Hero */

.hero .container {
  padding-top: 110px;
  padding-bottom: 88px;
}

.hero .kicker { margin-bottom: 28px; }

.lede {
  margin: 36px 0 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: #989898;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 44px;
}

/* Hero strip */

.strip {
  border-top: 1px solid #59575A;
  border-bottom: 1px solid #59575A;
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.strip-cell {
  padding: 24px 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  border-left: 1px solid #59575A;
}

.strip-cell:first-child {
  padding-left: 0;
  border-left: none;
}

.strip-cell:last-child { padding-right: 0; }

.strip-sub { border-top: 1px solid #59575A; }

.strip-note {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #989898;
}

/* Sections */

.section .container {
  padding-top: 104px;
  padding-bottom: 96px;
}

.bordered-top { border-top: 1px solid #59575A; }

.section-note {
  margin: 40px 0 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: #989898;
  max-width: 65ch;
}

.section-note.flush { margin-top: 0; }

.section-intro {
  margin: -16px 0 48px 0;
  font-size: 16px;
  line-height: 1.75;
  color: #989898;
  max-width: 65ch;
}

/* 01 — The problem */

.ruled-list { border-top: 1px solid #59575A; }

.ruled-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid #59575A;
}

.ruled-term {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.ruled-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #989898;
  max-width: 65ch;
}

.pull-quote {
  margin: 52px 0 0 0;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.45;
  max-width: 40ch;
}

/* 02 — The mechanism */

.section-light {
  background: #DBD6DC;
  color: #232323;
}

.section-light .container { padding-bottom: 100px; }

.section-light .kicker { color: #59575A; }

.mechanism-heading { margin-bottom: 60px; }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #59575A;
  border-left: 1px solid #59575A;
}

.step {
  padding: 28px 32px 32px 32px;
  border-right: 1px solid #59575A;
  border-bottom: 1px solid #59575A;
}

.step-label {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.step-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #232323;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  margin-top: 72px;
  align-items: start;
}

.why-label {
  margin: 0 0 14px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.why-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #232323;
}

.diagram { margin: 0; }

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #59575A;
}

/* Tables (03 Disclosure, 04 Your mandate) */

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #2A2A2A;
  border: 1px solid #59575A;
  font-size: 15px;
}

th {
  text-align: left;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #989898;
  border-bottom: 1px solid #59575A;
}

td {
  padding: 18px 24px;
  color: #FFFFFF;
  vertical-align: top;
}

td.muted { color: #989898; }

tbody tr:nth-child(odd) { background: #292929; }

.mandate-table th { width: 50%; }

.mandate-table th + th,
.mandate-table td + td { border-left: 1px solid #59575A; }

/* Close */

.close .container { padding-bottom: 88px; }

.close-action { margin-top: 44px; }

/* Footer */

.site-footer { border-top: 1px solid #59575A; }

.site-footer .container {
  padding-top: 56px;
  padding-bottom: 64px;
}

.legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #8C8C8C;
  max-width: 90ch;
}

.colophon {
  margin: 28px 0 0 0;
  font-size: 13px;
  color: #8C8C8C;
}

/* Responsive */

@media (max-width: 760px) {
  /* The masthead CTA crowds the wordmark on a phone; every page still has a
     prominent in-page "Request a briefing" button. */
  .masthead-link { display: none; }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero .container {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .section .container {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .strip-grid { grid-template-columns: 1fr; }

  .strip-cell {
    padding: 18px 0;
    border-left: none;
    border-top: 1px solid #59575A;
  }

  .strip-cell:first-child { border-top: none; }

  .ruled-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .steps-grid { grid-template-columns: 1fr; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Data panels ──────────────────────────────────────────────────────────
   Dark-theme chart components for the index. Deliberately duplicates the
   light versions in briefing.css (partner pages) rather than sharing a
   variable layer — those five pages are live sales assets and must not be
   put at risk for DRY-ness. Chart hue #7FA3C9 validated >=3:1 on #2A2A2A.
   Reveal/animation styles are gated behind .js so the public page never
   hides content when scripts fail. */

.progress {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(89, 87, 90, 0.35);
  z-index: 70;
  pointer-events: none;
}

.progress-fill {
  width: 100%;
  height: 0%;
  background: #DBD6DC;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.panel {
  background: #2A2A2A;
  border: 1px solid #59575A;
  padding: 24px 26px 18px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.panel-sub {
  margin: 6px 0 0 0;
  font-size: 14px;
  color: #989898;
}

.panel-src {
  margin: 16px 0 0 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #989898;
}

/* Column bars */

.colbars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.colbar { flex: 1; min-width: 0; }

.barzone {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
}

.bar {
  width: 100%;
  height: var(--h);
  min-height: 3px;
  background: #7FA3C9;
  opacity: 0.45;
  transform-origin: bottom;
}

.js .bar {
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s), opacity 0.25s ease;
}

.js .in-view .bar { transform: scaleY(1); }

.colbar.hl .bar,
.colbar:hover .bar,
.colbar:focus-visible .bar { opacity: 1; }

.bar-val {
  position: absolute;
  bottom: calc(var(--h) + 7px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #989898;
  white-space: nowrap;
}

.colbar.hl .bar-val { color: #FFFFFF; font-weight: 600; }

.js .bar-val {
  opacity: 0;
  transition: opacity 0.5s ease calc(var(--d, 0s) + 0.5s);
}

.js .in-view .bar-val { opacity: 1; }

.bar-cap {
  margin-top: 9px;
  text-align: center;
  font-size: 12px;
  color: #989898;
  white-space: nowrap;
}

/* Horizontal range bars */

.ranges { margin-top: 26px; }

.range-row {
  display: grid;
  grid-template-columns: 150px 1fr 78px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
}

.range-name {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  line-height: 1.5;
}

.range-name small {
  display: block;
  color: #989898;
  font-size: 11px;
}

.range-track {
  position: relative;
  height: 8px;
  background: #232323;
  border: 1px solid #59575A;
}

.range-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  min-width: 4px;
  background: #7FA3C9;
  opacity: 0.45;
  transform-origin: left;
}

.js .range-fill {
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0s), opacity 0.25s ease;
}

.js .in-view .range-fill { transform: scaleX(1); }

.range-row.hl .range-fill,
.range-row:hover .range-fill,
.range-row:focus-visible .range-fill { opacity: 1; }

.range-val {
  font-size: 13px;
  color: #989898;
  text-align: right;
  white-space: nowrap;
}

.range-row.hl .range-val { color: #FFFFFF; font-weight: 600; }

/* Data-table fallback (inherits the page's dark table styles) */

.chart-data { margin-top: 10px; }

.chart-data summary {
  font-size: 12px;
  color: #989898;
  cursor: pointer;
}

.chart-data table { margin-top: 10px; font-size: 13px; }
.chart-data th, .chart-data td { padding: 8px 12px; }

/* Tooltip — inverted for the dark page */

.chart-tip {
  position: fixed;
  z-index: 99;
  box-sizing: border-box;
  max-width: min(300px, calc(100vw - 24px));
  background: #DBD6DC;
  color: #232323;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.chart-tip.show { opacity: 1; }

[data-tip] { cursor: default; }
[data-tip]:focus-visible { outline: 1px solid #DBD6DC; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .bar { transform: scaleY(1); transition: none; }
  .js .bar-val { opacity: 1; transition: none; }
  .js .range-fill { transform: scaleX(1); transition: none; }
}

@media (max-width: 760px) {
  .panel-grid { grid-template-columns: 1fr; }
  .barzone { height: 165px; }
  .colbars { gap: 8px; }
  .bar-cap, .bar-val { font-size: 10px; }
  .range-row { grid-template-columns: 110px 1fr 66px; gap: 10px; }
}

/* ── Typographic hierarchy ────────────────────────────────────────────────
   Three tiers: emphasis (strong) / body (default) / recessive (.dim).
   Monochrome by design — accent colours stay reserved for CTAs and chart
   marks, so text never wears a data colour. Contrast headroom here is thin
   (body is 5.45:1 against a 4.5:1 AA floor), so hierarchy is built by
   raising emphasis rather than dimming body copy. */

strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* §02 runs dark-on-light — white emphasis would be invisible there. */
.section-light strong { color: #232323; }

em { font-style: italic; }

.dim { color: #949494; }

/* Recessive citation text */
.panel-src, .chart-data summary, .range-name small { color: #949494; }
