@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #060b12;
    --bg-elevated: #09111b;
    --surface-1: rgba(13, 21, 32, 0.92);
    --surface-2: rgba(11, 18, 28, 0.96);
    --surface-3: rgba(15, 24, 37, 0.98);
    --surface-soft: rgba(255, 255, 255, 0.03);
    --line: rgba(62, 96, 132, 0.48);
    --line-soft: rgba(96, 130, 168, 0.18);
    --line-strong: rgba(108, 164, 214, 0.34);
    --text: #e8f0f8;
    --text-strong: #ffffff;
    --muted: #89a0b9;
    --muted-strong: #bad1e4;
    --accent: #00d4ff;
    --accent-soft: rgba(0, 212, 255, 0.16);
    --accent-ice: #8fe8ff;
    --accent-amber: #d8b16a;
    --danger: #f17d85;
    --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.48);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.34);
    --radius-xs: 10px;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --max-width: 1440px;
    --nav-height: 78px;
    --transition-fast: 180ms ease;
    --transition-slow: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 212, 255, 0.08), transparent 22%),
        radial-gradient(circle at 86% 10%, rgba(0, 212, 255, 0.1), transparent 18%),
        linear-gradient(180deg, #09111b 0%, #060b12 36%, #05080d 100%);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), black 20%, black 80%, rgba(0, 0, 0, 0.2));
}

body::after {
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.3px),
        radial-gradient(circle at 29% 68%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px),
        radial-gradient(circle at 56% 18%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.5px),
        radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
        radial-gradient(circle at 86% 76%, rgba(0, 212, 255, 0.22) 0 1.2px, transparent 1.7px);
    opacity: 0.54;
}

a {
    color: inherit;
}

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

button,
input,
select,
dialog {
    font: inherit;
}

button {
    color: inherit;
}

.page-root {
    position: relative;
    z-index: 1;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(6, 11, 18, 0.86);
    border-bottom: 1px solid rgba(90, 126, 164, 0.22);
}

.site-nav-inner {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-logo {
    text-decoration: none;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-logo span {
    color: var(--text-strong);
}

.site-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.site-nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.site-nav-links a:hover,
.site-nav-links a.is-active {
    color: var(--accent);
}

.site-nav-links a.cta-link {
    color: var(--text-strong);
}

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.section-block {
    margin-top: 26px;
}

.section-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.section-header-split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: end;
}

.section-meta,
.kicker,
.eyebrow,
.field-label,
.archive-code,
.micro-note,
.poster-index,
.poster-status,
.signal-label,
.detail-label,
.era-kicker,
.nav-jump-range {
    font-family: 'Space Mono', monospace;
}

.section-meta,
.kicker {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}

.section-copy,
.drawer-copy,
.modal-copy,
.feature-card-copy,
.case-card-copy,
.event-copy,
.event-summary,
.page-subtitle {
    color: var(--muted-strong);
}

.section-copy {
    margin: 0;
    max-width: 66ch;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(10, 18, 28, 0.98) 0%, rgba(8, 15, 24, 0.92) 54%, rgba(11, 18, 28, 0.98) 100%);
    box-shadow: var(--shadow-lg);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
        radial-gradient(circle at top right, rgba(0, 212, 255, 0.16), transparent 26%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    padding: 34px;
    align-items: stretch;
}

.archive-hero .hero-grid {
    gap: 22px;
    padding: 24px 26px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.page-title {
    margin: 0;
    max-width: 11ch;
    color: var(--text-strong);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.page-subtitle {
    margin: 0;
    max-width: 68ch;
    font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.archive-hero .page-title {
    font-size: clamp(2.7rem, 4.2vw, 4.4rem);
}

.archive-hero .page-subtitle {
    max-width: 60ch;
}

.hero-tag-row,
.hero-actions,
.stat-grid,
.case-card-meta,
.case-chip-list,
.timeline-chip-list,
.filter-chip-group,
.results-controls,
.hero-actions,
.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.story-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.08);
    color: var(--muted-strong);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
}

.story-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.1);
}

.button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0.82rem 1.18rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-strong);
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 255, 0.32);
}

.button-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.26), rgba(0, 212, 255, 0.12));
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--text-strong);
}

.button-secondary,
.button-ghost {
    background: rgba(255, 255, 255, 0.03);
}

.button-ghost:hover {
    background: rgba(0, 212, 255, 0.08);
}

.surface-card,
.surface-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(13, 21, 32, 0.94), rgba(10, 17, 26, 0.98));
    box-shadow: var(--shadow-md);
}

.surface-card::before,
.surface-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%);
    pointer-events: none;
}

.signal-list,
.panel-stack,
.sources-stack,
.related-stack {
    display: grid;
    gap: 12px;
}

.signal-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(96, 130, 168, 0.16);
    background: rgba(255, 255, 255, 0.025);
}

.signal-label {
    color: var(--accent-ice);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signal-copy {
    color: var(--text);
}

.archive-note-card {
    padding: 18px;
    align-content: start;
}

.archive-note-head {
    display: grid;
    gap: 8px;
}

.archive-note-grid {
    display: grid;
    gap: 10px;
}

.archive-note {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px 14px 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 130, 168, 0.14);
    background: rgba(255, 255, 255, 0.024);
}

.archive-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.6), transparent);
}

.archive-note p,
.start-here-copy {
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.92rem;
    line-height: 1.65;
}

.archive-note-label {
    color: var(--accent-ice);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-grid {
    gap: 12px;
    margin-top: 10px;
}

.archive-hero .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.stat-card {
    min-width: 146px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 130, 168, 0.18);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 8px;
}

.archive-hero .stat-card {
    min-width: 0;
    padding: 12px 14px;
    gap: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.archive-hero .stat-value {
    font-size: 1.42rem;
}

.archive-hero .stat-label {
    font-size: 0.68rem;
}

.stat-value {
    color: var(--text-strong);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
}

.field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.field-label.inline-label {
    margin-bottom: 0;
}

.text-input,
.select-input {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(96, 130, 168, 0.22);
    background: rgba(4, 9, 16, 0.86);
    color: var(--text);
    padding: 0.9rem 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.select-input {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 4px),
        calc(100% - 14px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.6rem;
}

.text-input:focus-visible,
.select-input:focus-visible,
.button:focus-visible,
.filter-chip:focus-visible,
.related-link:focus-visible,
.source-link:focus-visible,
.case-open:focus-visible,
.drawer-close:focus-visible,
.modal-close:focus-visible {
    outline: none;
    border-color: rgba(0, 212, 255, 0.38);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}

.drawer-panel {
    padding: 20px;
    display: grid;
    gap: 18px;
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.drawer-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.drawer-copy {
    margin: 8px 0 0;
}

.drawer-close,
.modal-close {
    appearance: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(96, 130, 168, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    cursor: pointer;
    flex: none;
}

.filter-section {
    display: grid;
    gap: 10px;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip,
.filter-chip,
.credibility-badge,
.type-badge,
.evidence-chip,
.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(96, 130, 168, 0.18);
    background: rgba(255, 255, 255, 0.045);
    padding: 0.4rem 0.75rem;
    color: var(--text);
    font-size: 0.8rem;
}

.chip,
.meta-pill,
.credibility-badge,
.type-badge,
.evidence-chip {
    font-family: 'Space Mono', monospace;
}

.meta-pill {
    color: var(--muted-strong);
}

.meta-pill-highlight {
    border-color: rgba(0, 212, 255, 0.24);
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-ice);
}

.filter-chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    min-height: 46px;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.filter-chip:hover {
    border-color: rgba(0, 212, 255, 0.22);
}

.filter-chip.is-active {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}

.filter-chip-copy {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-chip-label {
    color: var(--text);
}

.filter-chip-count {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.credibility-badge[data-tone='exceptional'] {
    border-color: rgba(0, 212, 255, 0.34);
    background: rgba(0, 212, 255, 0.16);
    color: var(--accent-ice);
}

.credibility-badge[data-tone='strong'] {
    border-color: rgba(129, 208, 255, 0.28);
    background: rgba(129, 208, 255, 0.12);
    color: #dff4ff;
}

.credibility-badge[data-tone='moderate'] {
    border-color: rgba(216, 177, 106, 0.28);
    background: rgba(216, 177, 106, 0.12);
    color: #f0d8aa;
}

.credibility-badge[data-tone='contested'] {
    border-color: rgba(241, 125, 133, 0.24);
    background: rgba(241, 125, 133, 0.1);
    color: #f9c0c5;
}

.credibility-badge[data-tone='pending'] {
    border-color: rgba(116, 137, 160, 0.24);
    background: rgba(116, 137, 160, 0.1);
    color: #c9d6e3;
}

.type-badge,
.evidence-chip {
    color: var(--muted-strong);
}

.archive-code,
.micro-note,
.poster-index,
.poster-status,
.detail-label,
.nav-jump-count {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.results-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.results-count {
    color: var(--text);
    font-size: 1rem;
}

.active-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.active-note {
    color: var(--muted);
    font-size: 0.84rem;
}

.case-poster {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(96, 130, 168, 0.16);
    min-height: 240px;
    background:
        linear-gradient(180deg, rgba(7, 12, 19, 0.12), rgba(7, 12, 19, 0.68)),
        radial-gradient(circle at 18% 20%, rgba(0, 212, 255, 0.16), transparent 26%),
        linear-gradient(135deg, rgba(12, 20, 30, 1), rgba(9, 15, 23, 1));
}

.case-poster::before,
.case-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.case-poster::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.32;
}

.case-poster::after {
    background: linear-gradient(180deg, rgba(7, 12, 19, 0.1), rgba(7, 12, 19, 0.86));
}

.case-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(1.04);
}

.case-poster[data-mode='image']::after {
    background:
        linear-gradient(180deg, rgba(7, 12, 19, 0.1), rgba(7, 12, 19, 0.92)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04));
}

.case-poster[data-theme='radar']::before {
    background:
        repeating-radial-gradient(circle at 50% 55%, rgba(0, 212, 255, 0.14) 0 2px, transparent 2px 22px),
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}

.case-poster[data-theme='briefing']::before,
.case-poster[data-theme='blueprint']::before,
.case-poster[data-theme='transcript']::before {
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 32px);
}

.case-poster[data-theme='recovery']::before {
    background:
        linear-gradient(115deg, transparent 0 20%, rgba(255, 255, 255, 0.04) 20% 22%, transparent 22% 48%, rgba(255, 255, 255, 0.03) 48% 50%, transparent 50% 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 28px);
}

.case-poster[data-theme='negative']::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 18px);
    background-size: 8px 100%, auto;
}

.case-poster[data-theme='nightwatch']::before,
.case-poster[data-theme='constellation']::before {
    background:
        radial-gradient(circle at 14% 26%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.4px),
        radial-gradient(circle at 39% 74%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.6px),
        radial-gradient(circle at 74% 32%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.4px),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, auto, auto, 32px 32px, 32px 32px;
}

.case-poster[data-theme='fieldnote']::before,
.case-poster[data-theme='containment']::before,
.case-poster[data-theme='hearing']::before {
    background:
        linear-gradient(0deg, rgba(216, 177, 106, 0.08), transparent 46%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

.poster-dossier-content {
    position: relative;
    z-index: 2;
    min-height: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
}

.poster-header,
.poster-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.poster-status {
    color: var(--accent-ice);
    position: relative;
    padding-left: 24px;
}

.poster-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-ice);
    opacity: 0.8;
}

.poster-status[data-tier="I"]::before {
    background: linear-gradient(90deg, #00d4ff, #8fe8ff);
    width: 20px;
    opacity: 1;
}

.poster-status[data-tier="II"]::before {
    background: linear-gradient(90deg, #d8b16a, #f5d59c);
    width: 16px;
}

.poster-status[data-tier="pending"]::before {
    background: rgba(96, 130, 168, 0.4);
    width: 12px;
}

.poster-status[data-tier="contested"]::before {
    background: rgba(137, 160, 185, 0.5);
    width: 12px;
}

.poster-core {
    display: grid;
    gap: 12px;
}

.poster-ledger {
    display: grid;
    gap: 8px;
}

.poster-ledger-row,
.poster-stamp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poster-ledger-item,
.poster-stamp {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 0.26rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 130, 168, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.poster-stamp {
    border-color: rgba(0, 212, 255, 0.16);
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-ice);
}

.poster-ledger-image {
    margin-top: auto;
}

.poster-redaction {
    width: min(156px, 100%);
    height: 12px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 10px, transparent 10px 18px),
        linear-gradient(90deg, rgba(241, 125, 133, 0.16), rgba(0, 212, 255, 0.08));
    opacity: 0.72;
}

.poster-tag {
    display: inline-flex;
    width: fit-content;
    padding: 0.32rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-ice);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poster-title-wrap {
    position: relative;
    min-height: 78px;
}

.poster-title,
.poster-caption {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    color: var(--text-strong);
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.poster-caption {
    max-width: 14ch;
}

.poster-initials {
    position: absolute;
    inset: auto 0 -4px auto;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    font-weight: 700;
    pointer-events: none;
}

.poster-classification {
    color: var(--muted-strong);
    font-size: 0.9rem;
}

.start-here-frame {
    padding: 16px 18px;
    display: grid;
    gap: 10px;
    max-width: 360px;
}

.poster-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.28), transparent);
}

.disclosure-modal {
    width: min(1180px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 1px solid rgba(96, 130, 168, 0.22);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(8, 13, 20, 0.98), rgba(8, 13, 20, 1));
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.disclosure-modal::backdrop {
    background: rgba(3, 6, 10, 0.76);
    backdrop-filter: blur(8px);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
}

.modal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.modal-main,
.modal-aside {
    padding: 26px;
}

.modal-aside {
    border-left: 1px solid rgba(96, 130, 168, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.modal-title {
    margin: 0;
    max-width: 14ch;
    color: var(--text-strong);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.modal-summary {
    margin: 10px 0 0;
    max-width: 60ch;
    color: var(--muted-strong);
}

.dossier-classification,
.modal-link-group {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.detail-card,
.event-meta-card {
    border-radius: 18px;
    border: 1px solid rgba(96, 130, 168, 0.14);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
}

.detail-label {
    margin-bottom: 10px;
}

.detail-value,
.event-meta-card strong {
    color: var(--text-strong);
}

.aside-title {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.event-meta-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.source-link,
.related-link {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(96, 130, 168, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.related-link {
    appearance: none;
    cursor: pointer;
    text-align: left;
}

.source-link:hover,
.related-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 255, 0.22);
    background: rgba(0, 212, 255, 0.06);
}

.source-title,
.related-title {
    color: var(--text-strong);
}

.source-meta,
.related-meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.empty-state {
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(96, 130, 168, 0.26);
    background: rgba(255, 255, 255, 0.025);
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--text-strong);
}

.empty-state p,
.footer-note p {
    margin: 0;
    color: var(--muted);
}

.footer-note {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(96, 130, 168, 0.14);
    display: grid;
    gap: 6px;
    text-align: center;
    font-size: 0.82rem;
}

.drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(5, 9, 14, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.drawer-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
}

.case-open {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    color: var(--accent-ice);
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.case-open:hover {
    color: var(--text-strong);
}

@media (max-width: 1080px) {
    .modal-shell {
        grid-template-columns: 1fr;
    }

    .modal-aside {
        border-left: 0;
        border-top: 1px solid rgba(96, 130, 168, 0.14);
    }
}

@media (max-width: 960px) {
    .site-nav-inner,
    .page-shell,
    .footer-note {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .hero-grid {
        padding: 24px;
    }

    .page-title {
        max-width: none;
    }

    .section-header-split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .start-here-frame {
        max-width: none;
    }

    .archive-hero .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .drawer-panel.is-mobile {
        position: fixed;
        inset: auto 12px 12px;
        max-height: calc(100vh - 96px);
        overflow: auto;
        z-index: 25;
        transform: translateY(16px);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-fast), opacity var(--transition-fast);
    }

    .drawer-panel.is-mobile.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-nav-links {
        gap: 12px;
    }

    .stat-card {
        min-width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
    }

    .results-bar {
        align-items: flex-start;
    }

    .active-summary {
        justify-content: flex-start;
    }

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

    .modal-main,
    .modal-aside {
        padding: 22px 18px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding-top: 22px;
    }

    .hero-grid,
    .archive-hero .hero-grid {
        padding: 20px;
    }

    .story-tag,
    .chip,
    .filter-chip,
    .credibility-badge,
    .type-badge,
    .evidence-chip,
    .meta-pill {
        font-size: 0.74rem;
    }

    .case-poster {
        min-height: 210px;
    }

    .poster-caption,
    .poster-title {
        font-size: 1.55rem;
    }

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