:root {
  --navy: #0b2e59;
  --deep: #071e3a;
  --lime: #cfff20;
  --off: #fafaf7;
  --olive: #747a45;
  --ink: #142235;
  --muted: #657083;
  --line: #d9dee5;
  --white: #ffffff;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--off); color: var(--ink); font-family: Inter, Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 36px; min-height: 76px; padding: 12px max(28px, calc((100vw - var(--max))/2)); color: white; background: rgba(7,30,58,.96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; line-height: 1.05; text-decoration: none; letter-spacing: -.02em; }
.brand small { color: #aebbd0; font-size: .78em; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--deep); background: var(--lime); border-radius: 50%; font-size: 12px; font-weight: 850; letter-spacing: -.05em; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: #dbe4ee; font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--lime); }
.status { padding: 7px 11px; color: var(--lime); border: 1px solid rgba(207,255,32,.35); border-radius: 999px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }

.hero { position: relative; overflow: hidden; min-height: 650px; padding: 108px max(28px, calc((100vw - var(--max))/2)) 82px; color: white; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: auto -6% -54% 49%; width: 760px; aspect-ratio: 1; border: 110px solid rgba(207,255,32,.08); border-radius: 50%; }
.hero::after { content: ""; position: absolute; right: 7%; top: 18%; width: 260px; height: 260px; background-image: radial-gradient(rgba(207,255,32,.48) 1px, transparent 1px); background-size: 15px 15px; mask-image: linear-gradient(135deg, black, transparent 78%); }
.eyebrow, .kicker { color: var(--olive); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1 { position: relative; z-index: 1; max-width: 990px; margin: 22px 0 28px; font-size: clamp(50px, 7vw, 92px); line-height: .94; letter-spacing: -.065em; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; margin: 0; color: #d6e0ea; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 3px; font-weight: 750; text-decoration: none; }
.button.primary { color: var(--deep); background: var(--lime); }
.button.secondary { color: white; border: 1px solid rgba(255,255,255,.36); }
.hero-note { position: relative; z-index: 1; max-width: 620px; margin-top: 44px; padding-left: 16px; color: #aebbd0; border-left: 2px solid var(--lime); font-size: 13px; line-height: 1.5; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); width: min(var(--max), calc(100% - 56px)); margin: -42px auto 0; position: relative; z-index: 3; background: white; box-shadow: 0 24px 60px rgba(9,32,60,.12); }
.metrics article { padding: 32px; border-right: 1px solid var(--line); }
.metrics article:last-child { border: 0; }
.metrics strong { display: block; color: var(--navy); font-size: 44px; line-height: 1; letter-spacing: -.05em; }
.metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.section { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 46px; }
.section-heading h2 { max-width: 680px; margin: 10px 0 0; color: var(--navy); font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.section-heading.compact { align-items: center; }

.dual-intro { padding-bottom: 72px; }
.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lens-card { position: relative; min-height: 360px; padding: 38px; overflow: hidden; color: white; background: var(--navy); }
.lens-card::after { content: ""; position: absolute; right: -100px; bottom: -140px; width: 300px; height: 300px; border: 54px solid rgba(207,255,32,.08); border-radius: 50%; }
.lens-card.current-lens { color: var(--deep); background: var(--lime); }
.lens-card.current-lens::after { border-color: rgba(11,46,89,.08); }
.lens-number { font-size: 12px; font-weight: 850; }
.lens-tag { float: right; padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.lens-card h3 { max-width: 460px; margin: 112px 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.045em; }
.lens-card p { max-width: 540px; color: #c7d3e0; line-height: 1.65; }
.lens-card.current-lens p { color: #243d5b; }
.lens-card a { position: relative; z-index: 1; display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 850; text-decoration: none; }

.current-monitor { width: 100%; max-width: none; padding-left: max(28px, calc((100vw - var(--max))/2)); padding-right: max(28px, calc((100vw - var(--max))/2)); color: white; background: var(--deep); }
.current-monitor .section-heading h2 { color: white; }
.current-monitor .section-heading p { color: #b2c0cf; }
.current-monitor .kicker { color: var(--lime); }
.current-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px; }
.current-summary { display: grid; grid-template-rows: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.16); }
.current-summary div { display: flex; align-items: baseline; gap: 20px; padding: 30px; border-bottom: 1px solid rgba(255,255,255,.16); }
.current-summary div:last-child { border: 0; }
.current-summary strong { color: var(--lime); font-size: 52px; line-height: 1; letter-spacing: -.05em; }
.current-summary span { color: #aebdcb; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.current-chart-panel { min-height: 390px; background: #0c315d; border-color: rgba(255,255,255,.14); }
.current-chart-panel .panel-title h3, .current-chart-panel .bar-row .value { color: white; }
.current-chart-panel .panel-title span, .current-chart-panel .bar-row .label { color: #b6c3d1; }
.current-chart-panel .bar-track { background: rgba(255,255,255,.12); }
.current-chart-panel .bar-fill, .current-chart-panel .bar-row:nth-child(-n+3) .bar-fill { background: var(--lime); }
.thesis-strip { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; margin-top: 20px; padding: 26px 30px; color: var(--deep); background: var(--lime); }
.thesis-strip span { font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.thesis-strip p { max-width: 920px; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }

.findings-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.panel { min-height: 510px; padding: 34px; background: white; border: 1px solid var(--line); }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.panel-title h3 { margin: 0; color: var(--navy); font-size: 22px; }
.panel-title span { color: var(--muted); font-size: 12px; }
.bar-chart { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 34px; gap: 12px; align-items: center; }
.bar-row .label { color: #435066; font-size: 12px; }
.bar-track { height: 8px; overflow: hidden; background: #edf0f3; border-radius: 99px; }
.bar-fill { height: 100%; background: var(--navy); border-radius: inherit; }
.bar-row:nth-child(-n+3) .bar-fill { background: var(--lime); }
.bar-row .value { color: var(--navy); font-size: 12px; font-weight: 800; text-align: right; }
.narrative-panel { color: white; background: var(--navy); border-color: var(--navy); }
.narrative-panel .number { display: inline-block; margin-top: 4px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.narrative-panel h3 { margin: 7px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.narrative-panel p { margin: 0 0 34px; color: #c8d3df; font-size: 14px; line-height: 1.65; }

.explorer { width: 100%; max-width: none; padding-left: max(28px, calc((100vw - var(--max))/2)); padding-right: max(28px, calc((100vw - var(--max))/2)); background: #edf1f4; }
.dataset-switch { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; background: #dfe5ea; border-radius: 3px; }
.dataset-switch button { padding: 12px 16px; color: #526074; background: transparent; border: 0; border-radius: 2px; cursor: pointer; font-size: 13px; font-weight: 750; }
.dataset-switch button.active { color: white; background: var(--navy); }
.dataset-switch button:disabled { cursor: wait; opacity: .62; }
.dataset-switch button span { display: inline-grid; min-width: 24px; height: 20px; margin-left: 6px; place-items: center; color: var(--deep); background: var(--lime); border-radius: 999px; font-size: 10px; }
.filters { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 12px; padding: 20px; background: white; border: 1px solid var(--line); }
.filters label { display: grid; gap: 7px; }
.filters label > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.filters input, .filters select { min-width: 0; height: 44px; padding: 0 12px; color: var(--ink); background: var(--off); border: 1px solid var(--line); border-radius: 2px; }
.results-row { display: flex; justify-content: space-between; margin: 20px 0; color: var(--muted); font-size: 13px; }
.results-row button { padding: 0; color: var(--navy); background: none; border: 0; cursor: pointer; font-weight: 750; }
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; min-height: 330px; padding: 24px; text-align: left; background: white; border: 1px solid var(--line); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.case-card:hover { transform: translateY(-4px); border-color: var(--olive); box-shadow: 0 16px 32px rgba(13,42,72,.1); }
.case-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--olive); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.case-card h3 { margin: 24px 0 14px; color: var(--navy); font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.case-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.card-footer { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 24px; }
.risk { display: grid; gap: 4px; }
.risk small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.risk strong { color: var(--navy); font-size: 26px; }
.risk-denominator { font-size: 12px; }
.evidence-pill { align-self: end; margin-left: auto; margin-right: 12px; padding: 5px 7px; color: var(--olive); background: #f1f4e7; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.read-more { color: var(--navy); font-size: 12px; font-weight: 800; }
.empty { grid-column: 1/-1; padding: 56px; text-align: center; color: var(--muted); background: white; }
.empty.loading::before { content: ""; display: block; width: 24px; height: 24px; margin: 0 auto 14px; border: 3px solid #dfe5ea; border-top-color: var(--navy); border-radius: 50%; animation: explorer-spin .8s linear infinite; }
.load-error { display: grid; justify-items: center; gap: 8px; }
.load-error strong { color: var(--deep); }
.load-error button { margin-top: 8px; padding: 10px 14px; color: white; background: var(--navy); border: 0; border-radius: 2px; cursor: pointer; font-weight: 750; }
@keyframes explorer-spin { to { transform: rotate(360deg); } }

.methodology { padding-bottom: 90px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-grid article { min-height: 270px; padding: 28px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid article > span { color: var(--olive); font-size: 11px; font-weight: 800; }
.method-grid h3 { margin: 54px 0 12px; color: var(--navy); font-size: 20px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 24px; border: 1px solid var(--line); }
.scale div { display: flex; gap: 12px; align-items: center; padding: 18px; border-right: 1px solid var(--line); }
.scale div:last-child { border: 0; }
.scale strong { display: grid; flex: 0 0 28px; place-items: center; height: 28px; color: var(--deep); background: var(--lime); border-radius: 50%; font-size: 12px; }
.scale span { color: var(--muted); font-size: 11px; line-height: 1.35; }

.about-section { padding: 88px max(28px, calc((100vw - var(--max))/2)); color: white; background: var(--navy); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-section .kicker { color: var(--lime); }
.about-section h2 { margin: 10px 0 16px; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.05em; }
.about-section p { max-width: 570px; margin: 0 0 15px; color: #c7d2df; font-size: 15px; line-height: 1.7; }
.about-copy { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.2); }
.about-copy h3 { margin: 0 0 14px; color: var(--lime); font-size: 17px; }
.about-copy strong { color: white; }

footer { display: flex; justify-content: space-between; gap: 60px; padding: 48px max(28px, calc((100vw - var(--max))/2)); color: #cbd6e1; background: var(--deep); }
footer strong { color: white; }
footer span, footer p { color: #9cabbc; font-size: 12px; line-height: 1.6; }
footer p { max-width: 520px; margin: 0; text-align: right; }

dialog { width: min(860px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(5,20,40,.76); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; z-index: 2; top: 16px; float: right; margin: 16px 16px 0 0; width: 38px; height: 38px; color: white; background: var(--navy); border: 0; border-radius: 50%; cursor: pointer; font-size: 24px; }
.dialog-body { padding: 48px; }
.dialog-body .case-meta { padding-right: 48px; }
.dialog-body h2 { max-width: 650px; margin: 18px 0 10px; color: var(--navy); font-size: clamp(30px, 5vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.dialog-body .pattern { margin: 0 0 28px; color: var(--olive); font-weight: 750; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dialog-grid section { padding: 24px; background: white; }
.dialog-grid h3 { margin: 0 0 9px; color: var(--navy); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.dialog-grid p { margin: 0; color: #526074; font-size: 14px; line-height: 1.65; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.source-links a { padding: 10px 13px; color: var(--navy); border: 1px solid var(--line); font-size: 12px; font-weight: 750; text-decoration: none; }
.source-links a:hover { color: white; background: var(--navy); border-color: var(--navy); }
.source-links a span { color: var(--olive); }

@media (max-width: 980px) {
  nav { display: none; }
  .status { margin-left: auto; }
  .section-heading, .findings-grid { grid-template-columns: 1fr; gap: 26px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .current-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 42px; }
  .scale { grid-template-columns: 1fr; }
  .scale div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .topbar { min-height: 66px; padding-left: 18px; padding-right: 18px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .status { display: none; }
  .hero { min-height: auto; padding: 74px 22px 82px; }
  h1 { font-size: 50px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .metrics { grid-template-columns: 1fr 1fr; width: calc(100% - 28px); }
  .metrics article { padding: 22px; border-bottom: 1px solid var(--line); }
  .metrics strong { font-size: 34px; }
  .section { width: calc(100% - 36px); padding: 78px 0; }
  .explorer { width: 100%; padding-left: 18px; padding-right: 18px; }
  .section-heading h2 { font-size: 40px; }
  .lens-grid { grid-template-columns: 1fr; }
  .lens-card { min-height: 310px; padding: 26px; }
  .lens-card h3 { margin-top: 80px; }
  .current-monitor { width: 100%; padding-left: 18px; padding-right: 18px; }
  .current-summary div { padding: 22px; }
  .thesis-strip { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .dataset-switch { display: grid; width: 100%; grid-template-columns: 1fr; }
  .panel { min-height: auto; padding: 24px; }
  .bar-row { grid-template-columns: 112px 1fr 30px; }
  .filters, .cases-grid, .method-grid, .dialog-grid { grid-template-columns: 1fr; }
  .case-card { min-height: 300px; }
  footer { display: block; }
  footer p { margin-top: 24px; text-align: left; }
  .dialog-body { padding: 38px 22px 28px; }
}
