:root {
    --bg: #f3f3ef;
    --surface: #ffffff;
    --ink: #111214;
    --muted: #6f7178;
    --line: rgba(17, 18, 20, 0.13);
    --accent: #3157ff;
    --accent-soft: #e7ebff;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family:
        Inter,
        "Noto Sans SC",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}

.section-shell {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 32px;
    background: rgba(243, 243, 239, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--ink);
    color: white;
    font-size: 13px;
    border-radius: 9px;
}
.brand-text {
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
}
.desktop-nav a {
    color: #34363b;
    transition: color 0.2s ease;
}
.desktop-nav a:hover {
    color: var(--accent);
}

.join-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-size: 13px;
}

.menu-button {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    position: relative;
}
.menu-button span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition:
        transform 0.25s ease,
        top 0.25s ease;
}
.menu-button span:first-child {
    top: 17px;
}
.menu-button span:last-child {
    top: 26px;
}
.menu-button.active span:first-child {
    top: 21px;
    transform: rotate(45deg);
}
.menu-button.active span:last-child {
    top: 21px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    z-index: 45;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 30px 24px 34px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: none;
    flex-direction: column;
    gap: 18px;
}
.mobile-menu.open {
    transform: translateY(0);
}
.mobile-menu a {
    font-size: 28px;
    letter-spacing: -0.04em;
}
.mobile-menu .mobile-join {
    color: var(--accent);
}

main {
    overflow: hidden;
}
.hero {
    padding-top: calc(var(--header-height) + 44px);
}

.hero-topline {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    min-height: 720px;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    padding: 74px 42px 64px 0;
    border-right: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 26px;
    font-size: 12px;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--accent);
}

.hero h1 {
    margin: 0;
    font-size: 88px;
    line-height: 1.15;
    letter-spacing: 0;
    font-weight: 500;
}
.hero-description {
    width: min(720px, 86%);
    margin: 42px 0 0;
    font-size: 18px;
    line-height: 1.75;
    color: #4f5258;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 34px;
}
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    padding: 16px 18px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.hero-visual {
    position: relative;
    min-height: 650px;
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(49, 87, 255, 0.15),
            transparent 38%
        ),
        linear-gradient(rgba(17, 18, 20, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 18, 20, 0.04) 1px, transparent 1px);
    background-size:
        auto,
        36px 36px,
        36px 36px;
}
#networkCanvas {
    width: 100%;
    height: 100%;
    display: block;
}
.visual-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.hero-marquee {
    overflow: hidden;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 26px;
    animation: marquee 28s linear infinite;
    font-size: 12px;
    letter-spacing: 0.13em;
    color: #5c5f65;
}
.marquee-track i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.section-block {
    padding-top: 136px;
    padding-bottom: 34px;
}
.section-heading {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 34px;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--line);
}
.section-index {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 500;
}
.section-heading p {
    margin: 22px 0 0;
    max-width: 640px;
    color: var(--muted);
    line-height: 1.7;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--line);
}
.research-card {
    min-height: 420px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    background: rgba(255, 255, 255, 0.18);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}
.research-card:hover {
    background: var(--surface);
    transform: translateY(-4px);
}
.card-number {
    font-size: 11px;
    color: var(--muted);
}
.card-icon {
    font-size: 50px;
    margin-top: 72px;
    color: var(--accent);
}
.research-card h3 {
    margin: 34px 0 14px;
    font-size: 24px;
    letter-spacing: -0.035em;
}
.research-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 28px;
}
.tags span {
    border: 1px solid var(--line);
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    color: #55585f;
}

.stats-band {
    margin-top: 130px;
    background: var(--accent);
    color: white;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stats-grid > div {
    padding: 52px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.stats-grid > div:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.stats-grid strong {
    display: block;
    font-size: clamp(52px, 6vw, 92px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 500;
}
.stats-grid span {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--line);
}
.person-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 24px;
}
.avatar-placeholder {
    aspect-ratio: 4/3;
    display: grid;
    place-items: center;
    background: #e7e7e1;
    font-size: clamp(50px, 8vw, 110px);
    color: #cacac2;
    letter-spacing: -0.08em;
}
.person-card h3 {
    margin: 22px 0 5px;
    font-size: 21px;
    font-weight: 500;
}
.person-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.news-list {
    border-left: 1px solid var(--line);
}
.news-row {
    display: grid;
    grid-template-columns: 150px 100px 1fr auto;
    gap: 20px;
    align-items: center;
    min-height: 106px;
    padding: 0 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition:
        background 0.2s ease,
        padding-left 0.2s ease;
}
.news-row:hover {
    background: var(--surface);
    padding-left: 32px;
}
.news-row time,
.news-type {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
}
.news-type {
    color: var(--accent);
}
.news-row h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}
.news-arrow {
    font-size: 24px;
}

.about-section {
    padding-bottom: 140px;
}
.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 34px;
}
.about-large {
    margin: 0;
    font-size: clamp(46px, 6vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}
.about-large em {
    font-style: normal;
    color: var(--accent);
}
.about-cn {
    margin: 42px 0 0 auto;
    max-width: 690px;
    color: var(--muted);
    line-height: 1.8;
}

.join-section {
    background: var(--ink);
    color: white;
}
.join-inner {
    padding-top: 120px;
    padding-bottom: 120px;
}
.join-inner h2 {
    margin: 0;
    font-size: clamp(74px, 9vw, 150px);
    line-height: 0.88;
    letter-spacing: -0.07em;
    font-weight: 500;
}
.join-inner > p:not(.eyebrow) {
    margin: 32px 0 0;
    color: #aeb1b8;
    font-size: 18px;
}
.join-cta {
    margin-top: 42px;
    display: inline-flex;
    gap: 80px;
    align-items: center;
    padding: 17px 20px;
    background: white;
    color: var(--ink);
    min-width: 260px;
}
.contact-details {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.8;
}
.contact-details p {
    margin: 8px 0;
    overflow-wrap: anywhere;
}
.contact-details a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding-top: 52px;
    padding-bottom: 52px;
    font-size: 12px;
}
.footer strong {
    font-size: 18px;
}
.footer p {
    color: var(--muted);
}
.footer-links {
    display: flex;
    gap: 20px;
    align-items: start;
    justify-content: center;
}
.footer-copy {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .desktop-nav,
    .desktop-join {
        display: none;
    }
    .site-header {
        grid-template-columns: 1fr 1fr;
    }
    .menu-button {
        display: block;
    }
    .mobile-menu {
        display: flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-right: 0;
    }
    .hero-visual {
        min-height: 520px;
    }
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .people-grid {
        grid-template-columns: 1fr 1fr;
    }
    .news-row {
        grid-template-columns: 130px 80px 1fr auto;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 68px;
    }
    .section-shell {
        width: min(100% - 32px, 1480px);
    }
    .site-header {
        padding: 0 16px;
    }
    .hero {
        padding-top: calc(var(--header-height) + 20px);
    }
    .hero-topline {
        gap: 20px;
        font-size: 9px;
    }
    .hero-grid {
        min-height: auto;
    }
    .hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .hero h1 {
        font-size: 56px;
    }
    .hero-description {
        width: 100%;
        font-size: 15px;
        margin-top: 28px;
    }
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .hero-visual {
        min-height: 400px;
    }
    .section-block {
        padding-top: 96px;
    }
    .section-heading {
        grid-template-columns: 1fr;
    }
    .section-heading h2 {
        font-size: 48px;
    }
    .research-grid {
        grid-template-columns: 1fr;
    }
    .research-card {
        min-height: 330px;
    }
    .card-icon {
        margin-top: 42px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid > div {
        padding: 34px 18px;
    }
    .stats-grid strong {
        font-size: 50px;
    }
    .people-grid {
        grid-template-columns: 1fr;
    }
    .news-row {
        grid-template-columns: 1fr auto;
        padding: 20px 16px;
        gap: 8px 16px;
    }
    .news-row time,
    .news-type {
        grid-column: span 1;
    }
    .news-row h3 {
        grid-column: 1;
        font-size: 18px;
    }
    .news-arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-large {
        font-size: 48px;
    }
    .join-inner h2 {
        font-size: 66px;
    }
    .footer {
        grid-template-columns: 1fr;
    }
    .footer-links,
    .footer-copy {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Local-file safety: if JavaScript cannot run, keep page content visible. */
html.no-js .reveal {
    opacity: 1;
    transform: none;
}
