/* Brumaire Capital: light institutional identity */
:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --ink: #17221d;
  --muted: #5f6962;
  --accent: #a35f39;
  --line: #d9dfd8;
  --serif: 'DM Sans', Arial, sans-serif;
}
body { background: var(--bg); color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible {
  outline-color: var(--accent);
}
header {
  min-height: 92px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.brand { gap: 10px; }
.brand img { width: 40px; height: 40px; }
.brand b, footer .brand b, .footer-brand b {
  font: 700 19px/1 'DM Sans', Arial, sans-serif;
  letter-spacing: -.055em;
  color: var(--ink);
}
.brand small {
  font: 600 10px/1 'DM Sans', Arial, sans-serif;
  letter-spacing: .2em;
  margin-top: 6px;
  color: var(--muted);
}
header nav {
  gap: 2px;
  flex-wrap: nowrap;
  padding: 4px;
  border-radius: 100px;
  background: #ebece8;
}
header nav>a, header nav>a:nth-child(2), header nav>a:first-child {
  border: 0;
  padding: 9px 17px;
  border-radius: 100px;
  color: #3f4942;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
header nav>a[aria-current=page] {
  color: var(--ink);
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px #14251a13;
}
header nav>a:hover { color: var(--ink); }
.eyebrow, .stat-label { color: var(--muted); letter-spacing: .12em; }
h1, h2, h3, blockquote, .lead, .number, .outlier-number,
.enquiry-line p, .essay-layout aside p, .crisis-stats strong {
  font-family: 'DM Sans', Arial, sans-serif;
  letter-spacing: -.045em;
}
h1, h2, h3, blockquote { font-weight: 600; }
em { color: var(--ink); }
.number, .outlier-number, .crisis-stats strong { color: var(--accent); font-weight: 500; }
.text-link { border-bottom-color: var(--ink); font-weight: 600; }
.text-link:hover, .back-link:hover, .research-item:hover h2 { color: var(--accent); }
.firm-hero { grid-template-columns: 1.35fr 1fr; gap: 10%; padding: 82px 0 82px; }
.firm-hero h1 {
  font-size: clamp(60px, 6.4vw, 94px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.04;
  margin: 34px 0 32px;
}
.hero-intro, .page-intro>p, .article-intro>p {
  color: #46534b;
}
.hero-intro { max-width: 575px; font-size: 20px; line-height: 1.62; }
.firm-record {
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
}
.firm-record>.eyebrow { margin-bottom: 18px; }
.firm-record article { padding: 17px 0 19px; }
.firm-record .number { font-size: clamp(68px, 7vw, 96px); letter-spacing: -.075em; }
.firm-record article h2 { color: var(--ink); }
.firm-statement { padding: 72px 0 76px; }
.firm-statement h2 { font-size: clamp(42px, 4.4vw, 62px); line-height: 1.1; }
.firm-statement p, .essay p, .strategy-text p, .research-item p,
.research-copy p, .research-after p, .disclosure-copy p { color: #4b5850; }
.firm-statement .lead, .essay .lead, .strategy-text p.lead {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.025em;
}
.page-intro { padding: 74px 0 62px; }
.page-intro h1, .article-intro h1 {
  font-size: clamp(56px, 6vw, 86px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.08;
}
.page-intro.compact h1 { font-size: clamp(52px, 5.5vw, 78px); }
.essay-layout aside p { color: var(--accent); font-weight: 500; }
.essay h2, .strategy-text h2, .research-after h2, .disclosure-copy h2 { font-weight: 600; }
.chart-card, .comparison-panel {
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}
.chart-heading h3, .comparison-toolbar h3, .housing-thesis h3,
.comparison-notes h3, .technology-note h3, .crisis-note h4 {
  font-weight: 600;
}
.periods button { color: #515f55; border-radius: 4px; }
.periods button[aria-pressed=true] { background: #e7ebe5; color: var(--ink); }
.periods button:hover { border-color: #aebbb0; }
.chart-bottom i { background: var(--accent); }
.bar-track { background: #e9ece7; }
.model-controls select {
  background: #fff;
  color: var(--ink);
  border-color: #b8c4ba;
  border-radius: 4px;
}
.model-start strong { color: var(--accent); font-weight: 500; }
.conviction {
  background: #e9ede7;
  border-left-color: var(--accent);
}
.methodology { background: #e9ede7; color: var(--ink); }
.methodology .eyebrow, .methodology>div>p, .detail-body { color: #4b5850; }
.detail-body th, .detail-body td, .method-details details { border-color: #cbd4ca; }
.footer-legal>a { border-bottom-color: var(--muted); }
footer {
  background: var(--bg);
  border-top: 0;
  padding-top: 48px;
  padding-bottom: 40px;
  gap: 32px;
}
footer .brand b, footer .footer-brand b { font-size: 17px; }
footer .footer-brand img { width: 30px; height: 30px; }
footer p { margin-top: 12px; }
.footer-enquiries a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.footer-enquiries a:hover { color: var(--accent); text-decoration-color: currentColor; }
.footer-legal { max-width: 32ch; }
.footer-legal > a {
  color: var(--muted);
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-legal > a:hover { color: var(--ink); }
.enquiry-line p { font-weight: 600; }
.asset-context th:nth-child(2), .asset-context td:nth-child(2) { color: var(--accent); }
.text-button, .return-case a { color: var(--accent); border-bottom-color: var(--accent); }
@media(max-width:900px) {
  .firm-hero { gap: 6%; }
  header nav>a, header nav>a:nth-child(2), header nav>a:first-child { padding: 9px 12px; }
}
@media(max-width:760px) {
  header { gap: 18px; padding-top: 19px; padding-bottom: 18px; }
  header nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  header nav>a, header nav>a:nth-child(2), header nav>a:first-child {
    padding: 8px 12px; font-size: 13px;
  }
  .brand img { width: 38px; height: 38px; }
  .firm-hero { padding: 46px 0 48px; gap: 38px; }
  .firm-hero h1 { font-size: clamp(49px, 10vw, 72px); margin: 25px 0; }
  .hero-intro { font-size: 18px; }
  .firm-record { padding: 21px 23px; }
  .firm-record .number { font-size: clamp(58px, 11vw, 76px); }
  .firm-statement { padding: 45px 0 52px; }
  .firm-statement h2 { font-size: clamp(40px, 8.3vw, 54px); }
  .page-intro { padding: 48px 0 42px; }
  .page-intro h1, .page-intro.compact h1 { font-size: clamp(46px, 9vw, 66px); }
  footer .brand b, .footer-brand b { font-size: 17px; }
}
@media(max-width:400px) {
  header nav { gap: 0; }
  header nav>a, header nav>a:nth-child(2), header nav>a:first-child {
    padding: 8px 9px; font-size: 12px;
  }
  .firm-record { padding: 17px; }
  .firm-record .number { font-size: 57px; }
}

/* The longer management descriptor sits quietly below the name. */
.brand small { letter-spacing: .11em; font-size: 9px; }

/* Phone layouts: preserve access to every page and every model control. */
header, main, footer, .firm-hero > *, .strategy-layout > *,
.essay-layout > *, .research-item > *, .firm-statement > * { min-width: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.table-scroll table { margin-top: 0; }
@media(max-width:600px) {
  header { gap: 17px; }
  header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
    overflow: visible;
    border-radius: 14px;
  }
  header nav>a, header nav>a:nth-child(2), header nav>a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
    font-size: 14px;
    border-radius: 10px;
  }
  .firm-hero { gap: 30px; padding-top: 38px; }
  .firm-hero h1 {
    font-size: clamp(44px, 9.2vw, 56px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .firm-record { display: block; }
  .firm-record article { padding: 17px 0 20px; }
  .firm-record .number { font-size: clamp(62px, 15vw, 78px); }
  .firm-record article p { font-size: 14px; }
  .firm-statement h2 { font-size: clamp(38px, 8.6vw, 50px); }
  .page-intro h1, .page-intro.compact h1,
  .article-intro h1 {
    font-size: clamp(40px, 8.7vw, 54px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
  .page-intro>p, .article-intro>p { font-size: 18px; }
  .research-item h2 { font-size: clamp(33px, 8vw, 41px); }
  .essay h2, .strategy-text h2, .research-after h2,
  .disclosure-copy h2 { overflow-wrap: anywhere; }
  .chart-card { padding: 18px; }
  .chart-heading h3 { font-size: 28px; }
  .chart-value strong { font-size: 33px; overflow-wrap: anywhere; }
  .chart-scale, .chart-bottom { flex-wrap: wrap; }
  .chart-scale .periods button, .chart-bottom .periods button { min-height: 44px; }
  #growth-chart text { font-size: 18px; }
  .comparison-panel { padding: 20px; }
  .housing-model .comparison-toolbar h3 { font-size: 26px; }
  .housing-model .comparison-toolbar .periods { gap: 4px; }
  .housing-model .comparison-toolbar .periods button { min-height: 44px; }
  .model-controls { grid-template-columns: 1fr; gap: 18px; }
  .model-controls label { gap: 8px; }
  .model-controls select { min-height: 48px; }
  .model-start {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }
  .model-start strong { margin: 0; font-size: 32px; }
  .model-start small { max-width: none; }
  .bar-label { flex-wrap: wrap; gap: 2px 16px; }
  .housing-model .bar-label strong { font-size: 26px; }
  .table-scroll table { min-width: 420px; }
  footer { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; padding-bottom: 32px; }
  .footer-legal { grid-column: auto; }
  .footer-enquiries { border-top: 0; padding-top: 0; }
  .footer-legal { border-top: 0; padding-top: 0; }
}
@media(max-width:360px) {
  .firm-hero h1 { font-size: 42px; }
  .firm-statement h2 { font-size: 37px; }
  .page-intro h1, .page-intro.compact h1, .article-intro h1 { font-size: 39px; }
  .chart-card, .comparison-panel { padding: 16px; }
  .chart-value strong { font-size: 30px; }
}

/* Compact benchmark strip below the firm's statement. */
.model-controls { gap: 24px 26px; }
.model-controls > label, .model-start { min-width: 0; }
.model-start {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  padding: 0;
}
.housing-model .bar-row:first-child .bar-label { color: #356b56; }
.housing-model .bar-row:last-child .bar-label { color: #a35f39; }
.capital-input {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-size: 26px;
  line-height: 1.2;
}
.capital-input:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.capital-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
}
#capital-error { color: #8a3525; }
#capital-error[hidden] { display: none; }
/* Quiet feedback for navigation and interactive controls. */
header nav > a, .periods button, .text-button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
header nav > a:hover { background-color: #ffffffb8; transform: translateY(-1px); }
header nav > a:active, .periods button:active, .text-button:active { transform: translateY(1px) scale(.97); }
.periods button:hover { background-color: #edf0ea; }
.periods button[aria-pressed=true] { box-shadow: inset 0 0 0 1px #cbd4ca; }
.text-link, .back-link, .footer-enquiries a, .footer-legal > a {
  transition: color 180ms ease, border-color 180ms ease, text-decoration-color 180ms ease, opacity 180ms ease;
}
.text-link:active, .back-link:active, .footer-enquiries a:active { opacity: .65; }
.icon-arrow { transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
a:hover .icon-arrow, a:focus-visible .icon-arrow { transform: translate(2px, -2px); }
.research-item { transition: background-color 220ms ease; }
.research-item h2 { transition: color 180ms ease, transform 220ms ease; }
.research-item:hover { background-color: #e9ede766; }
.research-item:hover h2 { transform: translateX(4px); }
.brand img { transition: opacity 180ms ease, transform 220ms ease; }
.brand:hover img { transform: translateY(-1px); opacity: .8; }
.brand:active img { transform: scale(.95); }
.model-controls select, .capital-input {
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.model-controls select:hover, .capital-input:hover { border-color: var(--accent); }
.model-controls select:focus-visible, .capital-input:focus-within { box-shadow: 0 0 0 4px #a35f3910; }
.firm-hero {
  display: block;
  padding: 66px 0 62px;
}
.firm-hero > div:first-child { max-width: 1000px; }
.firm-hero h1 { max-width: 1000px; margin: 26px 0 25px; }
.hero-intro { max-width: 710px; margin-bottom: 24px; }
.firm-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  margin-top: 58px;
  padding: 0;
  background: transparent;
  border: 0;
}
.firm-record > .eyebrow,
.firm-record > .fine-print { grid-column: 1 / -1; }
.firm-record > .eyebrow { margin: 0 0 17px; }
.firm-record article {
  display: grid;
  grid-template-columns: minmax(0, 260px) max-content;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  align-content: center;
  padding: 17px 0 14px;
  border-top: 1px solid var(--line);
}
.firm-record .stat-label { grid-column: 1; grid-row: 1; }
.firm-record .number {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  font-size: clamp(58px, 5.5vw, 78px);
  line-height: 1;
  margin: 0;
}
.firm-record .approx-mark {
  display: inline-block;
  width: .46em;
  height: .48em;
  margin-right: .025em;
  vertical-align: .015em;
  overflow: visible;
}
.firm-record article h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 10px 0 4px;
}
.firm-record article p {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
}
.firm-record > .fine-print { max-width: 950px; margin-top: 14px; }
.icon { display: inline-block; width: 17px; height: 17px; vertical-align: -.18em; flex: none; }
.back-link { display: inline-flex; align-items: center; gap: 7px; }
.firm-statement {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: clamp(32px, 4.2vw, 60px);
  margin-bottom: 32px;
  background: #e9ede7;
  border-top: 1px solid var(--accent);
}
.firm-statement h2 {
  max-width: 16ch;
  margin: 22px 0 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
  text-wrap: balance;
}
.firm-statement > div:last-child { max-width: 540px; }
@media(max-width:900px) {
  .firm-statement { grid-template-columns: 1fr; gap: 28px; }
  .firm-statement > div:last-child { max-width: 640px; }
  .firm-record { grid-template-columns: 1fr; margin-top: 43px; }
  .firm-record article { max-width: 680px; }
}
@media(max-width:600px) {
  .firm-statement { padding: 30px 22px 34px; gap: 26px; margin-bottom: 24px; }
  .firm-statement h2 { margin-top: 18px; font-size: clamp(32px, 8.5vw, 42px); }
  .firm-statement p { font-size: 16px; line-height: 1.75; }
  .firm-statement .lead { font-size: 21px; line-height: 1.45; }
  .firm-hero { padding: 38px 0 46px; }
  .firm-hero h1 { margin: 25px 0; }
  .firm-record { display: block; margin-top: 38px; padding: 0; }
  .firm-record > .eyebrow { text-align: left; margin-bottom: 13px; }
  .firm-record article {
    display: block;
    max-width: none;
    padding: 23px 24px 24px;
    margin-bottom: 12px;
    text-align: left;
    background: #edf0eb;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .firm-record .number { margin: 10px 0 8px; font-size: clamp(62px, 15vw, 78px); }
  .firm-record article h2 { margin: 0 0 3px; }
  .firm-record > .fine-print { margin-top: 15px; text-align: left; }
}


/* Historical benchmarks: desktop bands and compact mobile cards. */
.firm-record { column-gap: 24px; }
.firm-record .benchmark-card {
  display: block;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.firm-record .stat-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 24px;
  margin: 0;
  padding: 16px 28px;
  background: #ebeee7;
  font-size: .875rem;
  line-height: 1.3;
  letter-spacing: .12em;
}
.firm-record .stat-label strong { color: var(--ink); font-weight: 700; }
.firm-record .benchmark-dates {
  color: #596962;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .025em;
  white-space: nowrap;
}
.firm-record .benchmark-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.firm-record .benchmark-main h2 {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}
.firm-record .benchmark-main .number {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid #bbc6be;
  white-space: nowrap;
  font-size: clamp(52px, 4.7vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: lining-nums tabular-nums;
}
.firm-record .number > span { margin-left: .14em; font-size: .55em; letter-spacing: 0; }
.firm-record .approx-mark { width: .32em; height: .38em; margin-right: .04em; }
.firm-record .benchmark-details {
  display: flex;
  margin: 0;
  padding: 20px 28px 24px;
}
.firm-record .benchmark-details > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.firm-record .benchmark-details > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  margin-left: 20px;
}
.firm-record .benchmark-details dd {
  order: -1;
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.25;
  font-variant-numeric: lining-nums tabular-nums;
}
.firm-record .benchmark-details dt {
  color: #596962;
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.firm-record > .fine-print { margin-top: 18px; }
@media(max-width:900px) {
  .firm-record { gap: 0; }
  .firm-record .benchmark-card { padding: 20px; margin-bottom: 14px; }
  .firm-record .stat-label {
    justify-content: space-between;
    padding: 0;
    background: transparent;
    gap: 6px 16px;
  }
  .firm-record .benchmark-dates { letter-spacing: 0; }
  .firm-record .benchmark-main { margin: 0; padding: 22px 0 18px; gap: 18px; }
  .firm-record .benchmark-main h2 { color: #46534b; font-size: .9375rem; max-width: 19ch; }
  .firm-record .benchmark-main .number { padding-left: 24px; font-size: clamp(46px, 12.5vw, 60px); }
  .firm-record .benchmark-details { flex-direction: column; gap: 4px; padding: 10px 0 0; }
  .firm-record .benchmark-details > div { flex-direction: row; flex-wrap: wrap; gap: 0 .3em; }
  .firm-record .benchmark-details > div + div { border: 0; padding: 0; margin: 0; }
  .firm-record .benchmark-details dd,
  .firm-record .benchmark-details dt {
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
  }
}
@media(max-width:360px) {
  .firm-record .benchmark-card { padding: 18px 16px; }
  .firm-record .benchmark-main { gap: 12px; }
  .firm-record .benchmark-main .number { font-size: 44px; padding-left: 14px; }
}
