@font-face {
  font-family: "Colfax";
  src: url("../../font/ColfaxWebLight.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Colfax";
  src: url("../../font/ColfaxWebRegular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

:root {
  --paper: #ffffff;
  --ink: #111111;
  --text: #3f3f3f;
  --muted: #777777;
  --line: rgba(17, 17, 17, 0.14);
  --line-dark: rgba(17, 17, 17, 0.28);
  --soft: rgba(247, 247, 247, 0.74);
  --soft-blue: #eff3f3;
  --transaction: #2f5660;
  --transaction-light: #91aeb4;
  --listing: #98645c;
  --listing-light: #d9b4ad;
  --accent: #60775f;
  --warning: #98645c;
  --sans: "Colfax", sans-serif;
  --serif: Palatino, serif;
  --mono: "Colfax", sans-serif;
}

html {
  background: var(--paper);
  scroll-padding-top: 132px;
}

body {
  background: var(--paper);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.065) 0 0.45px, transparent 0.75px);
  background-size: 10px 10px, 10px 10px, 5px 5px;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

body::after {
  background: repeating-linear-gradient(
    96deg,
    rgba(48, 48, 48, 0.018) 0,
    rgba(48, 48, 48, 0.018) 1px,
    transparent 1px,
    transparent 16px
  );
  opacity: 0.05;
}

body > * {
  position: relative;
  z-index: 1;
}

.storyNav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: 116px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 72%, rgba(255, 255, 255, 0) 100%);
}

.storyNav::after {
  position: fixed;
  inset: 0;
  z-index: 61;
  height: 116px;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.032) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: multiply;
}

.siteName,
.storyMenu,
.homeLink {
  position: fixed;
  z-index: 62;
  font-family: var(--sans);
  text-transform: uppercase;
}

.siteName,
.storyMenu a {
  text-decoration: none;
}

.siteName {
  top: 58px;
  left: 72px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.32em;
  white-space: nowrap;
  -webkit-text-stroke: 0.18px currentColor;
}

.storyMenu {
  top: 56px;
  right: 62px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.homeLink {
  position: static;
}

.storyMenuDropdown {
  position: relative;
  text-align: center;
}

.storyMenuDropdown::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 232px;
  height: 13px;
  transform: translateX(-50%);
  content: "";
}

.storyMenuTrigger {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.storyMenuTrigger:focus-visible,
.storyMenu a:focus-visible {
  outline: 1px solid rgba(17, 17, 17, 0.35);
  outline-offset: 4px;
}

.storyMenuList {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  display: flex;
  min-width: 232px;
  padding: 12px 14px 13px;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.storyMenuDropdown:hover .storyMenuList,
.storyMenuDropdown:focus-within .storyMenuList {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.storyMenuList a {
  color: var(--muted);
  white-space: nowrap;
}

.storyMenuList a[aria-current="page"],
.storyMenuList a:hover {
  color: var(--ink);
}

.hero {
  border-bottom-color: var(--line);
}

.hero-inner {
  padding-top: clamp(154px, 14vw, 188px);
}

.eyebrow,
.section-number,
.metric-label,
.judgement-label,
.story-nav a,
.hero-meta,
.visual-header,
.stat-note,
.report-endnotes,
footer {
  font-family: var(--sans);
}

.hero-meta {
  max-width: 780px;
}

.story-nav {
  position: fixed;
  top: 50%;
  right: 28px;
  z-index: 50;
  width: 28px;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.contentsTrigger {
  display: block;
  padding: 8px 6px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  cursor: pointer;
}

.story-nav::after {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 12px;
  height: min(520px, calc(100vh - 64px));
  content: "";
  transform: translateY(-50%);
}

.nav-inner {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  display: flex;
  width: 214px;
  max-height: min(520px, calc(100vh - 64px));
  padding: 14px 16px;
  overflow-y: auto;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.story-nav:hover .nav-inner,
.story-nav.is-open .nav-inner {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
  visibility: visible;
}

.story-nav a {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.45;
}

.story-nav a:hover,
.story-nav a.active {
  border: 0;
  color: var(--ink);
}

.section {
  position: relative;
}

.section-title,
.page-title,
.chart-title,
.report-endnotes h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.section-title {
  letter-spacing: 0;
}

.section-lede,
.summary-list p,
.judgement-grid li {
  font-family: var(--serif);
}

.section-lede {
  font-size: 18px;
  line-height: 1.86;
}

.summary-list p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.78;
}

.metric-value-text {
  max-width: 390px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.34;
}

.judgement-grid li {
  font-size: 15px;
  line-height: 1.68;
}

.hero,
.section,
.summary-list,
.metric-strip,
.visual-block,
figcaption,
.quadrant-summary,
.judgement-grid article,
.method-block,
.table-wrap {
  border-top: 0;
  border-bottom: 0;
}

.hero-meta,
.visual-block,
figcaption,
.method-block {
  padding-top: 0;
}

.hero-meta {
  margin-top: 24px;
}

.summary-list li,
.judgement-grid li {
  border-bottom: 0;
}

.summary-list li {
  padding-top: 20px;
  padding-bottom: 24px;
}

.metric-strip {
  gap: clamp(32px, 4vw, 64px);
}

.metric,
.metric + .metric {
  padding-right: 0;
  padding-left: 0;
  border-top: 0;
  border-left: 0;
}

.visual-block {
  margin-top: 52px;
}

figcaption {
  margin-top: 12px;
}

.quadrant-summary {
  gap: clamp(20px, 3vw, 44px);
}

.quadrant-summary article,
.quadrant-summary article + article {
  padding-right: 0;
  padding-left: 0;
  border-top: 0;
  border-left: 0;
}

.judgement-grid article {
  padding-top: 0;
}

.judgement-grid li {
  padding-top: 7px;
  padding-bottom: 7px;
}

.visual-block,
.metric-strip,
.quadrant-summary,
.method-block,
.interpretation-grid {
  background: rgba(255, 255, 255, 0.58);
}

.chart-tooltip {
  z-index: 90;
  font-family: var(--sans);
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 110px;
  }

  .storyNav {
    height: 88px;
  }

  .storyNav::after {
    height: 88px;
  }

  .siteName {
    top: 34px;
    left: 28px;
    font-size: 12px;
  }

  .storyMenu {
    top: 34px;
    right: 28px;
    gap: 18px;
  }

  .storyMenuDropdown::after {
    width: 220px;
    height: 12px;
  }

  .storyMenuList {
    min-width: 220px;
    padding: 11px 12px 12px;
  }

  .story-nav {
    top: auto;
    right: 16px;
    bottom: 18px;
    width: auto;
    transform: none;
  }

  .contentsTrigger {
    padding: 9px 11px;
    border: 1px solid rgba(17, 17, 17, 0.11);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.045);
    font-size: 9px;
    letter-spacing: 0.1em;
    writing-mode: horizontal-tb;
  }

  .nav-inner {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(214px, calc(100vw - 32px));
    max-height: min(440px, calc(100vh - 144px));
    transform: translateY(4px);
  }

  .story-nav.is-open .nav-inner {
    transform: translateY(0);
  }

  .hero-inner {
    padding-top: 136px;
  }
}
