:root {
    --bg-color: #080b14;
    --text-main: #f2f2f2;
    --text-muted: #a0aec0;
    --accent: #8ab9cd;
    --accent-hover: #d16f4e;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.035);
    --font-stack: system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

#wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    text-align: center;
}

header {
    margin-bottom: 50px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    color: var(--accent);
    min-height: 1.8rem;
    margin-bottom: 30px;
    transition: opacity .3s ease;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
}

.menu-link,
a.text-link,
.go-to-top,
.social-btn,
.research-statement-summary h3,
.research-statement-arrow {
    transition: all .2s ease;
}

.menu-link:hover,
a.text-link:hover,
.go-to-top:hover,
.social-btn:hover,
.research-statement-summary:hover h3,
.research-statement-summary:hover .research-statement-arrow {
    color: var(--accent-hover);
}

.menu-link {
    display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 14px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    }
    
    .menu-link:hover {
        border-color: var(--accent-hover);
        transform: translateY(-1px);
}

.menu-link.active {
    color: var(--accent);
    border-color: rgba(138, 185, 205, 0.45);
        background: rgba(255, 255, 255, 0.04);
}

#main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-content {
    width: 100%;
    display: none;
    animation: fadeIn .25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-block {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: 1.5rem;
    font-size: .95rem;
    text-align: justify;
    text-justify: inter-word;
}

.center-text,
.intro-text,
.project-item h3,
.copyright {
    text-align: center;
}

.intro-text {
    color: var(--text-muted);
    margin-bottom: 50px !important;
}

a.text-link {
    color: #d16f4e;
    text-decoration: underline;
    text-underline-offset: .16em;
    text-decoration-thickness: 1px;
}

a.text-link:hover {
    color: #ffd0a8;
    text-decoration-color: currentColor;
}

.offline-link,
.simple-list-item p,
.research-statement-teaser,
.copyright {
    color: var(--text-muted);
}

.simple-list-item p a,
.content-block p a {
    cursor: pointer;
}

.project-list,
.simple-list,
footer {
    display: flex;
    flex-direction: column;
}

.project-list {
    gap: 40px;
    align-items: center;
}

.project-item {
    width: 100%;
}

.project-item h3,
.simple-list-item h3,
.research-statement-summary h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
}

.project-item h3 span {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.project-item p {
    margin-bottom: 10px;
}

.project-item .text-link,
.project-item .offline-link {
    display: block;
    text-align: right;
    font-weight: 500;
    font-size: .95rem;
}

.simple-list {
    gap: 18px;
}

.simple-list-item {
    padding: 18px 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 16px;
    text-align: left;
}

.simple-list-item p {
    margin: 0;
    text-align: left;
}

.project-thumb {
    display: block;
    max-width: 150px;
    max-height: 150px;
    margin: 0 auto 14px;
    object-fit: contain;
    border-radius: 12px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.image-grid img,
.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.about-image {
    max-width: 420px;
    margin: 0 auto 24px;
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.go-to-top {
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}

.go-to-top:hover {
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-btn {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.copyright {
    font-size: .85rem;
    line-height: 1.6;
}

.research-statement-block {
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
}

.research-statement-block summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    caret-color: transparent;
    outline: none;
}

.research-statement-block summary::-webkit-details-marker {
    display: none;
}

.research-statement-summary-text {
    flex: 1;
    min-width: 0;
}

.research-statement-arrow {
    flex: 0 0 auto;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--accent);
}

.research-statement-block[open] .research-statement-arrow {
    transform: rotate(90deg);
}

.research-statement-body {
    padding: 0 20px 20px;
}

.research-statement-body p,
.research-statement-teaser {
    text-align: left;
    margin: 0;
}

.ventures-block {
    max-width: 700px;
}

.ventures-vertical-shell {
    position: relative;
    width: 100%;
}

.ventures-vertical-timeline {
    position: relative;
    width: 100%;
    padding: 8px 0;
}

.ventures-vertical-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
                rgba(138, 185, 205, 0.25),
        rgba(255, 255, 255, 0.08));
}

.ventures-relations {
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.venture-relation-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.11);
    stroke-width: 2;
    transition: stroke .2s ease, opacity .2s ease;
}

.venture-relation-line.on-path {
    stroke: rgba(209, 111, 78, 0.28);
}

.venture-relation-line-active {
    fill: none;
    stroke: var(--accent-hover);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 10 10;
    animation: ventureDash 1.2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(209, 111, 78, 0.45));
}

.venture-relation-pulse {
    fill: var(--accent-hover);
    filter: drop-shadow(0 0 8px rgba(209, 111, 78, 0.9));
}

.venture-node {
    position: relative;
    width: 100%;
    margin: 0 0 22px;
    outline: none;
    z-index: 2;
}

.venture-node:last-child {
    margin-bottom: 0;
}

.venture-node-card {
    position: relative;
    width: calc(50% - 28px);
    padding: 14px 14px 12px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(10, 16, 28, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
    z-index: 3;
}

.venture-node-left .venture-node-card {
    margin-right: auto;
}

.venture-node-right .venture-node-card {
    margin-left: auto;
}

.venture-node:hover .venture-node-card,
.venture-node:focus-within .venture-node-card,
.venture-node.active .venture-node-card {
    transform: translateY(-2px);
    border-color: rgba(209, 111, 78, 0.65);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    background: rgba(12, 20, 34, 0.985);
}

.venture-node-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: var(--bg-color);
    border: 2px solid rgba(138, 185, 205, 0.7);
    box-shadow: 0 0 0 5px rgba(8, 11, 20, 0.95);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    z-index: 4;
}

.venture-node:hover .venture-node-dot,
.venture-node:focus-within .venture-node-dot,
.venture-node.active .venture-node-dot {
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 5px rgba(8, 11, 20, 0.95), 0 0 14px rgba(209, 111, 78, 0.35);
    transform: translate(-50%, -50%) scale(1.08);
}

.venture-node-year {
    margin-bottom: 8px;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.venture-node-image {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    object-fit: contain;
    border-radius: 12px;
}

.venture-node-title {
    margin-bottom: 5px;
    font-size: .96rem;
    line-height: 1.15;
    color: #fff;
    text-align: left;
}

.venture-node-meta {
    margin: 0;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--text-muted);
    text-align: left;
}

.venture-node-meta-empty {
    min-height: 1.08rem;
}

.venture-node-description {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
    white-space: normal;
    transition: max-height .22s ease, margin-top .22s ease, opacity .18s ease;
    opacity: 0;
}

.venture-node:hover .venture-node-description,
.venture-node:focus-within .venture-node-description,
.venture-node.active .venture-node-description {
    max-height: 13em;
    margin-top: 12px;
    opacity: 1;
}

.venture-node-footer {
    margin-top: 10px;
}

.venture-link {
    display: inline-block;
    font-size: .8rem;
}

@keyframes ventureDash {
    to {
        stroke-dashoffset: -20;
    }
}

@media (max-width: 640px) {
    #wrapper {
        margin-top: 40px;
            padding: 0 16px;
        }
        header {
            margin-bottom: 36px;
        }
        h1 {
            font-size: 1.9rem;
        }
        .tagline {
            margin-bottom: 22px;
        }
        .main-menu {
        display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            padding-bottom: 16px;
        }
        
        .menu-link {
            width: 100%;
            min-height: 42px;
            padding: 9px 12px;
            font-size: .92rem;
        }
        
        .content-block p {
            text-align: left;
            text-justify: auto;
        }
        
        .image-grid {
            grid-template-columns: 1fr;
        }

        .ventures-vertical-timeline::before {
            left: 15px;
            transform: none;
        }

        .venture-node {
            padding-left: 34px;
            margin-bottom: 16px;
        }

        .venture-node-card {
            width: 100%;
            margin: 0;
            padding: 12px 12px 10px;
            border-radius: 18px;
        }

        .venture-node-left .venture-node-card,
        .venture-node-right .venture-node-card {
            margin: 0;
        }

        .venture-node-dot {
            left: 15px;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .venture-node:hover .venture-node-dot,
        .venture-node:focus-within .venture-node-dot,
        .venture-node.active .venture-node-dot {
            transform: translate(-50%, -50%) scale(1.08);
        }

        .venture-node-image {
            width: 34px;
            height: 34px;
            margin-bottom: 8px;
        }

        .venture-node-title {
            font-size: .9rem;
        }

        .venture-node-meta,
        .venture-link,
        .venture-node-description {
            font-size: .76rem;
        }
}