:root {
  --d16-glass: rgba(255, 255, 255, .58);
  --d16-glass-strong: rgba(255, 255, 255, .72);
  --d16-dark: #152443;
  --d16-warm: #956a4c;
  --d16-warm-soft: rgba(180, 126, 74, .14);
}

.d16-page {
  color: var(--body);
  font-family: var(--ds-font-body);
}

.d16-page h1,
.d16-page h2,
.d16-page .metric strong,
.d16-page .proof-index {
  font-family: var(--ds-font-display);
}

.d16-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.d16-page .header-inner {
  width: min(calc(100% - 32px), 1560px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.d16-page .brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.d16-page .brand-logo {
  width: 116px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.d16-page .brand-divider {
  width: 1px;
  height: 20px;
  background: var(--rule-strong);
}

.d16-page .brand-context {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d16-page .section-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.d16-page .section-nav a,
.d16-page .back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.d16-page .section-nav a:hover,
.d16-page .section-nav a:focus-visible,
.d16-page .back-link:hover,
.d16-page .back-link:focus-visible {
  color: var(--brand-text);
}

.d16-page .back-link {
  min-height: 44px;
  padding-inline: 8px;
  display: inline-flex;
  align-items: center;
}

.d16-page .breadcrumbs {
  width: min(1560px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.d16-page .breadcrumbs a {
  color: var(--brand-text);
  font-weight: 600;
  text-decoration: none;
}

.d16-page .hero {
  background: transparent;
}

.d16-page .hero h1,
.d16-page .proof h2,
.d16-page .sources h2 {
  color: var(--display);
  font-family: var(--ds-font-display);
  font-weight: 600;
}

.d16-page .hero-kicker {
  color: var(--brand-text);
}

.d16-page .hero-kicker::before {
  background: var(--brand-fill);
}

.d16-page .thesis,
.d16-page .proof-lede,
.d16-page .metric span,
.d16-page .figure figcaption {
  color: var(--body);
}

.d16-page .thesis {
  border-left-color: var(--brand);
}

.d16-page .metrics,
.d16-page .proof {
  border-color: var(--rule);
  background: var(--d16-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.d16-page .metric {
  border-right-color: var(--rule);
}

.d16-page .metric strong,
.d16-page .stat-pill strong {
  color: var(--display);
}

.d16-page .metric strong,
.d16-page .stat-pill strong {
  font-family: var(--ds-font-display);
  font-stretch: normal;
  font-variation-settings: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}

.d16-page .metric:nth-child(2) strong,
.d16-page .metric:nth-child(4) strong,
.d16-page .stat-pill.hot strong {
  color: var(--d16-warm);
}

.d16-page .proof-index {
  background: var(--brand-deep);
  box-shadow: 0 0 0 6px var(--page);
}

.d16-page .source-chip {
  border-color: var(--rule-strong);
  background: var(--brand-soft);
  color: var(--brand-text);
}

.d16-page .stat-pill {
  background: var(--brand-soft);
  border-left-color: var(--brand);
}

.d16-page .stat-pill.hot {
  background: var(--d16-warm-soft);
  border-left-color: var(--d16-warm);
}

.d16-page .stat-pill span {
  color: var(--muted);
}

.d16-page .evidence-shot {
  border-color: var(--rule);
  background: rgba(255, 255, 255, .78);
}

.d16-page .figure figcaption strong {
  color: var(--display);
}

.d16-page .sources {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--d16-dark);
  color: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.d16-page .sources h2 {
  color: #fff;
}

.d16-page .source-row {
  border-top-color: rgba(255, 255, 255, .16);
}

.d16-page .source-row span {
  color: #b8cbff;
}

.d16-page .source-row a {
  color: #fff;
}

.d16-page .lightbox {
  z-index: 80;
}

.js .d16-page .hero-rise-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .d16-page .hero-rise-reveal.is-revealing {
  animation: d16-hero-rise 1s cubic-bezier(.44, 0, .56, 1) both;
}

@keyframes d16-hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .d16-page .header-inner {
    width: min(calc(100% - 20px), 680px);
  }
}

@media (max-width: 767px) {
  .d16-page .header-inner {
    gap: 8px;
  }

  .d16-page .brand-logo {
    width: 92px;
    height: 24px;
  }

  .d16-page .brand-divider {
    height: 17px;
  }

  .d16-page .brand-context {
    font-size: 12px;
  }

  .d16-page .section-nav {
    display: none;
  }

  .d16-page .back-link {
    margin-left: auto;
  }

  .d16-page .breadcrumbs {
    width: min(calc(100% - 20px), 680px);
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .d16-page .hero-rise-reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
