:root {
  color-scheme: dark;
  --bg: #1F2328;
  --bg-glow-1: rgba(160, 92, 255, 0.22);
  --bg-glow-2: rgba(124, 78, 214, 0.16);
  --panel: var(--bg);
  --card: var(--bg);
  --header-bg: rgba(31, 35, 40, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #5a4e8c;
  --accent-2: #5a4e8c;
  --poc-accent: #c6a14a;
  --fact-dot-muted: rgba(255, 255, 255, 0.22);
  --fact-dot-accent: #5a4e8c;
  --muted: #c6ccd8;
  --text: #fbfdff;
  --title-color: var(--text);
  --radius: 18px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  --chart-text: #e8edf7;
  --chart-muted: #c6ccd8;
  --chart-grid: rgba(255, 255, 255, 0.12);
  --chart-grid-soft: rgba(255, 255, 255, 0.04);
  --tooltip-bg: rgba(31, 35, 40, 0.92);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f7;
  --bg-glow-1: rgba(160, 92, 255, 0.16);
  --bg-glow-2: rgba(124, 78, 214, 0.18);
  --panel: #ffffff;
  --card: #f3f5fb;
  --header-bg: rgba(243, 244, 247, 0.95);
  --border: rgba(15, 22, 36, 0.12);
  --accent: #5a4e8c;
  --accent-2: #5a4e8c;
  --poc-accent: #c6a14a;
  --fact-dot-muted: rgba(255, 255, 255, 0.22);
  --fact-dot-accent: #5a4e8c;
  --muted: #4f5b6f;
  --text: #0a1220;
  --title-color: #1F2328;
  --shadow: 0 20px 45px rgba(15, 18, 26, 0.16);
  --chart-text: #0a1220;
  --chart-muted: #4f5b6f;
  --chart-grid: rgba(12, 18, 32, 0.12);
  --chart-grid-soft: rgba(12, 18, 32, 0.05);
  --tooltip-bg: rgba(255, 255, 255, 0.98);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 14% 18%, var(--bg-glow-1), transparent 32%),
              radial-gradient(circle at 84% 10%, var(--bg-glow-2), transparent 32%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root[data-theme="light"] body {
  background: linear-gradient(225deg, rgba(160, 92, 255, 0.26) 0%, rgba(243, 244, 247, 0.9) 56%, #ffffff 100%);
}

h1,
h2,
h3 {
  color: var(--title-color);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-underline {
  text-decoration: underline;
}


a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.container--full {
  width: 100%;
  max-width: none;
  padding: 0 4vw;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a[aria-current="page"] {
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="light"] .site-nav a[aria-current="page"] {
  background: rgba(0, 115, 166, 0.18);
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle__value {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #f7f1ff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 24px rgba(90, 78, 140, 0.35);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(90, 78, 140, 0.45);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button--ghost:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.button--small {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.download-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.download-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.download-format {
  margin-left: 6px;
}

.download-button {
  padding: 12px 20px;
  font-size: 14px;
}

.hero {
  width: min(1200px, 92vw);
  margin: 36px auto 32px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero--home {
  grid-template-columns: 1fr;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero--about {
  grid-template-columns: 1fr;
}

:root[data-theme="light"] .hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 252, 0.98));
}

:root[data-theme="light"] .hero--home {
  background: transparent;
}

.hero__text h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 5.2vw, 60px);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--title-color);
}

.hero--home .subtitle {
  font-size: 30px;
  margin-bottom: 22px;
}

.hero--home .hero__text {
  max-width: 760px;
  margin: 0 auto;
}

.hero--home .cta-row {
  justify-content: center;
  margin-bottom: 28px;
}

.hero__scroll-hint {
  margin-top: 16px;
  margin-bottom: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

:root[data-theme="light"] .hero__scroll-hint {
  color: rgba(0, 0, 0, 0.75);
}

.hero__arrow {
  font-size: 28px;
  line-height: 1;
}

.hero__text .lede {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 620px;
}

.hero--facts .hero__text h1 {
  line-height: 1.15;
}

.hero--about .hero__text .lede {
  max-width: 100%;
}

.micro-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-row--nowrap {
  flex-wrap: nowrap;
}
.hero__aside {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
}

.hero__aside h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero__aside ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero__stats {
  display: grid;
  gap: 12px;
}

.hero__stats--pies {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.hero__stats-controls {
  justify-content: center;
  margin: 12px 0 0;
  grid-column: 1 / -1;
}

.stat-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

:root:not([data-theme="light"]) .hero--facts .stat-card {
  background: rgba(255, 255, 255, 0.05);
}

.stat-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  margin: 4px 0;
  font-size: 30px;
  font-weight: 700;
}

.stat-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-meta--center {
  text-align: center;
  grid-column: 1 / -1;
}

.stat-meta--inline {
  margin-top: -2px;
  font-size: 12px;
}

.stat-pie {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-pie .stat-label {
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text);
}

.stat-pie__chart {
  width: 120px;
  height: 120px;
  margin: 4px auto;
}

.stat-pie__svg {
  width: 100%;
  height: 100%;
}

.stat-pie__fill {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.stat-pie__fill--rest {
  fill: rgba(200, 206, 214, 0.7);
}

.stat-pie__fill--women {
  fill: var(--accent);
}

.stat-pie__fill--poc {
  fill: var(--poc-accent);
}


.section {
  margin: 0 auto 40px;
}

.section--facts {
  margin: 0 auto 60px;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  border-top: none;
  border-bottom: none;
}

.section-header {
  margin: 0 0 18px;
}

.section-header--facts h2 {
  font-size: clamp(32px, 5.2vw, 60px);
  margin-bottom: 4px;
  text-align: center;
  color: var(--accent);
}

.section-header--facts p {
  max-width: 640px;
}

.section--facts .section-header p {
  color: var(--muted);
}

.section--facts .eyebrow {
  color: var(--muted);
}

.section-header h2 {
  margin: 0 0 6px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.carousel {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel--facts {
  background: #1F2328;
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #ffffff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.portrait-page {
  background: var(--bg);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.portrait-page__main {
  width: 100%;
}

.portrait-frame {
  width: min(980px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.portrait-frame--stack {
  aspect-ratio: auto;
  padding: clamp(28px, 4vw, 48px);
}

.facts-stack {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.facts-stack__item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 36px);
}

.facts-stack .carousel__fact-block {
  gap: 12px;
}

.facts-stack .carousel__fact-text {
  font-size: clamp(26px, 4.2vw, 44px);
}

.facts-stack .carousel__fact-block--text-heavy .carousel__fact-text {
  font-size: clamp(30px, 4.6vw, 48px);
}

.facts-stack .carousel__caption {
  font-size: clamp(16px, 2.3vw, 22px);
}

.facts-stack .fact-legend {
  justify-content: center;
}

.facts-stack .fact-legend--compact {
  justify-content: center;
}

.facts-stack .carousel__fact-block--mega .carousel__fact-text {
  font-size: clamp(40px, 6vw, 72px);
}

.carousel__viewport {
  position: relative;
  min-height: 340px;
  z-index: 0;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.carousel__slide:focus,
.carousel__slide:focus-visible {
  outline: none;
}

.carousel__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.carousel__fact-block {
  width: 100%;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carousel__fact-number {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.carousel__fact-number--nowrap {
  white-space: nowrap;
}

.carousel__fact-text {
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 600;
  margin: 0;
}

.carousel__fact-block--text-heavy .carousel__fact-text {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.3;
}

.fact-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.fact-callout {
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 700;
  color: var(--fact-dot-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.fact-callout--overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel__caption {
  margin: 0;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
}

.carousel__caption--stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.carousel__caption--stack p {
  margin: 0;
}

.carousel__source {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
}

.carousel__share {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carousel__share-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.carousel__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.carousel__share-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.carousel__share-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.carousel__share-icon svg path {
  stroke: currentColor;
}

.carousel__share-link:hover,
.carousel__share-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.46);
  transform: translateY(-1px);
}

.carousel__share-link:active {
  transform: translateY(0);
}

.fact-viz {
  width: 100%;
  margin: 12px 0 8px;
  position: relative;
}

.fact-viz svg {
  width: 100%;
  height: auto;
  display: block;
}

.fact-viz--bars svg {
  max-width: 680px;
  margin: 0 auto;
}

.carousel__fact-block--text-heavy .fact-viz--bars svg {
  max-width: 520px;
}

.fact-viz--experience svg {
  max-width: none;
}

.fact-viz .dot-muted {
  fill: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.18);
  transform-box: fill-box;
  transform-origin: center;
}

.fact-viz .dot-accent {
  fill: #7a6ad6;
  color: #7a6ad6;
  transform-box: fill-box;
  transform-origin: center;
}

.fact-viz .dot-na {
  fill: rgba(255, 255, 255, 0.15);
}

.fact-viz .icon-full {
  color: var(--accent);
}

.fact-viz .icon-empty {
  color: rgba(255, 255, 255, 0.55);
}

.fact-viz .icon-na {
  color: rgba(255, 255, 255, 0.08);
}

.fact-viz--awards-scatter .icon-empty {
  color: rgba(255, 255, 255, 0.08);
}

.fact-viz--oscars-grid .icon-empty {
  color: rgba(255, 255, 255, 0.08);
}

.fact-viz--oscars-grid .icon-full {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(160, 92, 255, 0.55));
}

.legend-icon.icon-full,
.legend-icon.icon-empty,
.legend-icon.icon-na {
  fill: currentColor;
}


.fact-viz .bar-base {
  fill: rgba(255, 255, 255, 0.2);
}

.fact-viz .bar-accent {
  fill: var(--accent);
}

.fact-viz .pie-rest {
  fill: rgba(255, 255, 255, 0.18);
}

.fact-viz .pie-accent {
  fill: var(--accent);
}

.fact-viz .pie-value {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.fact-viz .axis-text {
  fill: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.fact-viz .label-text {
  fill: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.fact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 6px 0 4px;
  justify-content: flex-end;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-dot--full {
  background: var(--accent);
}

.legend-dot--empty {
  background: rgba(255, 255, 255, 0.55);
}

.legend-dot--na {
  background: rgba(255, 255, 255, 0.15);
}

.fact-legend--compact {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 4px 0 6px;
}

.carousel__fact-block--mega .carousel__fact-number {
  font-size: clamp(82px, 11vw, 160px);
}

.carousel__fact-block--mega .carousel__fact-text {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.2;
}

.graph-credit {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-align: left;
}

.section--facts .graph-credit {
  color: rgba(255, 255, 255, 0.7);
}

.legend-accent {
  color: var(--fact-dot-accent);
  font-weight: 600;
}

.legend-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

.legend-icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact-support {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  z-index: 999;
}

.carousel__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.carousel__control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel__control-group--right {
  justify-content: flex-end;
}

.carousel__button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.carousel__button--icon {
  font-size: 22px;
  line-height: 1;
}

.carousel__icon {
  display: inline-block;
  font-size: 26px;
  line-height: 1;
}

.carousel__button--icon[data-carousel-prev] .carousel__icon,
.carousel__button--icon[data-carousel-next] .carousel__icon {
  font-size: 34px;
  font-weight: 700;
}

.carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.carousel__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  opacity: 0.25;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: #ffffff;
  opacity: 1;
}

.cta-panel {
  margin: 0 auto 60px;
  padding: 36px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-panel__inner {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 12px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cta-panel__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-panel__action {
  margin-top: 10px;
  justify-content: flex-start;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 22px 26px;
  margin: 20px auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(1200px, 92vw);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.panel__header h2 {
  margin: 0 0 4px;
}

.panel__header p {
  margin: 0 0 10px;
  color: var(--muted);
}

.panel__header .subtitle {
  font-size: 16px;
  font-weight: 500;
}

.panel__note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.panel__header--full {
  grid-column: 1 / -1;
}


.chart-caption {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.data-error {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.facts-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(180px, 220px) 1fr;
  width: min(1200px, 92vw);
  margin: 0 auto 60px;
}

.facts-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
}

.facts-toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.facts-toc nav {
  display: grid;
  gap: 6px;
}

.facts-toc a {
  color: var(--text);
  padding: 6px 8px;
  border-radius: 8px;
}

.facts-toc a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.toc-select {
  display: none;
  margin-top: 12px;
  width: 100%;
}

.facts-content .panel {
  width: 100%;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--card);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.citation-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.citation-text {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}

.panel--interactive {
  background: var(--panel);
  border: 1px solid var(--border);
}

.section--brief {
  padding: 32px 0;
  background: var(--panel);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.panel__callout {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.citation-block {
  padding: 0;
  border: none;
  background: transparent;
}

.citation-block h3 {
  margin-top: 0;
}

.panel--patterns {
  background: var(--panel);
}

.pattern-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 720px) {
  .pattern-grid {
    grid-template-columns: 1fr;
  }
}

.pattern-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-theme="light"] .panel__callout,
:root[data-theme="light"] .pattern-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(15, 22, 36, 0.05));
  border: 1px solid rgba(15, 22, 36, 0.12);
}

:root[data-theme="light"] .pattern-card {
  background: var(--card);
}

.pattern-title {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

.pattern-card p {
  margin: 0;
}

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

.chart-data summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.panel__callout h3 {
  margin: 0 0 8px;
}

.list-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.list-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

.brief-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-grid .panel__callout {
  margin: 0;
}

.brief-grid > .panel__callout:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }
}

.data-glance {
  margin-top: 0;
}

.data-glance ul {
  margin: 0;
  padding-left: 18px;
}

.glance-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.glance-card {
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 14px;
}

.teaser-cta {
  margin-top: 16px;
}

.author-card {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(160px, 200px) 1fr;
  align-items: center;
}

.author-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.author-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.author-card p {
  margin: 0 0 10px;
}

.author-links {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}

.author-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
}

.author-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-icon--fill {
  fill: currentColor;
  stroke: none;
}

.author-credit {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.purpose-line {
  display: block;
  margin-top: 6px;
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scope-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.facts-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


@media (max-width: 980px) {
  .facts-prompts {
    grid-template-columns: 1fr;
  }

  .facts-layout {
    grid-template-columns: 1fr;
  }

  .panel.two-col {
    grid-template-columns: 1fr;
  }

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

  .facts-toc {
    position: static;
  }

  .facts-toc nav {
    display: none;
  }

  .toc-select {
    display: block;
  }

}

.chart {
  height: 320px;
}

:root:not([data-theme="light"]) #home-roles .chart {
  background: var(--bg);
  border-radius: var(--radius);
}

:root:not([data-theme="light"]) #home-roles.panel {
  background: var(--bg);
}

:root:not([data-theme="light"]) #home-roles .chart-controls select {
  background: var(--bg);
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 8px;
  flex-wrap: wrap;
}

.chart-controls input[type="checkbox"] {
  accent-color: var(--accent);
}

.chart-controls label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.control-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text);
  margin-right: 6px;
}

.chart-controls select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.chart-controls select:focus {
  outline: 1px solid var(--accent);
}

.chart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chart-actions .chart-data {
  margin-top: 0;
  flex: 1 1 auto;
}

.chart-actions .chart-data[open] {
  flex-basis: 100%;
}

.chart-actions .chart-data[open] summary {
  margin-bottom: 8px;
}

.chart-actions .share-bar {
  margin-top: 0;
  flex: 0 0 auto;
}

.share-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.share-bar .graph-credit {
  margin: 0;
}

.chart:fullscreen,
.chart:-webkit-full-screen {
  background: var(--panel);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart:fullscreen canvas,
.chart:-webkit-full-screen canvas {
  width: min(1200px, 100%);
  height: auto !important;
}

canvas {
  width: 100%;
  height: 100% !important;
}

.footer {
  margin: 10px auto 50px;
  color: var(--muted);
  font-size: 13px;
  width: min(1200px, 92vw);
}

.footer code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cta-panel__inner {
    grid-template-columns: 1fr;
  }

  .author-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header__inner {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
  }

  .site-header--open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-header--open .header-actions {
    display: flex;
  }

  .header-actions .button,
  .header-actions .theme-toggle,
  .header-actions .download-button {
    width: 100%;
    justify-content: center;
  }

  .carousel__controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .carousel__control-group {
    gap: 12px;
    flex: 0 0 auto;
  }

  .carousel__dots {
    flex: 1 1 auto;
    justify-content: center;
  }

  .carousel__dot {
    width: 12px;
    height: 12px;
  }

  .cta-row--nowrap {
    flex-wrap: wrap;
  }

  .hero {
    margin: 24px auto 20px;
    padding: 22px;
  }

  .panel {
    padding: 16px 16px 20px;
  }

  .carousel--facts {
    padding: 28px 20px;
  }

  .carousel__viewport {
    min-height: 260px;
  }

  .carousel__button {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
  }

  .carousel__button:active {
    transform: scale(0.98);
  }


  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
