@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Warm Earthy Browns & Sfumato Glaze Palette (Zero Blue, Zero Black) */
  --earth-bg: #e3d1b7;
  --earth-bg-deep: #d6bfa0;
  --earth-card: #f3e9d8;
  --earth-card-inner: #ebe0cc;
  --walnut: #382314;
  --walnut-soft: #543824;
  --sepia-muted: #6e503b;
  --sienna: #8f4022;
  --sienna-dark: #6e2d15;
  --sienna-soft: #ead4c3;
  --ochre: #9c6b28;
  --ochre-soft: #efe1c6;
  --olive: #435e3e;
  --olive-soft: #dce5d8;
  --border-warm: #c5ad8f;
  --border-strong: #b09372;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--walnut);
  background-color: var(--earth-bg);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
  color: var(--walnut);
  background-color: var(--earth-bg);
  background-image:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(247, 236, 218, 0.52) 0%, rgba(156, 107, 40, 0.14) 55%, rgba(92, 58, 33, 0.18) 100%),
    url('assets/figures/sfumato_brush_bg.webp');
  background-size: 100% 100%, 720px 480px;
  background-attachment: fixed, scroll;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sienna);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--sienna-dark);
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sienna);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--sienna);
  color: #f7f0e4;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 9999;
}

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

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* STICKY NAVIGATION IN WARM EARTH GLAZE */
.navigation-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(227, 209, 183, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 2px 14px rgba(56, 35, 20, 0.06);
}

.navigation {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: var(--walnut);
  font-size: 26px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.wordmark span {
  color: var(--sienna);
  font-style: italic;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-links a {
  color: var(--walnut-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--sienna);
  text-decoration: none;
}

/* HERO SECTION WITH COMPACT CORNER SFUMATO VIGNETTE */
.hero {
  position: relative;
  text-align: center;
  padding: 46px 0 38px;
}

.hero-main-col {
  max-width: 820px;
  margin: 0 auto;
}

/* Compact top-right corner Sfumato inspiration badge */
.corner-sfumato-aside {
  position: absolute;
  top: 22px;
  right: 0;
  width: 148px;
  background: linear-gradient(155deg, rgba(64, 41, 25, 0.94) 0%, rgba(43, 27, 16, 0.96) 100%);
  color: #f3e9d8;
  border: 1px solid #8a6847;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(43, 27, 16, 0.22);
  text-align: center;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.corner-sfumato-aside:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(43, 27, 16, 0.30);
}

.corner-painting-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(218, 185, 139, 0.45);
  background: #24160d;
}

.corner-painting-wrap img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Feathered smoky vignette on the corner painting */
.corner-painting-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px 7px rgba(36, 22, 13, 0.72);
  pointer-events: none;
}

.corner-caption {
  font-size: 10px;
  line-height: 1.35;
  color: #dfcfb9;
  margin-top: 6px;
}

.corner-caption strong {
  color: #f4d59e;
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12.5px;
  font-style: italic;
}

.corner-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 9.8px;
}

.corner-actions button,
.corner-actions a {
  background: rgba(244, 213, 158, 0.15);
  border: 1px solid rgba(244, 213, 158, 0.4);
  color: #f5dcb0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 600;
  text-decoration: none;
}

.corner-actions button:hover,
.corner-actions a:hover {
  background: rgba(244, 213, 158, 0.3);
  color: #fff;
}

.venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sienna-soft);
  color: var(--sienna-dark);
  border: 1px solid rgba(143, 64, 34, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(50px, 7.2vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -1.4px;
  margin: 0;
  color: var(--walnut);
}

.hero-name > span:first-child {
  color: var(--sienna);
  font-style: italic;
  font-weight: 600;
  padding-right: 6px;
  text-shadow: 0 6px 24px rgba(143, 64, 34, 0.22);
}

.name-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sienna);
  margin-left: 6px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(23px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.28;
  margin: 10px auto 20px;
  max-width: 740px;
  color: var(--walnut-soft);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 17px;
  font-weight: 600;
}

.authors a {
  color: var(--walnut);
}

.authors a:hover {
  color: var(--sienna);
}

.authors sup {
  margin-left: 2px;
  font-size: 11px;
  color: var(--sienna);
  font-weight: 700;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 13.8px;
  color: var(--sepia-muted);
  margin: 8px 0 4px;
}

.affiliations sup {
  font-size: 10px;
  color: var(--sienna);
  font-weight: 700;
  margin-right: 2px;
}

.correspondence {
  font-size: 12px;
  color: var(--sepia-muted);
  margin: 3px 0 0;
}

.correspondence a {
  color: inherit;
  text-decoration: underline;
}

/* INSTITUTIONAL & LAB LOGOS */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 34px;
  margin: 18px auto;
  padding: 10px 24px;
  background: var(--earth-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(56, 35, 20, 0.07);
}

.logo-item {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease;
}

.logo-item:hover {
  transform: translateY(-1px);
}

.logo-item img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-item.logo-dark-bg img {
  background: #382314;
  padding: 6px 12px;
  border-radius: 6px;
  height: 42px;
}

/* RESOURCE BUTTONS */
.resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}

.resource {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--earth-card);
  color: var(--walnut);
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  transition: all 0.15s ease;
}

.resource:hover {
  background: var(--earth-card-inner);
  border-color: var(--sienna);
  color: var(--sienna-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.resource-primary {
  background: var(--sienna);
  border-color: var(--sienna);
  color: #fbf5eb;
}

.resource-primary:hover {
  background: var(--sienna-dark);
  border-color: var(--sienna-dark);
  color: #ffffff;
}

.resource-hf {
  background: var(--ochre-soft);
  border-color: var(--border-strong);
  color: #5c3a10;
}

.resource-hf:hover {
  background: #e5d1ac;
  border-color: var(--ochre);
  color: #3d2507;
}

.resource svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.hero-summary {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.42;
  margin: 26px auto 10px;
  max-width: 820px;
  color: var(--walnut);
}

.hero-summary strong {
  font-weight: 700;
  color: var(--sienna);
  font-style: italic;
}

.hero-description {
  font-size: 15px;
  line-height: 1.72;
  color: var(--walnut-soft);
  max-width: 820px;
  margin: 0 auto;
}

/* HEADLINE METRICS */
.headline-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 960px;
  margin: 24px auto 8px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--earth-card);
  padding: 16px 12px;
  box-shadow: 0 6px 20px rgba(56, 35, 20, 0.06);
}

.headline-results > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 14px;
  border-right: 1px solid var(--border-warm);
}

.headline-results > div:last-child {
  border-right: 0;
}

.headline-results strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3.3vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--walnut);
}

.headline-results strong span {
  color: var(--sienna);
}

.headline-results > div > span {
  font-size: 12px;
  color: var(--sepia-muted);
  line-height: 1.38;
}

/* BRUSHED SFUMATO SECTION DIVIDERS & BACKGROUNDS */
.content-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--border-strong);
}

.demo-section {
  background-color: var(--earth-bg-deep);
  background-image:
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(243, 233, 216, 0.38) 0%, rgba(110, 80, 59, 0.14) 100%),
    url('assets/figures/sfumato_brush_bg.webp');
  background-size: 100% 100%, 720px 480px;
  padding: 50px 0;
  border-block: 1px solid var(--border-strong);
  box-shadow: inset 0 8px 24px rgba(56, 35, 20, 0.05);
}

.eyebrow {
  display: block;
  color: var(--sienna);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-bottom: 6px;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: var(--walnut);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--walnut-soft);
  max-width: 840px;
  margin: 0 0 20px;
}

/* INTERACTIVE SPLIT-CURTAIN ANNOTATION EXPLORER */
.explorer-card {
  background: var(--earth-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(56, 35, 20, 0.10);
}

.explorer-controls-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-warm);
}

.scene-selector-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.control-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sepia-muted);
  margin-right: 4px;
}

.pill-btn {
  border: 1px solid var(--border-strong);
  background: var(--earth-card-inner);
  color: var(--walnut);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--sienna);
  color: var(--sienna-dark);
}

.pill-btn[aria-pressed="true"] {
  background: var(--sienna);
  border-color: var(--sienna);
  color: #fbf5eb;
  box-shadow: 0 2px 8px rgba(143, 64, 34, 0.30);
}

.regime-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.regime-box {
  background: var(--earth-card-inner);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 11px 14px;
}

.regime-box-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sepia-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.regime-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.regime-pill {
  border: 1px solid var(--border-strong);
  background: var(--earth-card);
  color: var(--walnut);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.8px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.regime-pill:hover {
  border-color: var(--sienna);
  color: var(--sienna-dark);
}

.regime-pill[aria-pressed="true"] {
  background: var(--walnut);
  border-color: var(--walnut);
  color: #f7efe2;
}

.regime-pill.cblnl-pill[aria-pressed="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: #ffffff;
}

/* SPLIT CURTAIN VIEWPORT */
.curtain-layout {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.curtain-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curtain-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 440;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: #24160d;
  user-select: none;
  touch-action: pan-y;
}

.curtain-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.curtain-left-layer {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.curtain-right-layer {
  z-index: 1;
}

.curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #f3e9d8;
  box-shadow: 0 0 12px rgba(36, 22, 13, 0.75);
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}

.curtain-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--earth-card);
  border: 2px solid var(--sienna);
  box-shadow: 0 3px 12px rgba(36, 22, 13, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--sienna);
}

.curtain-corner-badge {
  position: absolute;
  top: 12px;
  z-index: 5;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fbf5eb;
  background: rgba(56, 35, 20, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(243, 233, 216, 0.28);
  pointer-events: none;
}

.curtain-badge-left {
  left: 12px;
}

.curtain-badge-right {
  right: 12px;
  background: rgba(67, 94, 62, 0.92);
}

.curtain-scrubber-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sepia-muted);
}

.curtain-slider {
  flex: 1;
  accent-color: var(--sienna);
  cursor: pointer;
}

/* TELEMETRY SIDE PANEL */
.explorer-telemetry {
  background: var(--earth-card-inner);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.telemetry-header h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--walnut);
}

.telemetry-header p {
  font-size: 13.5px;
  color: var(--walnut-soft);
  margin: 0;
  line-height: 1.55;
}

.metric-comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-box {
  background: var(--earth-card);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  padding: 12px;
}

.metric-box.clean-box {
  border-left: 4px solid var(--olive);
}

.metric-box.noisy-box {
  border-left: 4px solid var(--sienna);
}

.metric-box-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sepia-muted);
  margin-bottom: 4px;
}

.metric-box-values {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--walnut);
}

.metric-box-sub {
  font-size: 11.5px;
  color: var(--sepia-muted);
  margin-top: 2px;
}

.diagnostic-callout {
  background: var(--sienna-soft);
  border-left: 4px solid var(--sienna);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--walnut);
  line-height: 1.55;
}

.diagnostic-callout strong {
  color: var(--sienna-dark);
}

/* RESULTS TABLES */
.results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.results-panel[hidden] {
  display: none !important;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--earth-card);
  box-shadow: 0 6px 20px rgba(56, 35, 20, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
  color: var(--walnut);
}

table caption {
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13px;
  color: var(--walnut);
  background: var(--earth-card-inner);
  border-bottom: 1px solid var(--border-warm);
}

th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-warm);
  white-space: nowrap;
}

thead th {
  background: #dfd0b8;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--walnut);
}

tbody tr:hover {
  background: var(--earth-card-inner);
}

tbody tr.highlight {
  background: var(--sienna-soft);
  font-weight: 600;
}

tbody tr.highlight-green {
  background: var(--olive-soft);
  font-weight: 600;
}

/* HUGGING FACE DATASET HUB & CODE CARDS */
.hf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0 28px;
}

.hf-card {
  background: var(--earth-card);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--sienna);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(56, 35, 20, 0.06);
}

.hf-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 23px;
  margin: 4px 0 6px;
  color: var(--walnut);
}

.hf-card p {
  font-size: 13.5px;
  color: var(--walnut-soft);
  margin: 0;
  line-height: 1.6;
}

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.code-card {
  background: #2b1b10;
  color: #f2e6d5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #593b25;
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #3d2718;
  font-size: 12px;
  font-weight: 600;
  color: #e3d1b7;
}

.copy-btn {
  background: rgba(243, 233, 216, 0.14);
  color: #fbf5eb;
  border: 1px solid rgba(243, 233, 216, 0.30);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.copy-btn:hover {
  background: var(--sienna);
  border-color: var(--sienna);
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
}

/* CONCISE SFUMATO COPULA INSPECTOR (BOTTOM) */
.copula-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
}

.copula-card {
  background: var(--earth-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 20px 22px;
}

.copula-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  margin: 4px 0 12px;
  color: var(--walnut);
}

.state-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.slider-group {
  margin-bottom: 12px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--sienna);
}

.copula-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.bar-track {
  height: 11px;
  background: var(--earth-bg-deep);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.citation-box pre {
  background: var(--earth-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--walnut);
  padding: 18px;
}

footer {
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--sepia-muted);
}

@media (max-width: 1100px) {
  .corner-sfumato-aside {
    position: static;
    margin: 0 auto 18px;
    width: 165px;
  }
}

@media (max-width: 920px) {
  .headline-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .headline-results > div:nth-child(2) {
    border-right: 0;
  }
  .curtain-layout,
  .copula-grid,
  .regime-groups,
  .hf-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .navigation {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 10px;
  }
  .headline-results {
    grid-template-columns: 1fr;
  }
  .headline-results > div {
    border-right: 0;
    border-bottom: 1px solid var(--border-warm);
    padding-bottom: 10px;
  }
  .headline-results > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
