:root {
  --ink: #f7f5fb;
  --muted: #aaa5b8;
  --dim: #787382;
  --surface: #111018;
  --surface-2: #17151f;
  --surface-3: #211e2c;
  --line: #302c3d;
  --accent: #8b6cf6;
  --accent-light: #bcaaff;
  --accent-dark: #5b3fd0;
  --green: #68d391;
  --danger: #f0a6a6;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; background: var(--ink); color: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(17, 16, 24, .9); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent); color: white; border-radius: 11px; font-size: 13px; font-weight: 900; letter-spacing: -.04em; }
.brand-name { font-size: 12px; line-height: 1.15; color: var(--muted); letter-spacing: .02em; }
.brand-name strong { color: var(--ink); font-size: 13px; }
.brand-title { max-width: 285px; color: var(--ink); font-size: 14px; font-weight: 850; line-height: 1.2; letter-spacing: -.01em; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.primary-nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--accent); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: white; text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #987cf7; }
.button-small { min-height: 40px; padding-inline: 18px; font-size: 13px; }
.button-secondary { background: transparent; color: var(--accent-light); }
.button-secondary:hover { background: rgba(139,108,246,.12); }
.text-link { color: var(--accent-light); font-weight: 750; text-decoration: none; }
.text-link:hover { color: white; }

.hero { position: relative; overflow: hidden; padding: 105px 0 92px; background: #111018; }
.hero::before, .page-hero::before, .case-detail-hero::before { content: ""; position: absolute; z-index: 0; inset: -12%; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='%238b6cf6' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M18 68 92 28l79 48 87-34 68 64 76-35M54 206l72-58 77 33 84-62 79 50M92 28l34 120m45-72 32 105m55-139 29 77m39-13 40 63'/%3E%3C/g%3E%3Cg fill='%23bcaaff'%3E%3Ccircle cx='18' cy='68' r='2'/%3E%3Ccircle cx='92' cy='28' r='3'/%3E%3Ccircle cx='171' cy='76' r='2'/%3E%3Ccircle cx='258' cy='42' r='2.5'/%3E%3Ccircle cx='326' cy='106' r='3'/%3E%3Ccircle cx='402' cy='71' r='2'/%3E%3Ccircle cx='54' cy='206' r='2.5'/%3E%3Ccircle cx='126' cy='148' r='2'/%3E%3Ccircle cx='203' cy='181' r='3'/%3E%3Ccircle cx='287' cy='119' r='2'/%3E%3Ccircle cx='366' cy='169' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat; animation: hero-network-drift 18s ease-in-out infinite alternate; will-change: transform; }
.hero::after, .page-hero::after, .case-detail-hero::after { content: ""; position: absolute; z-index: 0; top: 12%; right: 9%; width: 180px; height: 180px; border: 1px solid rgba(188,170,255,.22); border-radius: 50%; box-shadow: 0 0 0 58px rgba(139,108,246,.1), 0 0 0 118px rgba(139,108,246,.05); pointer-events: none; animation: hero-signal-pulse 8s ease-in-out infinite; will-change: transform, opacity; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); align-items: center; gap: 80px; }
.hero-grid > div { animation: reveal-up .7s ease-out both; }
.hero-panel { animation: reveal-up .7s .16s ease-out both; }
.eyebrow { margin: 0 0 18px; color: var(--accent-light); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(104,211,145,.12); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 86px); line-height: .98; letter-spacing: -.065em; }
h1 span, .page-hero h1 span { color: var(--accent-light); }
.hero-copy { max-width: 650px; margin: 28px 0 0; color: #c5c0cd; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.hero-principles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; color: #aaa3b5; font-size: 12px; font-weight: 800; letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.hero-principles li { display: flex; align-items: center; gap: 9px; }
.hero-principles li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(139,92,246,.12); content: ""; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 35px; }
.hero-panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(23,21,31,.9); box-shadow: var(--shadow); overflow: hidden; }
.hero-panel-top { display: flex; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live-label { color: var(--green); }
.scope-list { margin: 0; }
.scope-list div { display: flex; justify-content: space-between; align-items: baseline; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.scope-list dt { color: var(--muted); font-size: 13px; }
.scope-list dd { margin: 0; font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.panel-note { margin: 0; padding: 18px 22px; color: var(--dim); font-size: 12px; line-height: 1.6; }

.dashboard-section, .featured-section, .reference-section { padding: 90px 0; }
.dashboard-section { position: relative; overflow: hidden; background: #0d0c12; }
.dashboard-section::before { content: ""; position: absolute; inset: -30%; pointer-events: none; opacity: .4; background: radial-gradient(circle at 30% 45%, rgba(87,55,190,.22), transparent 23%), radial-gradient(circle at 72% 62%, rgba(139,108,246,.16), transparent 20%); filter: blur(35px); }
.dashboard-section > .shell { position: relative; z-index: 1; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.metric-card { padding: 23px; border: 1px solid var(--line); background: var(--surface-2); animation: reveal-up .55s ease-out both; }
.metric-card:nth-child(2) { animation-delay: .07s; }
.metric-card:nth-child(3) { animation-delay: .14s; }
.metric-card:nth-child(4) { animation-delay: .21s; }
.metric-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.metric-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { display: block; margin: 5px 0 1px; font-size: 42px; line-height: 1.1; letter-spacing: -.06em; }
.metric-card small { font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 12px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; animation: reveal-up .65s .18s ease-out both; }
.panel-heading { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.02em; }
.panel-heading a, .range-label { color: var(--accent-light); font-size: 12px; font-weight: 750; text-decoration: none; }
.panel-kicker { margin: 0; color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.map-panel { grid-row: auto; }
.map-wrap { position: relative; min-height: 630px; padding: 14px; background: radial-gradient(circle at 55% 45%, rgba(139,108,246,.09), transparent 30%), #09080d; }
.case-map { width: 100%; height: 600px; display: block; cursor: grab; touch-action: none; }
.case-map.is-panning { cursor: grabbing; }
.case-map:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -4px; border-radius: 8px; }
.map-controls { position: absolute; z-index: 5; top: 67px; right: 18px; display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(18,16,25,.94); box-shadow: var(--shadow); }
.map-controls button { min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.map-controls button:last-child { border-right: 0; color: var(--accent-light); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.map-controls button:hover, .map-controls button:focus-visible { background: #2a2437; }
.map-controls button:disabled { color: #5d5668; cursor: not-allowed; background: transparent; }
.map-help { margin: 0 190px 8px 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.map-outline { fill: #171521; stroke: #393249; stroke-width: 2; }
.map-grid-line { stroke: #292533; stroke-width: 1; stroke-dasharray: 4 8; }
.map-state { fill: #181620; stroke: #5a5367; stroke-width: 1.15; vector-effect: non-scaling-stroke; transition: fill .15s ease, stroke .15s ease; }
.map-state:hover { fill: #242032; stroke: #8a7aa2; }
.map-inset-border { fill: none; stroke: #373140; stroke-width: 1; stroke-dasharray: 4 5; }
.map-inset-label { fill: #71697d; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.map-marker { fill: var(--accent); stroke: #d6cdff; stroke-width: 2; opacity: .88; transform-box: fill-box; transform-origin: center; transition: transform .15s ease, opacity .15s ease; }
.map-marker:hover, .map-marker:focus { opacity: 1; transform: scale(1.55); }
.map-cluster { cursor: pointer; }
.map-cluster-marker { fill: #6f50dc; stroke-width: 2.5; }
.map-cluster-count { fill: #fff; font-size: 9px; font-weight: 900; pointer-events: none; }
.map-label { fill: #625c6f; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.map-legend { position: absolute; left: 25px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(10,9,14,.88); color: var(--muted); font-size: 10px; }
.map-legend span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.map-attribution { position: absolute; right: 24px; bottom: 25px; color: #6d6677; font-size: 9px; text-decoration: none; }
.map-attribution:hover { color: var(--accent-light); }
.map-tooltip { position: absolute; z-index: 6; width: min(320px, calc(100% - 20px)); max-height: min(420px, calc(100% - 30px)); overflow-y: auto; padding: 12px 14px; border: 1px solid #57477d; border-radius: 8px; background: #1b1725; box-shadow: 0 12px 35px rgba(0,0,0,.45); color: var(--ink); font-size: 12px; }
.map-tooltip strong { display: block; margin-bottom: 2px; }
.map-tooltip span { color: var(--muted); }
.map-tooltip-name, .map-cluster-list a { display: block; max-width: 100%; overflow-wrap: anywhere; color: var(--accent-light); font-weight: 800; line-height: 1.35; text-decoration: none; }
.map-tooltip-name:hover, .map-tooltip-name:focus-visible, .map-cluster-list a:hover, .map-cluster-list a:focus-visible { color: white; text-decoration: underline; }
.map-tooltip-meta { display: block; }
.map-tooltip-summary { margin: 8px 0 0; color: #c5c0cd; line-height: 1.5; }
.map-cluster-list { display: grid; gap: 10px; margin: 9px 0 0; padding: 9px 0 0; border-top: 1px solid var(--line); list-style: none; }
.map-cluster-list li + li { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.map-cluster-location { display: block; color: #8f899a; font-size: 10px; }
.map-cluster-list p { margin: 3px 0 0; color: #c5c0cd; line-height: 1.45; }
.classification-panel { min-height: 390px; }
.bar-chart { display: grid; gap: 16px; padding: 26px 23px; }
.bar-row { display: grid; gap: 7px; }
.bar-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.bar-meta strong { color: var(--ink); }
.bar-track { height: 10px; border-radius: 999px; background: #292533; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-dark), var(--accent-light)); transform-origin: left; animation: bar-grow .9s .3s ease-out both; }
.year-panel { grid-column: 1 / -1; min-height: 300px; }
.year-chart { min-height: 216px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15px, 1fr); align-items: end; gap: 3px; padding: 30px 20px 12px; overflow-x: auto; background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(255,255,255,.045) 44px); scrollbar-color: #55466f #1b1822; }
.year-column { min-width: 15px; display: grid; grid-template-rows: 138px 28px; align-items: end; text-align: center; }
.year-bar { position: relative; width: min(100%, 22px); min-height: 0; justify-self: center; align-self: end; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-light), var(--accent-dark)); opacity: .88; transform-origin: bottom; animation: bar-rise .75s .35s ease-out both; }
.height-level-1 { height: 8px; }
.height-level-2 { height: 11px; }
.height-level-3 { height: 17px; }
.height-level-4 { height: 22px; }
.height-level-5 { height: 28px; }
.height-level-6 { height: 34px; }
.height-level-7 { height: 39px; }
.height-level-8 { height: 45px; }
.height-level-9 { height: 50px; }
.height-level-10 { height: 56px; }
.height-level-11 { height: 62px; }
.height-level-12 { height: 67px; }
.height-level-13 { height: 73px; }
.height-level-14 { height: 78px; }
.height-level-15 { height: 84px; }
.height-level-16 { height: 90px; }
.height-level-17 { height: 95px; }
.height-level-18 { height: 101px; }
.height-level-19 { height: 106px; }
.height-level-20 { height: 112px; }
.year-column.has-cases .year-bar:hover, .year-column.has-cases .year-bar:focus { opacity: 1; outline: 2px solid rgba(202,190,255,.8); outline-offset: 2px; }
.year-count { position: absolute; left: 50%; bottom: calc(100% + 4px); color: #c8c1d1; font-size: 8px; font-weight: 800; line-height: 1; transform: translateX(-50%); }
.year-tooltip { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 7px); display: none; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: #252130; box-shadow: var(--shadow); color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
.year-bar:hover .year-tooltip, .year-bar:focus .year-tooltip { display: block; }
.year-bar:hover .year-count, .year-bar:focus .year-count { visibility: hidden; }
.year-label { align-self: start; min-width: 34px; padding-top: 9px; color: #938c9f; font-size: 9px; font-weight: 700; letter-spacing: .02em; transform: translateX(-50%); }
.chart-empty { grid-column: 1 / -1; align-self: center; margin: 0; color: var(--muted); text-align: center; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hero-network-drift { from { transform: translate3d(-2.5%, -2%, 0) scale(1); } to { transform: translate3d(2.5%, 2%, 0) scale(1.035); } }
@keyframes hero-signal-pulse { 0%, 100% { opacity: .38; transform: scale(.82); } 50% { opacity: .78; transform: scale(1.08); } }

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

.featured-section { background: var(--surface); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.case-card:hover { transform: translateY(-4px); border-color: #5d4a87; }
.case-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #252130; }
.case-card-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: saturate(.9); transition: filter .3s ease; }
.case-card:hover img { filter: saturate(1); }
.case-card-body { padding: 20px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.case-id { color: var(--accent-light); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.status-pill { padding: 4px 8px; border: 1px solid #494154; border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-pill.presumed { color: var(--danger); border-color: #714c58; }
.case-card h3 { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.missing-year { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.year-directory { display: grid; gap: 46px; }
.year-group { display: grid; gap: 18px; }
.year-group-heading { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.year-group-heading h2 { margin: 0; color: var(--text); font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.year-group-heading span { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.case-location { margin: 0 0 13px; color: var(--dim); font-size: 12px; }
.case-summary { min-height: 68px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.standards-section { padding: 90px 0; border-top: 1px solid var(--line); background: var(--surface-2); }
.standards-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; }
.standards-grid h2 { max-width: 470px; margin: 0; font-size: clamp(35px, 5vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.standard-list { display: grid; }
.standard-list article { display: grid; grid-template-columns: 45px 1fr; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.standard-list article:first-child { padding-top: 0; }
.standard-list span { color: var(--accent-light); font-size: 11px; font-weight: 850; }
.standard-list h3 { margin: 0 0 5px; font-size: 17px; }
.standard-list p { margin: 0; color: var(--muted); font-size: 13px; }

.page-hero { position: relative; overflow: hidden; padding: 88px 0 70px; border-bottom: 1px solid var(--line); background: #121019; }
.page-hero > .shell { position: relative; z-index: 1; }
.page-hero.compact { padding-block: 75px 62px; }
.page-hero h1 { max-width: 950px; font-size: clamp(48px, 7vw, 78px); }
.page-hero > .shell > p:last-child { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.directory-section { min-height: 650px; padding: 45px 0 90px; background: #0d0c12; }
.filter-panel { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr) auto; align-items: end; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.filter-panel label { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #3a3547; border-radius: 9px; background: #0e0d13; color: var(--ink); }
.filter-panel input::placeholder { color: #6f687b; }
.reset-button { min-height: 44px; padding: 0 15px; border: 1px solid #4a4259; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.reset-button:hover { color: white; border-color: var(--accent); }
.results-heading { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0 20px; color: var(--muted); font-size: 13px; }
.results-heading p { margin: 0; }
.results-heading strong { color: white; font-size: 20px; }
.source-note { align-self: center; }
.directory-grid { grid-template-columns: repeat(3, 1fr); }
.empty-state { padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state h2 { margin: 0; }
.empty-state p { color: var(--muted); }

.prose-section { padding: 70px 0 110px; background: #0d0c12; }
.prose-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: space-between; gap: 70px; }
.prose-layout aside { align-self: start; position: sticky; top: 115px; }
.side-nav { display: grid; border-left: 1px solid var(--line); }
.side-nav a { padding: 6px 0 6px 18px; color: var(--muted); text-decoration: none; font-size: 13px; }
.side-nav a:hover { color: var(--accent-light); }
.prose h2 { margin: 55px 0 15px; font-size: 31px; line-height: 1.2; letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #bbb6c4; font-size: 16px; line-height: 1.85; }
.prose code { padding: 2px 6px; border: 1px solid #393343; border-radius: 5px; background: #17141e; color: var(--accent-light); font-size: .88em; }
.prose ol { padding-left: 22px; }
.flow-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.flow-card > span { color: var(--accent); font-size: 25px; }
.flow-card > div { display: flex; flex-wrap: wrap; gap: 8px; }
.download-section { margin: 55px 0 65px; scroll-margin-top: 110px; }
.download-section > p { max-width: 720px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.download-card { display: grid; gap: 4px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.download-card strong { color: var(--ink); font-size: 15px; }
.download-card span { color: var(--muted); font-size: 12px; }
.download-card small { margin-top: 8px; color: var(--accent-light); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.download-card:hover, .download-card:focus-visible { border-color: var(--accent); background: #1d1928; transform: translateY(-2px); }
.contact-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--accent-light); }
.social-links { display: flex; align-items: center; gap: 10px; }
.social-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #41394f; border-radius: 50%; color: var(--accent-light); transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease; }
.social-icon:hover { color: white; border-color: var(--accent); background: rgba(139,108,246,.14); transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-links-large { gap: 14px; margin-top: 24px; }
.social-links-large .social-icon { width: 52px; height: 52px; }
.social-links-large .social-icon svg { width: 23px; height: 23px; }
.reference-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reference-card { min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.reference-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.reference-card > span { color: var(--accent-light); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reference-card h2 { margin: 45px 0 7px; font-size: 26px; letter-spacing: -.035em; }
.reference-card p { margin: 0 0 24px; color: var(--muted); }
.reference-card strong { margin-top: auto; color: var(--accent-light); font-size: 13px; }
.accent-card { grid-column: 1 / -1; min-height: 220px; background: linear-gradient(135deg, #1f1834, #15131c); }

.case-detail-hero { position: relative; overflow: hidden; padding: 65px 0; background: #111018; }
.case-detail-hero > .shell { position: relative; z-index: 1; }
.back-link { display: inline-block; margin-bottom: 25px; color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: white; }
.case-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; }
.case-portrait { aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.case-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.case-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 15px; }
.case-detail-copy h1 { overflow-wrap: anywhere; font-size: clamp(36px, 6vw, 72px); line-height: 1.04; }
.case-detail-copy > p { max-width: 750px; margin: 22px 0 0; color: #c3bdcb; font-size: 18px; }
.case-content { padding: 65px 0 100px; background: #0d0c12; }
.case-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 65px; align-items: start; }
.case-story section { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.case-story h2, .case-sidebar h2 { margin: 0 0 15px; font-size: 27px; letter-spacing: -.03em; }
.case-story p { margin: 0; color: #bbb6c4; line-height: 1.85; }
.timeline { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 9px; bottom: 9px; width: 1px; background: #41394f; }
.timeline li { position: relative; padding-left: 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border: 2px solid var(--accent-light); border-radius: 50%; background: #0d0c12; }
.timeline strong { display: block; color: var(--accent-light); font-size: 13px; }
.timeline span { color: var(--muted); font-size: 14px; }
.case-sidebar { position: sticky; top: 110px; display: grid; gap: 16px; }
.facts-card, .tip-card, .sources-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.facts-list { margin: 0; }
.facts-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--dim); font-size: 11px; }
.facts-list dd { margin: 0; text-align: right; color: var(--ink); font-size: 12px; font-weight: 700; }
.tip-card { border-color: #594879; background: #1d1729; }
.tip-card p, .sources-card p { color: var(--muted); font-size: 12px; }
.tip-card a { display: block; margin-top: 7px; color: var(--accent-light); font-weight: 800; }
.agency-contact-list { display: grid; gap: 14px; margin: 17px 0 0; padding: 0; list-style: none; }
.agency-contact-list li { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.agency-contact-list strong, .agency-contact-list span { display: block; }
.agency-contact-list strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; line-height: 1.45; }
.agency-contact-list span { margin-top: 5px; color: var(--dim); font-size: 11px; }
.source-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.source-list a { color: var(--accent-light); font-size: 12px; overflow-wrap: anywhere; }
.verified-date { color: var(--dim); font-size: 11px; }
.related-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.related-list a { color: var(--accent-light); }

.site-footer { padding: 55px 0 25px; border-top: 1px solid var(--line); background: #0a090e; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; padding-bottom: 45px; }
.case-page-footer .footer-grid { grid-template-columns: 2fr 1fr; }
.footer-brand { margin-bottom: 17px; }
.footer-grid p { max-width: 370px; color: var(--dim); font-size: 12px; }
.footer-grid h2 { margin: 0 0 12px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:nth-child(n+2) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid > div:nth-child(n+2) a { padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 22px; border-top: 1px solid #211e28; color: #5f5969; font-size: 10px; }
.footer-bottom p { margin: 0; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 60% 30%, rgba(139,108,246,.2), transparent 30%), var(--surface); text-align: center; }
.error-page > div { max-width: 650px; }
.error-page h1 { font-size: clamp(45px, 8vw, 75px); }
.error-page p:not(.eyebrow) { color: var(--muted); }
.error-page .hero-actions { justify-content: center; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-panel { max-width: 620px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:first-child { border-radius: var(--radius) 0 0 0; }
  .metric-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .metric-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .metric-card:last-child { border-radius: 0 0 var(--radius) 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .map-panel { grid-row: auto; }
  .year-panel { grid-column: auto; }
  .case-grid, .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .standards-grid { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: auto; padding: 13px 0; flex-wrap: wrap; }
  .nav-wrap > .button { display: inline-flex; min-height: 38px; padding-inline: 14px; }
  .brand-title { max-width: 250px; font-size: 13px; }
  .primary-nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; overflow-x: auto; }
  .primary-nav a { padding: 8px 0; font-size: 12px; white-space: nowrap; }
  .primary-nav a[aria-current="page"]::after { bottom: 0; }
  .hero { padding: 70px 0; }
  h1 { letter-spacing: -.055em; }
  .hero-copy { font-size: 17px; }
  .hero-principles { align-items: flex-start; flex-direction: column; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 18px; }
  .metric-card strong { font-size: 34px; }
  .map-wrap { min-height: 430px; }
  .case-map { height: 405px; }
  .map-help { min-height: 44px; margin-right: 165px; }
  .map-controls { top: 63px; }
  .map-attribution { right: 18px; bottom: 14px; max-width: 170px; text-align: right; }
  .year-chart { grid-auto-columns: 18px; gap: 4px; padding-inline: 18px; overscroll-behavior-inline: contain; }
  .case-grid, .directory-grid { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .reference-grid { grid-template-columns: 1fr; }
  .accent-card { grid-column: auto; }
  .prose-layout { grid-template-columns: 1fr; gap: 35px; }
  .download-grid { grid-template-columns: 1fr; }
  .prose-layout aside { position: static; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-portrait { max-width: 340px; }
  .case-content-grid { grid-template-columns: 1fr; }
  .case-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .brand-title { max-width: 210px; font-size: 12px; }
  .hero-actions .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card, .metric-card:first-child, .metric-card:nth-child(2), .metric-card:nth-child(3), .metric-card:last-child { border-radius: 12px; }
  .filter-panel { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .contact-list li { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
