
        :root {
            color-scheme: light;
            --bg: #f5f6fa;
            --surface: #ffffff;
            --surface-2: #eff1f6;
            --text: #121722;
            --text-muted: #566074;
            --border: #e2e5ec;
            --accent: #2457f5;
            --accent-2: #7c3aed;
            --accent-soft: #e9efff;
            --ai-bg: #f3f0ff;
            --ai-border: #ddd3ff;
            --ai-text: #3b2a86;
            --glow: radial-gradient(60% 60% at 20% 0%, rgba(36, 87, 245, 0.14), transparent 70%),
                    radial-gradient(50% 50% at 90% 10%, rgba(124, 58, 237, 0.12), transparent 70%);
            --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 6px rgba(16, 24, 40, 0.06);
            --shadow-hover: 0 12px 32px rgba(16, 24, 40, 0.14);
            --radius: 16px;
            --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
            --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        }

        :root[data-theme="dark"] {
            color-scheme: dark;
            --bg: #0b0f17;
            --surface: #131925;
            --surface-2: #1a2130;
            --text: #e9edf5;
            --text-muted: #98a3b6;
            --border: #232c3c;
            --accent: #7396ff;
            --accent-2: #a78bfa;
            --accent-soft: #1a2748;
            --ai-bg: #1b1838;
            --ai-border: #2f2a5e;
            --ai-text: #cfc5ff;
            --glow: radial-gradient(60% 60% at 20% 0%, rgba(80, 120, 255, 0.20), transparent 70%),
                    radial-gradient(50% 50% at 90% 10%, rgba(140, 100, 255, 0.16), transparent 70%);
            --shadow: none;
            --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.55);
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            font-family: var(--sans);
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        a { color: inherit; }
        a:focus-visible, button:focus-visible, input:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 3px;
            border-radius: 8px;
        }

        .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

        /* ---------- Masthead ---------- */
        .masthead {
            background: color-mix(in srgb, var(--surface) 86%, transparent);
            backdrop-filter: saturate(180%) blur(12px);
            -webkit-backdrop-filter: saturate(180%) blur(12px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 20;
        }

        .masthead-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            height: 68px;
        }

        .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

        .brand-mark {
            width: 38px; height: 38px;
            border-radius: 11px;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: #fff;
            display: grid; place-items: center;
            font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
            box-shadow: 0 4px 12px rgba(36, 87, 245, 0.35);
        }

        img.brand-mark { display: block; background: none; box-shadow: 0 4px 12px rgba(36, 87, 245, 0.35); }

        .brand-name {
            font-family: var(--serif);
            font-weight: 700; font-size: 1.35rem;
            letter-spacing: -0.01em; line-height: 1.1;
        }

        .brand-tagline {
            display: block;
            font-family: var(--sans);
            font-weight: 600; font-size: 0.72rem;
            letter-spacing: 0.1em; text-transform: uppercase;
            color: var(--text-muted);
        }

        .nav { display: flex; align-items: center; gap: 8px; }

        .nav a {
            text-decoration: none;
            font-weight: 600; font-size: 0.92rem;
            padding: 8px 14px;
            border-radius: 999px;
            color: var(--text-muted);
            transition: background 0.15s ease, color 0.15s ease;
        }

        .nav a:hover, .nav a.active { background: var(--surface-2); color: var(--text); }

        .nav a.rss {
            background: var(--accent-soft);
            color: var(--accent);
            display: inline-flex; align-items: center; gap: 6px;
        }

        .nav a.rss:hover { background: var(--accent); color: #fff; }

        .theme-toggle {
            width: 40px; height: 40px;
            display: grid; place-items: center;
            border-radius: 50%;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            cursor: pointer;
            transition: border-color 0.15s ease, transform 0.15s ease;
        }

        .theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
        .theme-toggle .moon { display: none; }
        :root[data-theme="dark"] .theme-toggle .sun { display: none; }
        :root[data-theme="dark"] .theme-toggle .moon { display: block; }

        /* ---------- Hero ---------- */
        .hero { background: var(--glow); border-bottom: 1px solid var(--border); }
        .hero-inner { padding-top: 56px; padding-bottom: 48px; }
        @media (min-width: 960px) {
            .hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
            .hero-inner .stats { margin-top: 0; justify-content: flex-end; }
        }

        .live {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 0.78rem; font-weight: 700;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-muted);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 6px 14px;
            margin-bottom: 22px;
        }

        .live .dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
            70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }

        .hero h1 {
            font-family: var(--serif);
            font-weight: 700;
            font-size: clamp(2.3rem, 5.6vw, 4rem);
            letter-spacing: -0.025em;
            line-height: 1.04;
            margin: 0 0 16px;
            max-width: 16ch;
        }

        .hero h1 em {
            font-style: normal;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            -webkit-background-clip: text; background-clip: text;
            color: transparent;
        }

        .hero p.lede { margin: 0; color: var(--text-muted); font-size: 1.12rem; max-width: 58ch; }

        .stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

        .stat {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 14px 20px;
            min-width: 140px;
            box-shadow: var(--shadow);
        }

        .stat b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
        .stat span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }

        /* ---------- Tags ---------- */
        .tag {
            display: inline-block;
            font-size: 0.7rem; font-weight: 700;
            letter-spacing: 0.06em; text-transform: uppercase;
            padding: 3px 10px;
            border-radius: 999px;
            background: var(--accent-soft); color: var(--accent);
        }

        .tag-llms     { background: #ede7ff; color: #5b34d6; }
        .tag-research { background: #dff5ee; color: #0b7a5a; }
        .tag-industry { background: #e1ecff; color: #1d4fd8; }
        .tag-policy   { background: #ffeed9; color: #b45309; }
        .tag-tools    { background: #fde4f1; color: #be1f78; }
        .tag-other    { background: var(--surface-2); color: var(--text-muted); }

        :root[data-theme="dark"] .tag-llms     { background: #2a2150; color: #b9a4ff; }
        :root[data-theme="dark"] .tag-research { background: #11322a; color: #5fd6ae; }
        :root[data-theme="dark"] .tag-industry { background: #172a52; color: #8db0ff; }
        :root[data-theme="dark"] .tag-policy   { background: #3a2a12; color: #ffc27a; }
        :root[data-theme="dark"] .tag-tools    { background: #3a1830; color: #ff9bd0; }

        /* ---------- Source line ---------- */
        .byline { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text-muted); min-width: 0; }

        .avatar {
            flex: none;
            width: 28px; height: 28px;
            border-radius: 50%;
            display: grid; place-items: center;
            font-size: 0.78rem; font-weight: 700; color: #fff;
            background: hsl(var(--hue), 60%, 48%);
        }

        .byline .source { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .byline .sep { opacity: 0.45; }
        .byline time { white-space: nowrap; }

        /* ---------- AI summary callout ---------- */
        .ai-summary {
            background: var(--ai-bg);
            border: 1px solid var(--ai-border);
            border-radius: 12px;
            padding: 12px 14px;
            color: var(--text);
        }

        .ai-label {
            display: flex; align-items: center; gap: 6px;
            font-size: 0.68rem; font-weight: 700;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--ai-text);
            margin-bottom: 4px;
        }

        .ai-label .model { margin-left: auto; font-weight: 600; letter-spacing: 0.02em; text-transform: none; opacity: 0.85; }
        .ai-summary p { margin: 0; font-size: 0.97rem; }

        .pending-box {
            border: 1px dashed var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            color: var(--text-muted);
            font-size: 0.92rem;
        }

        .pending {
            display: inline-block;
            font-size: 0.72rem; font-weight: 700;
            letter-spacing: 0.04em;
            background: var(--surface-2);
            border-radius: 999px;
            padding: 2px 10px;
            margin-right: 6px;
        }

        /* ---------- Featured ---------- */
        main { padding-top: 40px; }

        .featured {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 22px;
            box-shadow: var(--shadow);
            padding: clamp(24px, 4vw, 44px);
            margin-bottom: 44px;
            position: relative;
            overflow: hidden;
            display: grid;
            gap: 28px;
        }

        .featured::before {
            content: "";
            position: absolute; inset: 0 0 auto 0; height: 5px;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
        }

        @media (min-width: 900px) { .featured { grid-template-columns: 1.5fr 1fr; align-items: center; } }

        .eyebrow {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 14px;
            font-size: 0.76rem; font-weight: 700;
            letter-spacing: 0.12em; text-transform: uppercase;
            color: var(--accent);
        }

        .featured h2 {
            font-family: var(--serif);
            font-weight: 700;
            font-size: clamp(1.6rem, 3vw, 2.3rem);
            line-height: 1.15; letter-spacing: -0.018em;
            margin: 0 0 18px;
            display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
        }

        .featured h2 a { text-decoration: none; }
        .featured h2 a:hover { color: var(--accent); }
        .featured .ai-summary { padding: 18px 20px; }
        .featured .ai-summary p { font-size: 1.1rem; line-height: 1.6; }

        .read-more {
            display: inline-flex; align-items: center; gap: 6px;
            font-weight: 600; font-size: 0.9rem;
            color: var(--accent); text-decoration: none;
        }

        .read-more:hover { text-decoration: underline; }

        .featured .read-more {
            margin-top: 18px;
            padding: 10px 18px;
            border-radius: 999px;
            background: var(--accent); color: #fff;
        }

        .featured .read-more:hover { text-decoration: none; filter: brightness(1.1); }

        /* ---------- Toolbar ---------- */
        .toolbar {
            display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
            gap: 14px; margin-bottom: 22px;
        }

        .toolbar h2 { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.01em; margin: 0; }

        .filters { display: flex; flex-wrap: wrap; gap: 8px; }

        .chip {
            font: 600 0.82rem var(--sans);
            padding: 7px 14px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .chip:hover { border-color: var(--accent); color: var(--text); }
        .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

        .search {
            flex: 1 1 220px; max-width: 320px;
            font: 500 0.9rem var(--sans);
            padding: 9px 16px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
        }

        .search::placeholder { color: var(--text-muted); }

        /* ---------- Grid ---------- */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
            gap: 24px;
            padding-bottom: 28px;
        }

        .card {
            display: flex; flex-direction: column; gap: 14px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 22px;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .card, .featured > div { min-width: 0; }
        .card h3, .featured h2 { overflow-wrap: anywhere; }

        .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
        .card[hidden] { display: none; }

        .card h3 {
            font-family: var(--serif);
            font-weight: 600; font-size: 1.22rem; line-height: 1.28;
            margin: 0;
            display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
        }

        .card h3 a { text-decoration: none; }
        .card h3 a:hover { color: var(--accent); }
        .card .ai-summary, .card .pending-box { flex-grow: 1; }

        .card-foot {
            display: flex; align-items: center; justify-content: space-between; gap: 10px;
            padding-top: 14px;
            border-top: 1px solid var(--border);
        }

        .no-results { text-align: center; color: var(--text-muted); padding: 40px 0 56px; }

        /* ---------- How it works ---------- */
        .how { padding: 28px 0 64px; }
        .how h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -0.01em; }
        .how > p { color: var(--text-muted); margin: 0 0 22px; }
        .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

        .step {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 22px;
        }

        .step .num {
            width: 34px; height: 34px; border-radius: 10px;
            display: grid; place-items: center;
            font-weight: 700; color: #fff;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            margin-bottom: 12px;
        }

        .step h3 { margin: 0 0 4px; font-size: 1.05rem; }
        .step p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

        /* ---------- Empty ---------- */
        .empty {
            text-align: center;
            background: var(--surface);
            border: 1px dashed var(--border);
            border-radius: var(--radius);
            padding: 72px 24px; margin-bottom: 56px;
        }

        .empty .icon { font-size: 2.5rem; margin-bottom: 8px; }
        .empty h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 8px; }
        .empty p { color: var(--text-muted); margin: 0 auto 8px; max-width: 52ch; }

        .btn {
            display: inline-block; margin-top: 14px;
            padding: 10px 22px; border: 0; border-radius: 999px;
            background: var(--accent); color: #fff;
            font: 600 0.92rem var(--sans); cursor: pointer;
        }


        /* ---------- Filters (links) & search ---------- */
        a.chip { text-decoration: none; display: inline-block; }
        .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
        .search-form { display: flex; flex: 1 1 240px; max-width: 360px; gap: 8px; }
        .search-form .search { flex: 1; max-width: none; }
        .search-form button {
            font: 600 0.85rem var(--sans); padding: 9px 16px; border-radius: 999px;
            border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
        }
        .result-note { color: var(--text-muted); margin: -8px 0 22px; font-size: 0.92rem; }
        .result-note a { color: var(--accent); font-weight: 600; text-decoration: none; }

        /* ---------- Runs page ---------- */
        .page-title { padding: 44px 0 8px; }
        .page-title h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 8px; }
        .page-title p { color: var(--text-muted); margin: 0; max-width: 64ch; }
        .table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 26px 0 56px; box-shadow: var(--shadow); }
        table.runs { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
        table.runs th, table.runs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
        table.runs th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-2); }
        table.runs tr:last-child td { border-bottom: 0; }
        table.runs td.err { white-space: normal; color: var(--text-muted); max-width: 360px; }
        .badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
        .badge-success { background: #dcf5e6; color: #11793c; }
        .badge-partial { background: #fff0d4; color: #a55b00; }
        .badge-failed  { background: #ffe0e0; color: #b42318; }
        :root[data-theme="dark"] .badge-success { background: #11301f; color: #62d58f; }
        :root[data-theme="dark"] .badge-partial { background: #382a0e; color: #ffc65c; }
        :root[data-theme="dark"] .badge-failed  { background: #3a1616; color: #ff8f8f; }


        /* ---------- Animated hero background ---------- */
        .hero { position: relative; overflow: hidden; isolation: isolate; }
        .hero-inner { position: relative; z-index: 2; }
        .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

        .aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: 0; pointer-events: none; will-change: transform; }
        .aurora.a1 { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; left: -8%; top: -30%;
                     background: radial-gradient(circle, var(--accent), transparent 68%); animation: drift1 18s ease-in-out infinite alternate; }
        .aurora.a2 { width: 40vw; height: 40vw; max-width: 500px; max-height: 500px; right: -6%; top: -20%;
                     background: radial-gradient(circle, var(--accent-2), transparent 68%); animation: drift2 22s ease-in-out infinite alternate; }
        .aurora.a3 { width: 32vw; height: 32vw; max-width: 420px; max-height: 420px; left: 38%; bottom: -45%;
                     background: radial-gradient(circle, #22d3ee, transparent 68%); opacity: 0.35; animation: drift3 26s ease-in-out infinite alternate; }
        :root:not([data-theme="dark"]) .aurora { opacity: 0.30; }

        @keyframes drift1 { to { transform: translate(14vw, 8vh) scale(1.2); } }
        @keyframes drift2 { to { transform: translate(-12vw, 12vh) scale(1.15); } }
        @keyframes drift3 { to { transform: translate(-16vw, -6vh) scale(1.25); } }

        .rotator { display: inline-block; }
        .rotator::after { content: "|"; margin-left: 2px; color: var(--accent); -webkit-text-fill-color: var(--accent); animation: blink 1s steps(1) infinite; }
        @keyframes blink { 50% { opacity: 0; } }

        /* ---------- Scroll reveal + 3D tilt ---------- */
        .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
        .js .reveal.in { opacity: 1; transform: none; }

        .tilt { transform-style: preserve-3d; will-change: transform; }
        .js .tilt.in { transition: transform 0.18s ease-out, box-shadow 0.2s ease, border-color 0.2s ease; }
        .tilt.in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
        .card .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
                       background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.14), transparent 60%);
                       transition: opacity 0.2s ease; }
        .card { position: relative; }
        .card:hover .glare { opacity: 1; }

        .stat b { font-variant-numeric: tabular-nums; }
        .stat { transition: transform 0.2s ease, border-color 0.2s ease; }
        .stat:hover { transform: translateY(-3px); border-color: var(--accent); }

        .brand-mark { animation: floaty 5s ease-in-out infinite; }
        @keyframes floaty { 50% { transform: translateY(-3px) rotate(-4deg); } }


        /* ======================= V2 DESIGN ======================= */
        .progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50;
                    background: linear-gradient(90deg, var(--accent), var(--accent-2), #22d3ee); }

        /* ---------- Live ticker ---------- */
        .ticker { position: relative; z-index: 2; display: flex; align-items: stretch; overflow: hidden;
                  background: var(--text); color: var(--bg); font-size: 0.82rem; font-weight: 600; }
        .ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 16px;
                        background: #e11d48; color: #fff; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; font-weight: 800; }
        .ticker-label i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse2 1.4s infinite; }
        @keyframes pulse2 { 50% { opacity: 0.25; } }
        .ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
        .ticker-track { display: inline-flex; white-space: nowrap; gap: 44px; padding: 9px 0; animation: marquee 70s linear infinite; }
        .ticker:hover .ticker-track { animation-play-state: paused; }
        .ticker-track a { text-decoration: none; opacity: 0.92; }
        .ticker-track a:hover { text-decoration: underline; opacity: 1; }
        .ticker-track a::before { content: "\25C6"; color: #fb7185; margin-right: 14px; font-size: 0.6rem; vertical-align: middle; }
        @keyframes marquee { to { transform: translateX(-50%); } }

        /* ---------- Hero v2 ---------- */
        .hero-inner { padding-top: 64px; padding-bottom: 64px; }
        .hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 14ch; line-height: 1.0; }
        .hero h1 em { background-size: 200% auto; animation: shine 6s linear infinite;
                      background-image: linear-gradient(90deg, var(--accent), var(--accent-2), #22d3ee, var(--accent)); }
        @keyframes shine { to { background-position: 200% center; } }
        .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
        .btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
                                   font: 700 0.95rem var(--sans); padding: 13px 24px; border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
        .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4); }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55); }
        .btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
        .btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

        /* ---------- Section headings ---------- */
        .section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
        .section-head h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; margin: 0; }
        .section-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.95rem; }

        /* ---------- Topic tiles ---------- */
        .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 44px; }
        .tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; text-decoration: none;
                padding: 18px; border-radius: var(--radius); color: #fff; min-height: 118px;
                background: linear-gradient(135deg, hsl(var(--h) 78% 52%), hsl(calc(var(--h) + 38) 80% 42%));
                box-shadow: 0 6px 18px hsl(var(--h) 70% 40% / 0.28); transition: transform 0.2s ease, box-shadow 0.2s ease; }
        .tile:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 14px 30px hsl(var(--h) 70% 40% / 0.4); }
        .tile::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,0.14); }
        .tile-emoji { font-size: 1.7rem; line-height: 1; margin-bottom: 8px; }
        .tile b { font-size: 1.02rem; }
        .tile span.n { font-size: 0.8rem; opacity: 0.9; font-weight: 600; }

        /* ---------- Generated cover art ---------- */
        .cover { position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff;
                 background: linear-gradient(135deg, hsl(var(--h) 78% 56%), hsl(calc(var(--h) + 42) 80% 40%)); }
        .cover::before { content: ""; position: absolute; inset: 0; opacity: 0.35;
                         background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1.4px); background-size: 16px 16px; }
        .cover::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%;
                        background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 65%); }
        .cover-emoji { position: absolute; left: 20px; bottom: 14px; font-size: 2.6rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); transition: transform 0.3s ease; z-index: 1; }
        .cover:hover .cover-emoji, .tilt:hover .cover-emoji { transform: scale(1.18) rotate(-6deg); }
        .cover-source { position: absolute; right: 14px; top: 12px; z-index: 1; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
                        background: rgba(0,0,0,0.28); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 999px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .cover-sm { height: 92px; }
        .cover-md { height: 120px; }
        .cover-lg { height: 100%; min-height: 220px; }
        .cover-lg .cover-emoji { font-size: clamp(3.4rem, 7vw, 5.2rem); left: 28px; top: 22px; bottom: auto; }
        .cover-lg .cover-source { font-size: 0.78rem; padding: 5px 14px; top: 18px; right: 18px; }
        .cover-lg::after { width: 90%; top: -45%; }

        /* ---------- Bento top stories ---------- */
        .bento { display: grid; gap: 22px; margin-bottom: 52px; grid-template-columns: 1fr; }
        @media (min-width: 960px) { .bento { grid-template-columns: 1.55fr 1fr; } .b-main { grid-row: span 2; } }
        .b-main, .b-side { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
                           border-radius: 22px; box-shadow: var(--shadow); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
        .b-main:hover, .b-side:hover { box-shadow: var(--shadow-hover); border-color: var(--accent); }
        .b-main .cover-lg { flex: 1 1 230px; }
        .b-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
        .b-main h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.15; letter-spacing: -0.018em; margin: 0;
                     display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
        .b-side h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0;
                     display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
        .b-main h2 a, .b-side h3 a { text-decoration: none; }
        .b-main h2 a:hover, .b-side h3 a:hover { color: var(--accent); }
        .top-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
        .row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

        /* ---------- Cards v2 ---------- */
        .card { padding: 0; overflow: hidden; gap: 0; }
        .card .card-body { padding: 18px 20px 4px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
        .card .card-foot { margin: 8px 20px 0; padding: 12px 0 16px; }

        /* ---------- Sticky filter bar ---------- */
        .toolbar { position: sticky; top: 68px; z-index: 15; padding: 12px 0; margin-bottom: 18px;
                   background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

        /* ---------- Back to top ---------- */
        .to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; z-index: 30;
                  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 1.2rem; box-shadow: 0 8px 22px rgba(79,70,229,0.45);
                  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
        .to-top.show { opacity: 1; transform: none; pointer-events: auto; }

        @media (max-width: 560px) {
            .ticker-label span { display: none; }
            .toolbar { position: static; }
            .tiles { grid-template-columns: repeat(2, 1fr); }
        }
        /* ---------- Small phones (<= 380px) and steps grid ---------- */
        .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
        @media (max-width: 380px) {
            .masthead-inner { height: 64px; gap: 8px; }
            .brand { gap: 8px; min-width: 0; }
            .brand-mark { width: 34px; height: 34px; font-size: 1.2rem; }
            .brand-name { font-size: 1.05rem; }
            .nav { gap: 6px; }
            .nav a.rss { padding: 8px 12px; }
            .theme-toggle { width: 36px; height: 36px; }
            .hero h1 { font-size: 2.4rem; }
            .btn-primary, .btn-ghost { padding: 12px 20px; }
            .toolbar h2 { font-size: 1.35rem; }
        }
        @media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .progress { display: none; } }


        /* ======================= V4 ======================= */
        :root { --seq: #2a78d6; }
        :root[data-theme="dark"] { --seq: #3987e5; }

        /* ---------- Cover variety ---------- */
        .cover.pat-1::before { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.20) 0 2px, transparent 2px 14px); opacity: 0.55; }
        .cover.pat-2::before { background-image: radial-gradient(circle at 20% 120%, transparent 38%, rgba(255,255,255,0.28) 39%, transparent 41%),
                                                 radial-gradient(circle at 20% 120%, transparent 58%, rgba(255,255,255,0.22) 59%, transparent 61%),
                                                 radial-gradient(circle at 20% 120%, transparent 78%, rgba(255,255,255,0.18) 79%, transparent 81%);
                                background-size: 100% 100%; opacity: 0.9; }
        .cover-word { position: absolute; right: 18px; bottom: 6px; z-index: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 8vw, 6.5rem);
                      line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: rgba(255,255,255,0.20); white-space: nowrap; }

        /* ---------- Insights (charts) ---------- */
        .insights { display: grid; gap: 22px; grid-template-columns: 1fr; margin: 44px 0 8px; }
        @media (min-width: 860px) { .insights { grid-template-columns: 1fr 1fr; } }
        .chart-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 18px; box-shadow: var(--shadow); }
        .chart-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 2px; }
        .chart-card figcaption p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.86rem; }
        .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
        .bar-row { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; align-items: center; gap: 12px; text-decoration: none; color: var(--text);
                   padding: 5px 6px; margin: 0 -6px; border-radius: 8px; transition: background 0.15s ease; }
        .bar-row:hover, .bar-row:focus-visible { background: var(--surface-2); }
        .bar-label { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .bar-track { position: relative; height: 14px; }
        .bar-fill { display: block; height: 14px; width: 0; background: var(--seq); border-radius: 0 4px 4px 0; transition: width 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--bd, 0ms); }
        .in .bar-fill, .no-js-bars .bar-fill { width: var(--w); }
        .bar-value { position: absolute; top: 50%; left: calc(var(--w) + 8px); transform: translateY(-50%); font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
        .table-view { margin-top: 12px; font-size: 0.84rem; color: var(--text-muted); }
        .table-view summary { cursor: pointer; font-weight: 600; width: max-content; }
        .table-view table { width: 100%; margin-top: 8px; border-collapse: collapse; }
        .table-view th, .table-view td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--border); }
        .chart-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 10px; font-size: 0.8rem;
                     box-shadow: 0 8px 24px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.12s ease; max-width: 240px; }
        .chart-tip.show { opacity: 1; }
        .chart-tip b { font-size: 1rem; margin-right: 6px; }

        /* ---------- Pagination ---------- */
        .pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 56px; }
        .pager a, .pager span.cur { font: 600 0.9rem var(--sans); text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
        .pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
        .pager a.next { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(79,70,229,0.35); }
        .pager span.cur { color: var(--text-muted); background: transparent; }
        kbd { font: 600 0.7rem var(--sans); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); }

        /* ---------- Feed page ---------- */
        .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .subscribe { margin-top: 22px; max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
        .subscribe label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
        .subscribe-row { display: flex; gap: 10px; flex-wrap: wrap; }
        .subscribe-row input { flex: 1 1 240px; min-width: 0; font: 500 0.92rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
        .subscribe-row button { border: 0; cursor: pointer; }
        .raw-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
        .raw-link:hover { text-decoration: underline; }
        /* ---------- Error pages ---------- */
        .error-page { text-align: center; padding: 84px 0 110px; }
        .error-code { font-family: var(--serif); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-size: clamp(6rem, 22vw, 11rem);
                      background: linear-gradient(135deg, var(--accent), var(--accent-2), #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .error-page h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 10px; letter-spacing: -0.02em; }
        .error-page p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 8px; }
        /* ---------- Footer ---------- */
        .site-footer {
            border-top: 1px solid var(--border);
            background: var(--surface);
            padding: 28px 0;
            color: var(--text-muted); font-size: 0.88rem;
        }

        .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
        .wordmark { height: 28px; width: auto; }
        .wordmark-dark { display: none; }
        :root[data-theme="dark"] .wordmark-light { display: none; }
        :root[data-theme="dark"] .wordmark-dark { display: inline-block; }
        .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
        .footer-inner a { color: var(--accent); text-decoration: none; font-weight: 600; }
        .footer-inner a:hover { text-decoration: underline; }

        @media (max-width: 560px) {
            .container { padding: 0 16px; }
            .brand-tagline { display: none; }
            /* Keep Home and Runs reachable on phones: compact the nav and drop the wordmark
               (the logo mark still links home) so everything fits on one row. */
            .brand-name { display: none; }
            .nav { gap: 4px; }
            .nav a { padding: 8px 10px; font-size: 0.88rem; }
            .grid { grid-template-columns: minmax(0, 1fr); }
            .hero-inner { padding-top: 36px; padding-bottom: 28px; }
            .stat { flex: 1 1 40%; min-width: 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
            .js .reveal { opacity: 1; transform: none; }
            .aurora { display: none; }
        }
