        :root {
            --cream: #FAFAF7;
            --saffron: #FF6B35;
            --japan-red: #C0392B;
            --navy: #1a1a2e;
            --black: #000000;
        }

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

        body {
            font-family: 'Space Grotesk', sans-serif;
            background-color: var(--cream);
            color: var(--navy);
            /* Dotted background pattern */
            background-image: radial-gradient(#e5e7eb 2px, transparent 2px);
            background-size: 24px 24px;
            min-height: 100vh;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        header {
            width: 100%;
            max-width: 1000px;
            margin-bottom: 2rem;
            border: 4px solid var(--black);
            background-color: #fff;
            padding: 1.5rem;
            box-shadow: 8px 8px 0 0 var(--black);
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .header-accent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 8px;
            background: linear-gradient(to right, var(--saffron) 50%, var(--japan-red) 50%);
        }

        .logo-img {
            width: 100%;
            max-width: 300px;
            height: auto;
            object-fit: contain;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            text-transform: lowercase;
            letter-spacing: -1px;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.2; }
        }

        h1 span.dot {
            display: inline-block;
            width: 16px;
            height: 16px;
            background-color: var(--japan-red);
            border-radius: 50%;
            border: 2px solid var(--black);
            animation: blink 1.5s infinite ease-in-out;
        }

        .header-links {
            font-family: 'Space Mono', monospace;
            font-size: 0.8rem;
            margin-top: 0.5rem;
            color: var(--navy);
            line-height: 1.5;
        }

        .header-links a {
            color: var(--japan-red);
            text-decoration: none;
            font-weight: 700;
        }

        .header-links a:hover {
            text-decoration: underline;
        }

        .subtitle {
            font-family: 'Space Mono', monospace;
            font-size: 0.9rem;
            color: var(--navy);
            max-width: 600px;
            line-height: 1.4;
            margin: 0 auto;
        }

        .mobile-break { display: none; }
        .desktop-space { display: inline; }

        .network-section {
            width: 100%;
            max-width: 1000px;
            margin-bottom: 2rem;
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
        }

        .network-section::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }

        .network-card {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1.25rem;
            background-color: #fff;
            border: 2px solid var(--black);
            box-shadow: 4px 4px 0 0 var(--black);
            text-decoration: none;
            color: var(--navy);
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.1s ease;
        }

        .network-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 0 var(--black);
        }

        .network-card:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0 0 var(--black);
        }

        .network-img {
            width: auto;
            height: 44px;
            max-width: 160px;
            object-fit: contain;
            object-position: center;
        }

        .filters {
            width: 100%;
            max-width: 1000px;
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            font-size: 0.9rem;
            padding: 0.5rem 1.5rem;
            background-color: #fff;
            border: 2px solid var(--black);
            color: var(--navy);
            cursor: pointer;
            box-shadow: 4px 4px 0 0 var(--black);
            transition: all 0.1s ease;
            text-transform: uppercase;
        }

        .filter-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 0 var(--black);
        }

        .filter-btn:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0 0 var(--black);
        }

        .filter-btn.active {
            background-color: var(--navy);
            color: var(--cream);
            box-shadow: 2px 2px 0 0 var(--black);
            transform: translate(2px, 2px);
        }

        .news-grid {
            width: 100%;
            max-width: 1000px;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .news-card {
            background-color: #fff;
            border: 2px solid var(--black);
            box-shadow: 3px 3px 0 0 var(--black);
            padding: 0.5rem 0.85rem;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            position: relative;
        }

        .news-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 5px 5px 0 0 var(--black);
        }

        .card-top-row {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 0.3rem 0.75rem;
            justify-content: space-between;
        }

        .card-title {
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.3;
            flex: 1;
            min-width: 60%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-meta {
            font-family: 'Space Mono', monospace;
            font-size: 0.65rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .card-category {
            color: var(--saffron);
            text-transform: uppercase;
        }

        .card-date {
            color: #888;
        }

        .card-category[data-cat="Startups"], .card-category[data-cat="Startup"] { color: var(--saffron); }
        .card-category[data-cat="Culture"], .card-category[data-cat="Cultural Exchange"] { color: var(--japan-red); }
        .card-category[data-cat="Business"], .card-category[data-cat="Partnership"] { color: var(--navy); }
        .card-category[data-cat="Tech"], .card-category[data-cat="Technology"] { color: #27ae60; }

        .card-title a {
            color: var(--navy);
            text-decoration: none;
        }

        .card-title a::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .card-title a:hover {
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 4px;
        }

        .card-footer {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .card-source {
            font-family: 'Space Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            background-color: #eee;
            padding: 0.1rem 0.4rem;
            border: 1px solid var(--black);
            white-space: nowrap;
        }

        .card-tags {
            display: flex;
            gap: 0.25rem;
            flex-wrap: wrap;
        }

        .tag {
            font-family: 'Space Mono', monospace;
            font-size: 0.55rem;
            background-color: var(--cream);
            border: 1px solid var(--black);
            padding: 0.05rem 0.3rem;
        }

        .show-more-container {
            width: 100%;
            max-width: 1000px;
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            display: none; /* Hidden by default */
        }

        .show-more-btn {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            font-size: 0.9rem;
            padding: 0.75rem 2rem;
            background-color: var(--cream);
            border: 2px solid var(--black);
            color: var(--navy);
            cursor: pointer;
            box-shadow: 4px 4px 0 0 var(--black);
            transition: all 0.1s ease;
            text-transform: uppercase;
        }

        .show-more-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 0 var(--black);
        }

        .show-more-btn:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0 0 var(--black);
        }

        .section-header {
            width: 100%;
            max-width: 1000px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }

        .section-header .section-title {
            margin-bottom: 0;
            width: auto;
        }

        .sort-select {
            font-family: 'Space Mono', monospace;
            font-size: 0.8rem;
            padding: 0.2rem 0.5rem;
            border: 2px solid var(--black);
            background: var(--cream);
            color: var(--navy);
            cursor: pointer;
            outline: none;
            font-weight: 700;
            box-shadow: 2px 2px 0 0 var(--black);
            transition: all 0.1s ease;
        }

        .sort-select:hover {
            transform: translate(-1px, -1px);
            box-shadow: 3px 3px 0 0 var(--black);
        }

        .section-title {
            font-family: 'Space Mono', monospace;
            font-size: 0.8rem;
            text-transform: lowercase;
            color: var(--navy);
            margin-bottom: 0.5rem;
            width: 100%;
            max-width: 1000px;
            font-weight: 700;
        }

        @media (max-width: 900px) {
            h1 { font-size: 2rem; justify-content: center; }
            .logo-img { 
                width: 75%; 
                max-width: none; 
                margin-left: auto; 
                margin-right: auto; 
                display: block; 
            }
            header { padding: 1.5rem; text-align: center; }

            .mobile-break { display: block; }
            .desktop-space { display: none; }

            .card-title {
                min-width: 100%;
            }

            .filters {
                flex-wrap: nowrap;
                overflow-x: auto;
                padding-bottom: 0.5rem;
                margin-bottom: 0.5rem;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
            }
            .filters::-webkit-scrollbar {
                display: none; /* Chrome/Safari */
            }
            .filter-btn {
                white-space: nowrap;
                font-size: 0.75rem;
                padding: 0.35rem 1rem;
            }

            .collapsible-title {
                cursor: pointer;
                user-select: none;
                display: flex;
                align-items: center;
                gap: 4px;
            }
            .collapsible-title::before {
                content: '+';
                font-size: 1.5rem;
                font-weight: 300;
                line-height: 1;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .collapsible-title.is-open::before {
                content: '\2212'; /* minus sign */
                font-size: 1.5rem;
                font-weight: 300;
                line-height: 1;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .collapsible-title::after {
                content: ' \2192';
                margin-left: 2px;
            }
            .collapsible-content {
                display: none !important;
            }
            .collapsible-content.is-open {
                display: flex !important;
            }
        }
    
        /* --- NEW CSS FOR PHASE 2 --- */
        .ticker-wrap {
            width: 100%;
            overflow: hidden;
            background-color: var(--black);
            color: var(--cream);
            height: 35px;
            line-height: 35px;
            z-index: 1000;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--black);
        }
        .ticker {
            display: inline-block;
            white-space: nowrap;
            padding-left: 100%;
            animation: ticker 45s linear infinite;
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            font-weight: 700;
        }
        .ticker:hover {
            animation-play-state: paused;
        }
        @keyframes ticker {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-100%, 0, 0); }
        }
        .ticker-item {
            display: inline-block;
            margin-right: 3rem;
        }
        .ticker-item a {
            color: var(--saffron);
            text-decoration: none;
            margin-left: 0.5rem;
        }
        .ticker-item a:hover {
            text-decoration: underline;
        }

        .content-wrapper {
            width: 100%;
            max-width: 1200px;
            display: flex;
            gap: 2rem;
            align-items: flex-start;
        }
        .main-column {
            flex: 1;
            min-width: 0;
            width: 100%;
        }
        .sidebar-column {
            width: 320px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
        }

        /* Bridges Directory */
        .bridges-container {
            width: 100%;
            max-width: 1200px;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }
        .bridges-grid {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .bridge-card {
            background-color: #fff;
            border: 2px solid var(--black);
            box-shadow: 4px 4px 0 0 var(--black);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .bridge-category {
            font-family: 'Space Mono', monospace;
            font-size: 0.75rem;
            color: var(--saffron);
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        .bridge-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }
        .bridge-note {
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 1rem;
            flex-grow: 1;
        }
        .bridge-footer {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        .bridge-btn {
            font-family: 'Space Mono', monospace;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.4rem 0.8rem;
            border: 2px solid var(--black);
            background: var(--navy);
            color: var(--cream);
            text-decoration: none;
            text-transform: uppercase;
            transition: all 0.2s;
        }
        .bridge-btn.sub {
            background: #fff;
            color: var(--navy);
        }
        .bridge-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: 2px 2px 0 0 var(--black);
        }

        /* Sidebar Architect */
        .architect-card {
            background-color: #fff;
            border: 2px solid var(--black);
            box-shadow: 4px 4px 0 0 var(--black);
            padding: 1.25rem;
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }
        .architect-photo {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 2px solid var(--black);
            object-fit: cover;
            background: var(--cream);
        }
        .architect-info {
            flex: 1;
        }
        .architect-name {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }
        .architect-title {
            font-size: 0.8rem;
            color: var(--saffron);
            font-family: 'Space Mono', monospace;
            margin-bottom: 0.75rem;
        }

        /* Entity Modals */
        .entity-modal {
            position: fixed;
            top: 0; left: 0; bottom: 0; right: 0;
            background: rgba(0,0,0,0.6);
            z-index: 2000;
            display: flex;
            justify-content: flex-end;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .entity-modal.is-open {
            opacity: 1;
            pointer-events: auto;
        }
        .modal-panel {
            width: 100%;
            max-width: 400px;
            height: 100%;
            background: var(--cream);
            border-left: 4px solid var(--black);
            padding: 2rem;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            position: relative;
            overflow-y: auto;
        }
        .entity-modal.is-open .modal-panel {
            transform: translateX(0);
        }
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            font-weight: bold;
        }
        
        .entity-tag {
            background-color: #ffeaa7; /* subtle highlight */
            border-bottom: 2px solid var(--saffron);
            cursor: pointer;
            font-weight: 600;
            padding: 0 4px;
        }

        @media (max-width: 900px) {
            .content-wrapper {
                flex-direction: column;
                gap: 0;
            }
            .sidebar-column {
                width: 100%;
                order: -1;
            }
            .bridges-grid {
                grid-template-columns: 1fr;
            }
        }
        /* --- END NEW CSS --- */

        /* Static SEO content — visible to all users and crawlers */
        #seo-static-content {
            max-width: 1000px;
            margin: 3rem auto 2rem;
            padding: 2rem;
            background: #fff;
            border: 2px solid var(--black);
            box-shadow: 6px 6px 0 0 var(--black);
            line-height: 1.7;
        }
        #seo-static-content h2 {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--black);
        }
        #seo-static-content h3 {
            font-size: 1rem;
            font-weight: 700;
            margin: 1.25rem 0 0.4rem;
            color: var(--saffron);
            font-family: 'Space Mono', monospace;
            text-transform: uppercase;
            font-size: 0.85rem;
        }
        #seo-static-content ul {
            padding-left: 1.25rem;
            margin-bottom: 0.75rem;
        }
        #seo-static-content li { margin-bottom: 0.4rem; font-size: 0.95rem; }
        #seo-static-content p { margin-bottom: 0.75rem; font-size: 0.95rem; }
        #seo-static-content a { color: var(--japan-red); }


.active-nav { text-decoration: underline; }
