/* Obexum corporate site — design system v1
 * 2026-04-27 · Sprint C
 *
 * Visual language:
 *   - Dark by default (operator/SOC aesthetic), light theme via prefers-color-scheme.
 *   - Restrained palette: graphite background, off-white text, single blue accent.
 *   - Typography: Inter (UI), JetBrains Mono (code), tight heading rhythm.
 *   - Spacing scale: 4px base · 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96.
 *   - No third-party CSS frameworks. Everything inlined here.
 */

/* System font stack only — keeps the strict CSP intact (no third-party
 * font origins) and loads instantly. Inter / JetBrains Mono are kept
 * as the first choice for users who already have them installed
 * locally; otherwise we fall back to platform UI fonts which render
 * cleanly across macOS / Windows / Linux. */

:root {
    /* dark theme — default */
    --bg:        #0a0a0c;
    --surface:   #131318;
    --surface-2: #1c1c22;
    --surface-3: #25252c;
    --border:    #2a2a32;
    --border-2:  #383842;
    --text:      #e8e8ec;
    --text-2:    #b4b4bc;
    --muted:     #767680;

    --accent:        #4a8aef;
    --accent-2:      #8ab4f8;
    --accent-soft:   rgba(74, 138, 239, 0.12);

    --crit:      #ff4155;
    --high:      #ff8c3a;
    --imp:       #ffc83a;
    --med:       #5cb3ff;
    --low:       #7ad47a;

    /* aliases used by the threat wall block */
    --critical:  #ff4155;
    --medium:    #ffc83a;
    --crit-glow: rgba(255, 65, 85, 0.5);
    --high-glow: rgba(255, 140, 58, 0.4);
    --med-glow:  rgba(255, 200, 58, 0.35);

    --radius:    8px;
    --radius-lg: 14px;

    --shadow-1: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-2: 0 8px 24px rgba(0,0,0,0.35);

    --container: 1200px;
    --gutter:    1.5rem;

    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, Menlo, monospace;
}

@media (prefers-color-scheme: light) {
    :root.theme-auto {
        --bg:        #fafafb;
        --surface:   #ffffff;
        --surface-2: #f4f4f6;
        --surface-3: #ebebef;
        --border:    #e0e0e6;
        --border-2:  #d0d0d8;
        --text:      #18181c;
        --text-2:    #44444c;
        --muted:     #767680;
        --accent-soft: rgba(74, 138, 239, 0.08);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font: 400 16px/1.65 var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* layout */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 3rem;     letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: 2.25rem;  letter-spacing: -0.025em; }
h3 { font-size: 1.5rem;   }
h4 { font-size: 1.18rem;  }
h5 { font-size: 1.02rem; font-weight: 500; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

p { color: var(--text-2); }

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

code, pre, kbd, samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

code:not(pre code) {
    background: var(--surface-2);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    color: var(--accent-2);
    font-size: 0.88em;
    border: 1px solid var(--border);
}

pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-2);
}

pre code {
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
}

/* simple syntax highlighting tokens — light hand-rolled */
.tok-kw   { color: #c586c0; }
.tok-str  { color: #ce9178; }
.tok-cmt  { color: #5a5a64; font-style: italic; }
.tok-num  { color: #b5cea8; }
.tok-fn   { color: #dcdcaa; }
.tok-cmd  { color: var(--accent-2); }
.tok-flag { color: #9cdcfe; }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-1);
}
.btn-primary:hover {
    background: #5a96f5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-2);
}
.btn-outline:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}
.btn-ghost:hover {
    color: var(--text);
    background: var(--surface-2);
}

.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

/* nav */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
    color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.logo span.dim { color: var(--text-2); font-weight: 400; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
}
.nav-links li a {
    display: inline-flex;
    padding: 0.5rem 0.9rem;
    color: var(--text-2);
    font-size: 0.93rem;
    border-radius: 6px;
    transition: all 0.12s ease;
}
.nav-links li a:hover { color: var(--text); background: var(--surface-2); }
.nav-links li a.active { color: var(--accent-2); }

.nav-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-links, .nav-cta a:not(.btn-primary) { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* hero */
.hero {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 70% -10%, var(--accent-soft) 0%, transparent 60%),
        radial-gradient(600px 300px at 10% 30%, rgba(74, 138, 239, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Hero now uses full container width — same as the stats bar below it */
.hero-inner { position: relative; }

.hero h1 {
    margin-bottom: 1.5rem;
    /* No max-width — keeps the slogan on a single line on desktop. */
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
    line-height: 1.15;
}
.hero h1 .accent-grad {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    font-size: 1.15rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90ch;       /* match the stats-bar visual width */
}
.hero .lede strong { color: var(--text); font-weight: 600; }

/* Etymology kicker — dictionary-style header */
.etymology {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-mono);
}
.ety-word { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.ety-phon { font-size: 0.85rem; color: var(--text-2); font-style: italic; }
.ety-sep  { color: var(--text-2); opacity: 0.5; }
.ety-lang { font-size: 0.72rem; color: var(--accent-2); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* Capabilities list — checkmarked rows, vertical, max-width matching stats bar */
.capabilities {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 100ch;
}
.capabilities li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.95rem;
    align-items: start;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-2);
}
.capabilities li strong { color: var(--text); font-weight: 600; }
.capabilities li em {
    font-style: normal;
    color: var(--text-2);
    opacity: 0.78;
    font-size: 0.88rem;
}
.capabilities li code {
    background: var(--surface-2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-2);
}
.cap-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(122, 212, 122, 0.16);
    color: var(--low);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.18rem;
    flex-shrink: 0;
    line-height: 1;
}

.hero .cta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.6rem;
}
.hero .cta-row-centered {
    justify-content: center;
    margin-top: 1.5rem;
}

.hero .install-line {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-2);
    cursor: pointer;
    transition: border-color 0.12s ease;
}
.hero .install-line:hover { border-color: var(--accent); }
.hero .install-line .dollar { color: var(--muted); }

/* ============================================================
   MODAL — generic full-screen overlay used by the live-scan demo
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.78);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modal-fade-in 0.18s ease-out;
}
.modal-overlay[hidden] { display: none; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    width: min(960px, 100%);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    animation: modal-slide-up 0.22s ease-out;
}
@keyframes modal-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 0.95rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.modal-title-row { flex: 1; min-width: 0; }
.modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 65, 85, 0.12);
    color: var(--critical);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}
.modal-tag .dot {
    width: 7px; height: 7px;
    background: var(--critical);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--crit-glow);
    animation: wall-pulse 1.4s infinite;
}
.modal-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}
.modal-close {
    background: transparent;
    border: 0;
    color: var(--text-2);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius);
    transition: color 0.12s, background 0.12s;
    flex-shrink: 0;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-body {
    padding: 1.25rem 1.25rem 1.4rem;
    overflow-y: auto;
}
.modal-meta {
    margin-top: 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-2);
    border-top: 1px dashed var(--border);
    padding-top: 0.9rem;
}
.modal-meta code {
    background: var(--surface-2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-2);
}

/* Asciinema player container */
.asc-player {
    width: 100%;
    background: #0a0a0c;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Player overrides — match dark theme */
.ap-player .ap-control-bar { background: rgba(15,15,18,0.95) !important; }
.ap-player { font-family: var(--font-mono) !important; }

/* sections */
section {
    padding: 5rem 0;
}
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.7rem;
}
.section-head h2 {
    margin-bottom: 0.7rem;
}
.section-head p {
    font-size: 1.08rem;
    max-width: 720px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 3rem;
}

/* cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.7rem 1.8rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-2); }

.card h3 { margin-bottom: 0.6rem; }
.card p  { font-size: 0.94rem; line-height: 1.6; color: var(--text-2); }

.card .icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-2);
    display: grid; place-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* feature grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* stats / counters */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.stat {
    text-align: center;
    padding: 1rem 0.5rem;
}
.stat .num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat .num span.unit { color: var(--accent); font-size: 1.4rem; }
.stat .label {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* code block in hero / demo / docs */
.code-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.code-window-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.code-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--surface-3);
}
.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }
.code-window-title {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-left: 0.7rem;
}
.code-window pre {
    background: transparent;
    border: 0;
    margin: 0;
    border-radius: 0;
    padding: 1.3rem 1.5rem;
}

/* badge / pill */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.7em;
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 500;
}
.pill-accent { background: var(--accent-soft); color: var(--accent-2); }

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    text-align: center;
    margin: 3rem 0;
}
.cta-banner h2 { margin-bottom: 0.7rem; }
.cta-banner p  { font-size: 1.05rem; max-width: 580px; margin: 0 auto 2rem; color: var(--text-2); }

/* footer */
.site-footer {
    padding: 4rem 0 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 6rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
}
.footer-col h5 {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col li a { color: var(--text-2); font-size: 0.92rem; }
.footer-col li a:hover { color: var(--text); }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
}

/* feature list with checkmarks */
.feature-list { list-style: none; }
.feature-list li {
    padding-left: 1.7rem;
    position: relative;
    margin-bottom: 0.65rem;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.55;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* utilities */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

/* tables */
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.tbl th, .tbl td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.tbl th {
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}
.tbl tr:hover td { background: var(--surface-2); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* severity colors for content */
.sev-crit { color: var(--crit); }
.sev-high { color: var(--high); }
.sev-imp  { color: var(--imp); }
.sev-med  { color: var(--med); }
.sev-low  { color: var(--low); }

/* ============================================================
   THREAT WALL — live incident feed
   Fed by /data/incidents.json (CISA KEV + HIBP + MSRC + Mandiant
   + Krebs + DataBreaches.net + BleepingComputer)
   ============================================================ */
.wall-section {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse at top, rgba(74, 138, 239, 0.06), transparent 50%),
    var(--bg);
  position: relative;
}
.wall-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 65, 85, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 65, 85, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.wall-section > .container { position: relative; z-index: 1; }

.wall-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { .wall-head { grid-template-columns: 1fr; } }

.wall-head .left .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--critical);
  margin-bottom: 0.8rem;
}
.wall-head .left .label .dot {
  width: 8px; height: 8px;
  background: var(--critical);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--crit-glow);
  animation: wall-pulse 1.6s infinite;
}
@keyframes wall-pulse {
  0%   { box-shadow: 0 0 0 0 var(--crit-glow); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.wall-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.wall-head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wall-head .left p {
  margin: 0.7rem 0 0;
  color: var(--text-2);
  max-width: 64ch;
}
.wall-head .right {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
}
.wall-head .right strong { color: var(--text); }
.wall-head .right .source-row {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.source-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.source-pill.kev   { background: rgba(255, 65, 85, 0.12);  color: var(--critical); }
.source-pill.hibp  { background: rgba(74, 138, 239, 0.15); color: var(--accent-2); }
.source-pill.bc    { background: rgba(255, 200, 58, 0.12); color: var(--medium); }
.source-pill.msrc  { background: rgba(0, 167, 220, 0.15);  color: #5cc4e5; }
.source-pill.mand  { background: rgba(255, 110, 60, 0.15); color: #ff8c5a; }
.source-pill.krebs { background: rgba(160, 220, 130, 0.13); color: #a3d685; }
.source-pill.db    { background: rgba(220, 100, 200, 0.13); color: #d97ec5; }

.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  min-height: 420px;
}
@media (max-width: 1180px) { .wall-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .wall-grid { grid-template-columns: 1fr; } }

.wall-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: opacity 0.6s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  min-height: 420px;
}
.wall-card.fading-out { opacity: 0; transform: translateY(8px); }
.wall-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(74, 138, 239, 0.3);
}
.wall-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.wall-card.crit::before {
  background: linear-gradient(90deg, var(--critical), transparent);
  box-shadow: 0 0 12px var(--crit-glow);
}
.wall-card.high::before { background: linear-gradient(90deg, var(--high), transparent); }
.wall-card.med::before  { background: linear-gradient(90deg, var(--medium), transparent); }

.wc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}
.wc-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.wc-sev {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.wc-sev .dot { width: 7px; height: 7px; border-radius: 50%; }
.wc-sev.crit { color: var(--critical); }
.wc-sev.high { color: var(--high); }
.wc-sev.med  { color: var(--medium); }
.wc-sev.crit .dot { background: var(--critical); box-shadow: 0 0 8px var(--crit-glow); }
.wc-sev.high .dot { background: var(--high); box-shadow: 0 0 6px var(--high-glow); }
.wc-sev.med  .dot { background: var(--medium); box-shadow: 0 0 6px var(--med-glow); }

.wc-headline { display: flex; flex-direction: column; gap: 0.25rem; }
.wc-metric {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
  word-break: break-word;
}
.wc-subtitle { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); }
.wc-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--text);
}
.wc-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.wc-detail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.65rem;
  background: var(--surface-2);
  border-left: 2px solid var(--border-2);
  border-radius: 3px;
  color: var(--text-2);
  line-height: 1.4;
}
.wall-card.crit .wc-detail { border-left-color: var(--critical); }
.wall-card.high .wc-detail { border-left-color: var(--high); }
.wall-card.med  .wc-detail { border-left-color: var(--medium); }
.wc-bottom {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  gap: 0.5rem;
}
.wc-when { display: flex; flex-direction: column; gap: 0.15rem; color: var(--text-2); line-height: 1.3; }
.wc-when .when-label {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0.75;
}
.wc-when .when-value { color: var(--text); font-weight: 500; }
.wc-link {
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.wall-card:hover .wc-link { color: var(--accent); }
.wall-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
}
.wall-progress {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 1.5rem;
  border-radius: 999px;
  overflow: hidden;
}
.wall-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 0.2s linear;
}

/* ============================================================
   ECONOMIC IMPACT — documented catastrophic cyber losses
   Fed by /data/economic-impact.json (curated, public sources)
   ============================================================ */
.impact-section {
  padding: 6rem 0;
  background: var(--surface);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.impact-headline {
  text-align: center;
  margin-bottom: 4rem;
}
.impact-headline .pill {
  margin-bottom: 1.2rem;
}
.impact-headline h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 auto 1rem;
  max-width: 22ch;
}
.impact-headline h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--critical), var(--high));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.impact-headline .lede {
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 auto;
}
.impact-supertotal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.impact-supertotal .num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--critical), var(--high));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.impact-supertotal .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1180px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .impact-grid { grid-template-columns: 1fr; } }

.impact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem 1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.impact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
.impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.impact-card.tier-cat::before {
  background: linear-gradient(90deg, var(--critical), var(--high));
  box-shadow: 0 0 14px var(--crit-glow);
}
.impact-card.tier-sev::before { background: linear-gradient(90deg, var(--high), var(--medium)); }
.impact-card.tier-sig::before { background: var(--medium); }
.impact-card.tier-note::before { background: var(--accent-2); }

.impact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.impact-amount {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.impact-amount.tier-cat  { color: var(--critical); }
.impact-amount.tier-sev  { color: var(--high); }
.impact-amount.tier-sig  { color: var(--medium); }
.impact-amount.tier-note { color: var(--accent-2); }
.impact-source-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.impact-card:hover .impact-source-pill {
  background: var(--accent-soft);
  color: var(--accent);
}
.impact-company {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.impact-attack {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
}
.impact-context {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.2rem 0 0;
}

.impact-disclaimer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--text-2);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}
.impact-supertotal .ts {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-top: 0.4rem;
}
.impact-supertotal .ts strong { color: var(--text); }

/* ============================================================
   WORLD MAP — geolocated documented incidents
   Fed by /data/world-incidents.json (curated, public sources)
   ============================================================ */
.world-map-section {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}
.world-map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74, 138, 239, 0.06), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255, 65, 85, 0.06), transparent 40%);
  pointer-events: none;
}
.world-map-section > .container { position: relative; z-index: 1; }

.map-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { .map-head { grid-template-columns: 1fr; } }
.map-head .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}
.map-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.map-head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--critical), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.map-head .left p {
  margin: 0.7rem 0 0;
  color: var(--text-2);
  max-width: 64ch;
}
.map-head .right {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
}
.map-head .right strong { color: var(--text); }

.map-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
}

.map-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 580px;
}
.map-sidebar .sb-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.map-sidebar .sb-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.map-sidebar .sb-search {
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}
.map-sidebar .sb-search:focus {
  outline: none;
  border-color: var(--accent);
}
.map-sidebar .sb-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.map-sidebar .sb-list::-webkit-scrollbar { width: 6px; }
.map-sidebar .sb-list::-webkit-scrollbar-track { background: transparent; }
.map-sidebar .sb-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.country-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
}
.country-row:hover { background: var(--surface-2); }
.country-row.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent-2);
}
.country-row .cr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-row .cr-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  margin-left: 0.6rem;
}
.country-row.active .cr-count { color: var(--accent); }
.country-row.hidden { display: none; }

/* ============================================================
   LEAFLET MAP — themed for the dark Obexum landing.
   The map element itself (#world-map) replaces the old custom-zoom
   container. Leaflet handles tile/pane stacking; we just style.
   ============================================================ */
#world-map {
  width: 100%;
  height: 580px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}
@media (max-width: 700px) { #world-map { height: 460px; } }

/* Hide Leaflet's attribution control text — we have a custom credit row */
.leaflet-container { background: var(--bg) !important; outline: none !important; font-family: var(--font-sans) !important; }
.leaflet-bar { border: 0 !important; box-shadow: none !important; }
.leaflet-control-zoom a {
  background: rgba(28,28,34,0.92) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-2) !important;
  border-radius: 6px !important;
  margin-bottom: 4px !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  font-size: 1.1rem !important;
  font-family: var(--font-mono) !important;
  backdrop-filter: blur(6px);
}
.leaflet-control-zoom a:hover { background: var(--surface-3) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.leaflet-control-zoom a.leaflet-disabled { opacity: 0.4 !important; }
.leaflet-control { margin: 14px !important; }

/* Cluster bubbles */
.rl-cluster-wrap { background: transparent !important; border: 0 !important; }
.rl-cluster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  background: var(--critical);
  box-shadow: 0 0 0 4px rgba(255, 65, 85, 0.18), 0 4px 14px rgba(0,0,0,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.rl-cluster:hover { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255, 65, 85, 0.25), 0 6px 18px rgba(0,0,0,0.55); }
.rl-cluster.sm { background: var(--high); box-shadow: 0 0 0 4px rgba(255, 140, 58, 0.18), 0 4px 12px rgba(0,0,0,0.4); }
.rl-cluster.md { background: var(--critical); }
.rl-cluster.lg { background: #d63045; box-shadow: 0 0 0 5px rgba(214, 48, 69, 0.22), 0 4px 14px rgba(0,0,0,0.5); }
.rl-cluster.xl {
  background: linear-gradient(135deg, #c9223a, #ff4155);
  box-shadow: 0 0 0 6px rgba(201, 34, 58, 0.25), 0 6px 18px rgba(0,0,0,0.55);
  font-size: 0.85rem;
}

/* Single marker (pulse) */
.rl-marker {
  filter: drop-shadow(0 0 4px rgba(255, 65, 85, 0.5));
}
.rl-marker:hover { filter: drop-shadow(0 0 8px rgba(255, 65, 85, 0.85)); }

/* Hover tooltip (lightweight) */
.leaflet-tooltip.rl-hover {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  font-weight: 500;
}
.leaflet-tooltip.rl-hover::before { display: none; }
.leaflet-tooltip.rl-hover.leaflet-tooltip-top::after,
.leaflet-tooltip.rl-hover.leaflet-tooltip-top { transform: translateY(-2px); }

/* Click popup (rich) */
.leaflet-popup.rl-pop-wrap .leaflet-popup-content-wrapper {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  overflow: hidden;
}
.leaflet-popup.rl-pop-wrap .leaflet-popup-content {
  margin: 0;
  width: 320px !important;
  padding: 1rem 1.1rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.45;
}
.leaflet-popup.rl-pop-wrap .leaflet-popup-tip {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  box-shadow: none;
}
.leaflet-popup.rl-pop-wrap .leaflet-popup-close-button {
  color: var(--text-2) !important;
  font-size: 1.2rem !important;
  padding: 0.4rem 0.6rem 0 0 !important;
  font-weight: 400 !important;
}
.leaflet-popup.rl-pop-wrap .leaflet-popup-close-button:hover { color: var(--accent) !important; }

.rl-pop-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.rl-pop-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 65, 85, 0.12);
  color: var(--critical);
}
.rl-pop-when {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
}
.rl-pop-name { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.rl-pop-loc { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-2); margin-bottom: 0.65rem; }
.rl-pop-attack {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.32rem 0.55rem;
  background: var(--bg);
  border-left: 2px solid var(--critical);
  border-radius: 3px;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.rl-pop-attack strong { color: var(--critical); }
.rl-pop-sector {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-2);
  margin-bottom: 0.55rem;
}
.rl-pop-desc { font-size: 0.82rem; line-height: 1.45; color: var(--text-2); margin: 0 0 0.7rem; }
.rl-pop-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  text-decoration: none;
}
.rl-pop-link:hover { color: var(--accent); }

/* Keyboard accessibility */
.leaflet-container:focus, .leaflet-container:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 4px; }

/* Old fade-out on filter no longer needed (cluster handles add/remove) */
.map-marker.is-filtered-out { display: none !important; }
.map-base {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.map-markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-marker {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--bg);
  transition: transform 0.18s, box-shadow 0.18s;
  padding: 0;
  margin: 0;
}
.map-marker::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  animation: marker-pulse 2.4s infinite;
}
.map-marker.t-ransomware    { background: var(--critical); color: var(--critical); }
.map-marker.t-wiper         { background: #ff6e3c;        color: #ff6e3c; }
.map-marker.t-breach        { background: var(--high);    color: var(--high); }
.map-marker.t-supply-chain  { background: var(--accent-2); color: var(--accent-2); }
.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.4);
  z-index: 5;
}
.map-marker.is-active {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px currentColor;
  z-index: 6;
}
@keyframes marker-pulse {
  0%   { box-shadow: 0 0 0 0  currentColor; opacity: 0.8; }
  70%  { box-shadow: 0 0 0 14px transparent; opacity: 0; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 0; }
}

.map-tooltip {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.9rem;
  width: 320px;
  max-width: calc(100vw - 3rem);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  transition: opacity 0.15s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}
.map-tooltip.visible { opacity: 1; pointer-events: auto; }
.map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--surface-2);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.mt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.mt-type {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.mt-type.t-ransomware { color: var(--critical); background: rgba(255,65,85,0.12); }
.mt-type.t-wiper      { color: #ff6e3c;        background: rgba(255,110,60,0.15); }
.mt-type.t-breach     { color: var(--high);    background: rgba(255,140,58,0.12); }
.mt-type.t-supply-chain { color: var(--accent-2); background: rgba(74,138,239,0.15); }
.mt-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
}
.mt-company {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--text);
  line-height: 1.25;
}
.mt-loc {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  margin-bottom: 0.7rem;
}
.mt-attack {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.32rem 0.55rem;
  background: var(--bg);
  border-left: 2px solid var(--high);
  border-radius: 3px;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.mt-impact {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--critical);
  margin-bottom: 0.6rem;
}
.mt-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0 0 0.7rem;
}
.mt-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: right;
}
.mt-source a { color: var(--accent-2); text-decoration: none; }
.mt-source a:hover { color: var(--accent); }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
}
.map-legend .swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.map-legend .swatch::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
}
.map-legend .swatch.t-ransomware::before   { background: var(--critical); box-shadow: 0 0 8px rgba(255,65,85,0.4); }
.map-legend .swatch.t-wiper::before        { background: #ff6e3c; }
.map-legend .swatch.t-breach::before       { background: var(--high); }
.map-legend .swatch.t-supply-chain::before { background: var(--accent-2); }

.map-credit {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  opacity: 0.7;
}
.map-credit a { color: var(--text-2); }

/* ============================================================
   BREAKING-NEWS TICKER — last 5 ransomware victims (live feed)
   ============================================================ */
.breaking-section {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.breaking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.breaking-head .left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.breaking-head .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 65, 85, 0.12);
  color: var(--critical);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.breaking-head .live-pill::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--critical);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--crit-glow);
  animation: wall-pulse 1.4s infinite;
}
.breaking-head .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  font-weight: 600;
}
.breaking-head .right { color: var(--text-2); }
.breaking-head .right strong { color: var(--text); }

.breaking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1180px) { .breaking-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .breaking-list { grid-template-columns: 1fr; } }

.breaking-item {
  padding: 1rem 1.1rem 1.1rem;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: background 0.15s;
  min-height: 180px;
}
.breaking-item:last-child { border-right: 0; }
@media (max-width: 1180px) { .breaking-item { border-right: 0; border-bottom: 1px solid var(--border); } }
.breaking-item:hover { background: var(--surface-2); }
.breaking-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--critical), transparent);
}
.bi-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
}
.bi-top .country-flag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  background: var(--surface-3);
  border-radius: 3px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.bi-when { color: var(--text-2); }
.bi-company {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--text);
}
.bi-group {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--critical);
  font-weight: 600;
}
.bi-sector {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
}
.bi-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.bi-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-2);
}
.breaking-item:hover .bi-link { color: var(--accent); }

.breaking-foot {
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  text-align: center;
}
.breaking-foot a { color: var(--text-2); }
