/* ==========================================================================
   Financial Administration — stylesheet
   Type: EB Garamond (wordmark, headings), Inter Tight (labels) + Inter (text). Palette: "Open Water".
   See design-research/02-typography-and-color.md for derivation.
   ========================================================================== */

/* EB Garamond (OFL, assets/fonts/OFL-EBGaramond.txt): variable 400–800, Latin subset with true small capitals. */
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/serif-garamond-roman.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/serif-garamond-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/display-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — Ledger */
  --bg: #E8EDEF;
  --surface: #F3F6F7;
  --surface-alt: #DCE4E8;
  --ink: #0E2338;
  --ink-2: #4A5A69;
  --rule: #C6D1D8;
  --field: #7D8C98;
  --accent: #1F5277;
  --accent-ink: #FFFFFF;
  --footer-bg: #0B2033;
  --footer-ink: #E2E9EE;
  --footer-ink-2: #9EB0BF;
  --footer-rule: rgba(226, 233, 238, 0.16);
  --error: #9A3324;

  /* Data-visualization series, in order */
  --viz-1: #28528E;
  --viz-2: #B46B40;
  --viz-3: #874A7B;
  --viz-4: #348AB6;
  --viz-5: #99732B;
  --viz-6: #00856E;

  /* Type */
  --font-serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --font-display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1344px;
  --gutter: clamp(20px, 3.5vw, 48px);
  --header-h: 92px;
  --section: clamp(72px, 9vw, 128px);
  --radius: 0;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* Custom scrollbar.
   On mouse/trackpad devices the native bar is hidden and replaced by a thin overlay
   (assets/js/main.js) that floats over content: no gutter, so margins stay even and
   nothing (cookie bar, footer) is cut by a scrollbar track. Touch devices keep native. */
@media (hover: hover) and (pointer: fine) {
  html.has-overlay-scroll { scrollbar-width: none; }
  html.has-overlay-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.oscroll {
  position: fixed; top: 0; right: 0; bottom: var(--oscroll-bottom, 0px); width: 14px; z-index: 55;
  opacity: 0; transition: opacity .3s var(--ease), bottom .35s var(--ease);
}
.oscroll.is-active, .oscroll:hover, .oscroll.is-dragging { opacity: 1; }
.oscroll__thumb {
  position: absolute; right: 3px; top: 0; width: 5px; min-height: 40px; border-radius: 6px;
  background: rgba(120, 120, 120, 0.55);
  transition: width .15s var(--ease), background-color .15s var(--ease);
  cursor: default;
}
.oscroll:hover .oscroll__thumb, .oscroll.is-dragging .oscroll__thumb { width: 8px; background: rgba(110, 110, 110, 0.75); }
html.oscroll-dragging, html.oscroll-dragging * { user-select: none; cursor: default; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--selection, #D3DDE6); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6, .display, .h3, .h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.display, h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.022em; font-weight: 500; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.016em; font-weight: 500; }
h3, .h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 20px; line-height: 1.3; }
h5, .h5 { font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
}
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------------- Wordmark ---------------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------------- Buttons & links ---------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  font-family: var(--font-text); font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--solid { background: var(--btn-bg, var(--ink)); color: var(--btn-ink, var(--bg)); }
.btn--solid:hover { background: var(--btn-hover, var(--accent)); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--field); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--portal {
  min-height: 36px; padding: 0 16px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--btn-bg, var(--ink)); color: var(--btn-ink, var(--bg)); border-color: var(--btn-bg, var(--ink));
}
.btn--portal:hover { background: var(--btn-hover, var(--accent)); border-color: var(--btn-hover, var(--accent)); }

.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 15.5px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule); padding-bottom: 3px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow::after { content: "→"; color: var(--accent); }
.link-arrow:hover { border-color: var(--ink); gap: 14px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled, .site-header.has-panel { border-bottom-color: var(--rule); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.site-header__brand { text-decoration: none; flex: none; display: inline-flex; align-items: center; height: 100%; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav { height: 100%; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; gap: 4px; }
.nav { margin-left: auto; }
.site-header__actions { margin-left: 24px !important; }
.nav__item { display: flex; align-items: stretch; }
.nav__trigger {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 14px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.nav__trigger::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__trigger[aria-expanded="true"]::after, .nav__trigger.is-current::after { transform: scaleX(1); }
.nav__trigger.is-current:not([aria-expanded="true"])::after { background: var(--accent); }
.nav__chev { color: var(--ink-2); transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .18s var(--ease), transform .3s cubic-bezier(0.65, 0.05, 0.1, 1.05);
  overflow: hidden;
}
.nav__panel.is-open { opacity: 1; transform: none; }
.nav__panel-inner { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: 0; padding-block: 0; }
.nav__panel-lead { padding: 48px 48px 56px 0; }
.nav__panel-links { background: var(--surface-alt); padding: 40px 0 48px 48px !important; position: relative; }
.nav__panel-links::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--surface-alt); }
.nav__panel-title { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -0.012em; text-decoration: none; }
.nav__panel-title span { color: var(--accent); transition: margin .2s var(--ease); }
.nav__panel-title:hover span { margin-left: 4px; }
.nav__panel-summary { color: var(--ink-2); font-size: 15px; margin-top: 12px; max-width: 34ch; }
.nav__panel-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 560px); align-content: start; }
.nav__panel-links a {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--rule);
  font-size: 15.5px; text-decoration: none; color: var(--ink); transition: color .15s var(--ease), padding .2s var(--ease);
}
.nav__panel-links a:hover, .nav__panel-links a:focus-visible { color: var(--accent); padding-left: 6px; }
.nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 35, 58, 0.18); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before { left: 0; top: -6px; }
.menu-toggle__bars::after { left: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--rule); background: var(--bg); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding-bottom: 32px; }
.mobile-nav__group { border-bottom: 1px solid var(--rule); }
.mobile-nav__group summary { list-style: none; padding: 18px 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group summary::after { content: "+"; color: var(--ink-2); font-weight: 400; }
.mobile-nav__group[open] summary::after { content: "–"; }
.mobile-nav__group ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-nav__group a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2); }
.mobile-nav .btn--portal { margin-top: 28px; min-height: 48px; font-size: 13px; }

@media (max-width: 1200px) {
  .nav__trigger { padding: 0 10px; font-size: 14.5px; }
  .site-header__bar { gap: 24px; }
}
@media (max-width: 1200px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header__actions .btn--portal { display: none; }
  html.menu-open { overflow: hidden; }
  .site-header__actions { margin-left: auto !important; }
}

/* ---------------- Sections ---------------- */
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--rule > .container { border-top: 1px solid var(--rule); padding-top: var(--section); }
.section--rule { padding-top: 0; }
.section--alt { background: var(--surface-alt); }

/* ---------------- Home hero: statement left, research panel right ---------------- */
.hero { padding-block: clamp(56px, 7vw, 104px) clamp(72px, 8vw, 120px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(48px, 7vw, 120px); align-items: center;
}
.hero__copy .display { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 32px; max-width: 14ch; }
.hero__copy .lede { max-width: 54ch; }
.hero__copy p:not(.lede) { color: var(--ink-2); max-width: 56ch; font-size: 16px; }
.hero__copy .link-row { margin-top: 36px; }

.rpanel { width: 100%; }
.rpanel__frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(20, 35, 58, 0.03), 0 18px 40px -24px rgba(20, 35, 58, 0.18);
}
.rpanel__slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 34px);
  opacity: 0; visibility: hidden; transform: translateX(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.rpanel__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s; }
.rpanel__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.rpanel__kicker { color: var(--accent); }
.rpanel__count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rpanel__title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.22; letter-spacing: -0.012em;
  margin: 18px 0 4px; max-width: 30ch;
}
.rpanel__sub { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.rpanel__chart { flex: 1; min-height: 0; margin: 6px 0 4px; }
.rpanel__chart svg { width: 100%; height: 100%; overflow: visible; }
.rpanel__chart text { font-family: var(--font-text); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.rpanel__chart .grid { stroke: var(--rule); stroke-width: 1; }
.rpanel__chart .axis { stroke: var(--ink); stroke-width: 1; }
.rpanel__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-top: 12px; border-top: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-2); line-height: 1.4;
}
.rpanel__foot a { color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.rpanel__foot a::after { content: " →"; color: var(--accent); }
.rpanel__foot a:hover { text-decoration: underline; }
.rpanel__dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.rpanel__dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.rpanel__dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.rpanel__dot:hover::before { box-shadow: inset 0 0 0 1px var(--ink); }
.rpanel__dot[aria-current="true"]::before { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); transform: scale(1.1); }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy .display { max-width: 15ch; }
  .rpanel { max-width: 560px; }
}

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.split__head h2 { max-width: 18ch; }
.split__head p:not(.eyebrow) { color: var(--ink-2); margin-top: 20px; }
.split__body { padding-top: 34px; }
.split__body .link-arrow { margin-top: 28px; }

.index-list { list-style: none; margin: 0; padding: 0; counter-reset: idx; border-top: 1px solid var(--ink); }
.index-list li {
  counter-increment: idx; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px;
  padding: 28px 0 30px; border-bottom: 1px solid var(--rule);
}
.index-list li::before {
  content: counter(idx, decimal-leading-zero);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent);
  padding-top: 5px; grid-row: span 2;
}
.index-list h3 { margin-bottom: 8px; }
.index-list p { color: var(--ink-2); }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.cols-3 article { border-top: 1px solid var(--ink); padding-top: 28px; }
.cols-3 p { color: var(--ink-2); }

.closing { background: var(--surface); border-top: 1px solid var(--rule); padding-block: clamp(80px, 10vw, 136px); }
.closing__inner { max-width: var(--max); }
.closing h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 20ch; }
.closing p { color: var(--ink-2); font-size: 18px; margin-bottom: 36px; }

@media (max-width: 860px) {
  .split, .cols-3 { grid-template-columns: 1fr; }
  .split__body { padding-top: 0; }
}

/* ---------------- Research figures ---------------- */
.paper-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.paper { padding: 36px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; column-gap: 48px; }
.paper__meta { grid-row: span 3; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.paper__title { font-size: 26px; margin-bottom: 12px; }
.paper__title a { text-decoration: none; }
.paper__title a:hover { color: var(--accent); }
.paper__abstract { color: var(--ink-2); }
.paper__links { display: flex; gap: 28px; margin-top: 12px; }
@media (max-width: 760px) { .paper { grid-template-columns: 1fr; } .paper__meta { flex-direction: row; gap: 16px; margin-bottom: 8px; } }

/* ---------------- Interior pages ---------------- */
.page-intro { padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7vw, 96px); }
.page-intro--compact { padding-bottom: clamp(32px, 4vw, 56px); }
.page-intro .display { max-width: 20ch; margin-bottom: 32px; }
.page-intro__body { max-width: 760px; }
.page-intro__body p:not(.lede) { color: var(--ink-2); }

.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: var(--section); border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 80px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc__label { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.doc__body { max-width: 760px; }
.doc__section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); }
.doc__section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc__section h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 20px; }
.doc__section p { color: var(--ink-2); }
.doc__section--boxed { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 40px; }
.doc__section--boxed:last-child { padding-bottom: 40px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps__item { display: grid; grid-template-columns: 120px minmax(0, 5fr) minmax(0, 7fr); gap: 0 48px; padding: 40px 0 44px; border-bottom: 1px solid var(--rule); }
.steps__num { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); padding-top: 6px; font-variant-numeric: tabular-nums; }
.steps__item h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.steps__item p { color: var(--ink-2); }
@media (max-width: 860px) { .steps__item { grid-template-columns: 56px 1fr; } .steps__item p { grid-column: 2; margin-top: 12px; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px; margin-top: 36px; }
.person__photo { aspect-ratio: 4 / 5; background: var(--surface-alt); margin-bottom: 18px; }
.person__name { font-size: 19px; margin-bottom: 2px; }
.person__role { font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.person__bio { font-size: 15px; }

.faq { max-width: 880px; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 26px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h2 { font-size: clamp(19px, 1.7vw, 22px); margin: 0; letter-spacing: -0.008em; }
.faq__item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-2); flex: none; transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover h2 { color: var(--accent); }
.faq__item > p { color: var(--ink-2); padding: 0 48px 28px 0; margin: 0; }

.prose { max-width: 760px; padding-bottom: var(--section); }
.prose h2 { font-size: 24px; margin-top: 48px; }
.prose p { color: var(--ink-2); }
.draft-note { font-size: 14px; padding: 12px 16px; background: var(--surface-alt); border-left: 3px solid var(--field); color: var(--ink) !important; }

/* ---------------- Contact ---------------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 72px); }
.form { max-width: 640px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 8px; }
.field__opt { color: var(--ink-2); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--field); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 91, 124, 0.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.form__hp { position: absolute; left: -9999px; }
.form__status { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.form__done { padding: 40px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.form__done:focus { outline: none; }
.notice { padding: 28px; background: var(--surface); border: 1px solid var(--rule); margin-bottom: 40px; }
.notice p { color: var(--ink-2); font-size: 15px; }
.contact__details { margin: 0; }
.contact__details div { display: grid; grid-template-columns: 180px 1fr; column-gap: 32px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.contact__details div:first-child { border-top: 1px solid var(--rule); }
.contact__details dt { color: var(--ink-2); }
.contact__details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact__details div { grid-template-columns: 1fr; row-gap: 4px; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-top: 72px; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wordmark { color: var(--footer-ink); }
.site-footer__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding-bottom: 56px; }
.site-footer__desc { color: var(--footer-ink-2); font-size: 14.5px; margin-top: 24px; max-width: 46ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { padding: 5px 0; font-size: 14.5px; }
.site-footer__legal { border-top: 1px solid var(--footer-rule); padding-block: 28px 40px; font-size: 13px; color: var(--footer-ink-2); display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.site-footer__legal p { max-width: none; margin: 0; }
@media (max-width: 760px) { .site-footer__grid, .site-footer__legal { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------- Cookie notice ----------------
   Modelled on Bridgewater's: a slim, full-width bar fixed to the bottom, one line of copy,
   no overlay. Adds equal-weight choices so consent is explicit. */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--cookie-bg, rgba(20, 35, 58, 0.96)); color: var(--footer-ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(100%); transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__inner {
  max-width: var(--max); margin-inline: auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 60px;
}
.cookie__text { font-size: 13.5px; line-height: 1.5; color: var(--footer-ink); margin: 0; max-width: none; }
.cookie__text a { color: #fff; }
.cookie__actions { display: flex; gap: 8px; flex: none; }
.cookie .btn { min-height: 34px; font-size: 13px; padding: 0 14px; }
.cookie .btn--quiet, .cookie .btn--solid { background: transparent; color: var(--footer-ink); border-color: rgba(232, 227, 217, 0.5); }
.cookie .btn--quiet:hover, .cookie .btn--solid:hover { background: var(--footer-ink); color: var(--ink); border-color: var(--footer-ink); }
@media (max-width: 720px) { .cookie__inner { flex-direction: column; align-items: stretch; padding-block: 14px; } .cookie__actions .btn { flex: 1; } }

/* ---------------- Development markers ---------------- */
/* Elements awaiting approved facts. Remove the attribute when the content is final. */

@media (max-width: 1200px) { .site-header .wordmark { font-size: 17px; } }
@media (max-width: 420px) { .site-header .wordmark { font-size: 14.5px; letter-spacing: 0.05em; } }
@media (max-width: 560px) {
  .rpanel__frame { aspect-ratio: 4 / 5.2; }
  .rpanel__slide { padding: 20px; }
}

/* ---------------- Study pages ---------------- */
.study-intro .eyebrow a { color: inherit; text-decoration: none; }
.study-intro .eyebrow a:hover { text-decoration: underline; }
.study-intro .display { max-width: 24ch; }
.study-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); margin: 0; }
.study-meta a { color: var(--ink); font-weight: 500; }
.prose-study { max-width: 780px; }
.prose-study h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 64px 0 20px; padding-top: 40px; border-top: 1px solid var(--rule); }
.prose-study h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose-study h3 { font-size: 20px; margin: 40px 0 12px; }
.prose-study h4 { font-size: 16px; margin: 28px 0 8px; }
.prose-study p, .prose-study li { color: var(--ink-2); }
.prose-study strong { color: var(--ink); font-weight: 600; }
.prose-study ul, .prose-study ol { padding-left: 1.2em; margin: 0 0 1.2em; max-width: 68ch; }
.prose-study li { margin-bottom: 0.5em; }
.prose-study li::marker { color: var(--accent); }
.prose-study code { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; background: var(--surface-alt); padding: 1px 5px; }
.prose-study hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
.prose-study blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); }
.prose-study blockquote p { color: var(--ink); font-size: 18px; }
.study-fig { margin: 40px 0; padding: clamp(16px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--rule); }
.study-fig img { width: 100%; height: auto; }
.study-fig figcaption { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.45; }
.study-fig__title { color: var(--ink); font-weight: 600; }
.study-fig__sub, .study-fig__src { color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 28px 0; border-top: 1px solid var(--ink); }
.prose-study table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums lining-nums; }
.prose-study th { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.prose-study td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.prose-study td.num { text-align: right; white-space: nowrap; }
.study-sub { max-width: 60ch; color: var(--ink-2) !important; margin: -8px 0 28px; }

/* ---------------- Home: section head, matter grid, roles ---------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { max-width: 22ch; margin-bottom: 0; }
.section-head .link-arrow { flex: none; }

.matters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.matters li { border-bottom: 1px solid var(--rule); }
.matters li:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.matter { display: block; height: 100%; padding: 28px 28px 32px 0; text-decoration: none; color: inherit; transition: background-color .2s var(--ease); position: relative; }
.matters li:not(:nth-child(3n + 1)) .matter { padding-left: 28px; }
.matter h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; padding-right: 28px; }
.matter p { font-size: 15px; color: var(--ink-2); margin: 0; }
.matter::after { content: "→"; position: absolute; top: 28px; right: 24px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.matter:hover h3 { color: var(--accent); }
.matter:hover::after, .matter:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .matters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matters li { border-right: 0 !important; }
  .matters li:nth-child(odd) { border-right: 1px solid var(--rule) !important; }
  .matters li .matter { padding-left: 0 !important; }
  .matters li:nth-child(even) .matter { padding-left: 24px !important; }
}
@media (max-width: 600px) {
  .matters { grid-template-columns: 1fr; }
  .matters li { border-right: 0 !important; }
  .matters li:nth-child(even) .matter { padding-left: 0 !important; }
  .matter { padding: 22px 0 24px; }
}

.roles { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0; position: relative; }
.role { background: var(--surface); border: 1px solid var(--rule); padding: 32px 32px 36px; position: relative; }
.role + .role { border-left: 0; }
.role--us { background: var(--emph-bg, var(--ink)); color: var(--bg); border-color: var(--emph-bg, var(--ink)); margin-block: -16px; padding-block: 48px 52px; z-index: 1; }
.role--us h3, .role--us .role__label { color: var(--bg); }
.role.role--us .role__label { color: var(--emph-label, #A9C1D6); }
.role.role--us li { color: var(--emph-text, #D9DEE5); border-top-color: rgba(232, 227, 217, 0.16); }
.role.role--us li::before { background: var(--emph-label, #A9C1D6); }
.role__label { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.role h3 { font-size: 21px; margin-bottom: 20px; }
.role ul { list-style: none; margin: 0; padding: 0; }
.role li { position: relative; padding: 9px 0 9px 18px; font-size: 15px; color: var(--ink-2); border-top: 1px solid rgba(127, 127, 127, 0.18); line-height: 1.45; }
.role li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 1px; background: var(--accent); }
.roles__note { margin-top: 40px; font-size: 14px; color: var(--ink-2); max-width: none; }
@media (max-width: 960px) {
  .roles { grid-template-columns: 1fr; }
  .role + .role { border-left: 1px solid var(--rule); border-top: 0; }
  .role--us { margin: 0; padding-block: 36px 40px; }
}

/* ---------------- Print (study pages print as clean reports) ---------------- */
@media print {
  @page { margin: 18mm 16mm 20mm; }
  :root { --bg: #fff; --surface: #fff; --surface-alt: #fff; }
  html, body { background: #fff !important; font-size: 10.5pt; }
  .skip-link, .nav, .site-header__actions, .mobile-nav, .nav-scrim, .cookie, .oscroll, .toc, .closing, .site-footer__nav, .rpanel__dots { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  .site-header__bar { height: auto; padding-block: 0 8pt; }
  .container { max-width: none; padding-inline: 0; }
  .page-intro { padding-block: 18pt 12pt; }
  .display { font-size: 24pt !important; }
  .doc { display: block; border-top: 0; padding-top: 0; }
  .prose-study, .doc__body { max-width: none; }
  .prose-study h2 { break-after: avoid; margin-top: 20pt; padding-top: 10pt; font-size: 15pt; }
  .prose-study h3 { break-after: avoid; font-size: 12pt; }
  .study-fig, .table-wrap, tr { break-inside: avoid; }
  .study-fig { border: 0; padding: 0; }
  .prose-study p, .prose-study li, .prose-study td { color: #222; }
  .site-footer { background: #fff; color: #333; padding-top: 12pt; border-top: 1px solid #000; }
  .site-footer .wordmark, .site-footer a, .site-footer__legal, .site-footer__desc { color: #333 !important; }
  .site-footer__legal { border-top: 0; }
  [data-todo] { outline: 0; }
  a { text-decoration: none; }
}

/* ---------------- Specification v2 components ---------------- */
.section-intro { color: var(--ink-2); max-width: 72ch; margin: -16px 0 40px; }
.section-head--rule { border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 64px); margin-bottom: 8px; }

/* Clients button with its external-destination cue */
.clients-link { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.clients-link .btn--portal { pointer-events: none; }
.clients-link:hover .btn--portal { background: var(--accent); border-color: var(--accent); }
.clients-link:focus-visible { outline: none; }
.clients-link:focus-visible .btn--portal { outline: 2px solid var(--accent); outline-offset: 3px; }
.clients-link__note { font-size: 10.5px; line-height: 1; color: var(--ink-2); letter-spacing: 0.02em; white-space: nowrap; }
.clients-link--block { display: flex; margin-top: 28px; }
.clients-link--block .btn--portal { width: 100%; min-height: 48px; font-size: 13px; }
.clients-link--block .clients-link__note { font-size: 12px; margin-top: 4px; }
.site-header__actions .clients-link { margin-top: 15px; }
.mobile-nav__link { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav__link { text-decoration: none; }
@media (max-width: 1200px) { .site-header__actions .clients-link { display: none; } }

/* Home: what the relationship provides / principles */
.provides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: pv; }
.provides--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
.provides li { counter-increment: pv; border-top: 1px solid var(--ink); padding-top: 24px; }
.provides li::before { content: counter(pv, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 18px; }
.provides h3 { margin-bottom: 12px; }
.provides p { color: var(--ink-2); }
@media (max-width: 860px) { .provides, .provides--2 { grid-template-columns: 1fr; } }

/* Home: area index */
.matter__num { display: block; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 14px; }
.matters .matter h3 { margin: 0; font-size: 21px; }

/* What We Do: six balanced areas */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.area { padding: 36px 32px 44px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); min-height: 280px; display: flex; flex-direction: column; }
.area__num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-bottom: auto; padding-bottom: 48px; }
.area h3 { font-size: clamp(22px, 2vw, 26px); margin-bottom: 12px; }
.area p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.area:target { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } .area { min-height: 0; } .area__num { padding-bottom: 24px; } }

/* Our Approach: four equal problems */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.problem { padding: 44px 48px 52px 0; border-bottom: 1px solid var(--rule); }
.problem:nth-child(even) { padding: 44px 0 52px 48px; border-left: 1px solid var(--rule); }
.problem__num { display: block; font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; color: var(--accent); margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.problem h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 16px; }
.problem p { color: var(--ink-2); }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } .problem, .problem:nth-child(even) { padding: 36px 0 40px; border-left: 0; } }

/* How It Works */
.steps__item h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.role > p:not(.role__label) { color: var(--ink-2); font-size: 15.5px; }
.role.role--us > p:not(.role__label) { color: var(--emph-text, #D9DEE5); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.cols-2 article { border-top: 1px solid var(--ink); padding-top: 28px; }
.cols-2 h2 { margin-bottom: 16px; max-width: 24ch; }
.cols-2 p:not(.eyebrow) { color: var(--ink-2); }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }

/* Contact */
.form__note { font-size: 14px; color: var(--ink-2); padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); margin: 4px 0 24px; }
.contact__aside h2 { margin-bottom: 16px; }
.contact__clients { margin-top: 28px; font-size: 14.5px; color: var(--ink-2); }
.mobile-nav { min-height: calc(100dvh - var(--header-h)); }

/* Primary nav: plain links that highlight on hover */
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 100%;
  padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); background: var(--accent); }
.nav__link.is-current::after { transform: scaleX(1); background: var(--ink); }
.nav__link.is-current:hover::after { background: var(--accent); }
.mobile-nav .btn--block { margin-top: 28px; min-height: 48px; }
@media (max-width: 1200px) { .site-footer .wordmark { font-size: 17px; } }
@media (max-width: 420px) { .site-footer .wordmark { font-size: 14.5px; letter-spacing: 0.05em; } }
@media (max-width: 340px) { .wordmark { font-size: 12.5px !important; letter-spacing: 0.04em !important; } }

/* Home headline: "Centralized" / "Financial Administration." on two lines, sized to the column. */
.hero__copy .hero__title { max-width: none; font-size: clamp(34px, 3.55vw, 54px); line-height: 1.06; letter-spacing: -0.028em; }
.hero__title span { display: block; white-space: nowrap; }
@media (max-width: 860px) { .hero__copy .hero__title { font-size: clamp(30px, 7.4vw, 56px); } }
@media (max-width: 400px) { .hero__title span { white-space: normal; } }
/* Size the headline to its column: "Financial Administration." is ~10× the font size wide. */
.hero__copy { container-type: inline-size; }
.hero__copy .hero__title { font-size: clamp(30px, 9.4cqi, 64px); }
@media (max-width: 400px) { .hero__copy .hero__title { font-size: clamp(30px, 11cqi, 40px); } }

/* ---------------- Legal pages (Privacy Policy, Terms of Service) ---------------- */
.legal { max-width: 900px; margin-inline: 0; padding-bottom: var(--section); border-top: 1px solid var(--rule); padding-top: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { .legal { margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-inline: 0; } }
.legal__lede { font-size: 18px; color: var(--ink); max-width: 72ch; margin-bottom: 40px; }
.legal__list { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.legal__item { counter-increment: lg; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 32px 0; border-top: 1px solid var(--rule); }
.legal__item::before { content: counter(lg, decimal-leading-zero); grid-row: 1 / span 20; font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.legal__item > * { grid-column: 2; }
.legal__item h2 { font-size: clamp(19px, 1.7vw, 22px); margin: 0 0 12px; }
.legal__item p, .legal__item li { color: var(--ink-2); font-size: 16px; }
.legal__item ul { margin: 0 0 1em; padding-left: 1.1em; max-width: 72ch; }
.legal__item li { margin-bottom: 0.5em; }
.legal__item li::marker { color: var(--accent); }
.legal__item strong { color: var(--ink); font-weight: 600; }
.legal__item a { color: var(--ink); }
@media (max-width: 600px) { .legal__item { grid-template-columns: 1fr; } .legal__item::before { grid-row: auto; margin-bottom: 8px; font-size: 18px; } .legal__item > * { grid-column: 1; } }

/* ---------------- Home research panel v2: one study per slide, minimal ---------------- */
.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
.rpanel__frame { aspect-ratio: 1 / 1.02; }
.rpanel__slide {
  padding: clamp(28px, 3vw, 44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), visibility 0s linear .9s;
  transform: none;
}
.rpanel__slide.is-active { transition: opacity .9s var(--ease), transform .9s var(--ease), visibility 0s; }
.rpanel__title {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(20px, 1.75vw, 25px); line-height: 1.25; margin: 0 0 8px; max-width: 26ch;
}
.rpanel__chart { flex: 1; min-height: 0; margin: 20px 0 24px; display: flex; align-items: center; }
.rpanel__chart svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.rpanel__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; border-top: 1px solid var(--rule); }
.rpanel__foot .link-arrow { font-size: 15px; }
.rpanel__source { font-size: 12px; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: none; }
.rpanel__dots { margin-top: 22px; gap: 8px; }

/* Hero chart classes (src/hero/*.svg) — all text in the site typeface */
.rpanel__chart svg text { font-family: var(--font-text); font-variant-numeric: tabular-nums lining-nums; }
.hc-axis-title { font-size: 14px; fill: var(--ink-2); }
.hc-tick { font-size: 14px; fill: var(--ink-2); }
.hc-cat { font-size: 14px; fill: var(--ink-2); }
.hc-value { font-size: 14px; font-weight: 600; fill: var(--ink); }
.hc-label { font-size: 14px; font-weight: 500; fill: var(--viz-1); }
.hc-label-2 { font-size: 14px; font-weight: 500; fill: var(--ink-2); }
.hc-ref-label { font-size: 14px; fill: var(--ink-2); }
.hc-grid { stroke: var(--rule); stroke-width: 1; }
.hc-axis { stroke: var(--ink); stroke-width: 1; }
.hc-ref { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 5 4; }
.hc-bar { fill: var(--viz-1); }
.hc-bar-2 { fill: #A9B7C9; }
.hc-line { fill: none; stroke: var(--viz-1); stroke-width: 2.5; stroke-linejoin: round; }
.hc-line-2 { fill: none; stroke: #9AA4B1; stroke-width: 2; stroke-linejoin: round; }
.hc-dot { fill: var(--viz-1); }
.hc-dot-2 { fill: #9AA4B1; }

@media (max-width: 1080px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); } }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .rpanel { max-width: 620px; } }
@media (max-width: 560px) { .rpanel__frame { aspect-ratio: 4 / 5.6; } .rpanel__slide { padding: 24px; } }
/* Charts come in a desktop and a narrow (phone) drawing; show the one that fits. */
.rpanel__chart .hc-m { display: none; }
@media (max-width: 560px) { .rpanel__chart .hc-d { display: none; } .rpanel__chart .hc-m { display: block; } }

/* ---------------- Contact (single centred form) ---------------- */
.contact2 { padding-block: clamp(56px, 8vw, 112px) var(--section); }
.contact2__inner { max-width: 760px; }
.contact2__head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.contact2__head > p { margin-inline: auto; }
.contact2__head .display { max-width: none; margin: 0 auto 22px; }
.contact2__head .lede { max-width: 58ch; margin: 0 auto; color: var(--ink-2); font-size: 18px; }
.contact2__form { max-width: none; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: clamp(28px, 4vw, 48px); }
.contact2__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.contact2__form .field { margin-bottom: 24px; }
.contact2__form .field input, .contact2__form .field textarea { background: var(--bg); }
.contact2__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 8px; }
.contact2__note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 46ch; }
.contact2__foot .btn { flex: none; min-width: 180px; min-height: 48px; }
.contact2__form .form__status:empty { display: none; }
.contact2__form .form__done { border: 0; padding: 24px 0; text-align: center; background: none; }
.contact2__after { text-align: center; font-size: 14px; color: var(--ink-2); margin: 28px auto 0; max-width: 60ch; }
.contact2__after a { color: var(--ink); }
@media (max-width: 640px) {
  .contact2__row { grid-template-columns: 1fr; }
  .contact2__foot { flex-direction: column; align-items: stretch; }
  .contact2__foot .btn { width: 100%; }
}

/* Hero: top-align the columns so the cap height of the headline sits on the panel's top edge.
   -0.17em removes the space above the capitals inside the headline's line box (Inter Tight, line-height 1.06). */
@media (min-width: 861px) {
  .hero__grid { align-items: start; }
  .hero__copy .hero__title { margin-top: -0.17em; }
}
/* Drop the text column so the headline's cap height shares a line with the panel title's cap height:
   panel border (1px) + slide padding + the space above the title's capitals (~0.26em of its size). */
@media (min-width: 861px) {
  .hero__copy { padding-top: calc(1px + clamp(28px, 3vw, 44px) + 0.26 * clamp(20px, 1.75vw, 25px)); }
}

/* Temporary link to /mockups/ (only in builds made with --with-mockups). */
.mockup-pill { position: fixed; left: 16px; bottom: 16px; z-index: 40; padding: 8px 14px; font: 500 12px/1 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: #14233A; text-decoration: none; }
.mockup-pill:hover { background: #2F5B7C; }

/* ---------------- Open Water: serif headings ----------------
   Headings and statements in EB Garamond; labels, numbers, navigation and running text stay in Inter. */
h1, h2, h3, .display, .h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.display, h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.014em; }
h2 { font-size: clamp(31px, 3.4vw, 44px); line-height: 1.1; }
h3, .h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.004em; }
.nav__panel-title, .problem__num, .legal__item::before { font-family: var(--font-serif); font-weight: 400; }
@media (max-width: 360px) { .site-header .wordmark { font-size: 15px; letter-spacing: 0.04em; } }

/* ---------------- Wordmark: Heavy Capitals ----------------
   EB Garamond SemiBold capitals, +0.08em (study 7, chosen 8 November 2026). */
.wordmark { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.08em; font-size: 19px; line-height: 1; }
@media (max-width: 1200px) { .site-header .wordmark, .site-footer .wordmark { font-size: 18px; } }
@media (max-width: 420px) { .site-header .wordmark, .site-footer .wordmark { font-size: 16px; letter-spacing: 0.06em; } }
@media (max-width: 360px) { .site-header .wordmark, .site-footer .wordmark { font-size: 14.5px; letter-spacing: 0.05em; } }
