@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-page: #faf9f6;
    /* Cleaner off-white */
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #5a5a5a;
    --accent-red: #8b2828;
    --accent-blue: #1b3a5c;
    --border-color: #e5e3db;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    padding: 3rem 1.5rem;
    background-image: linear-gradient(to bottom, #ffffff 0%, #faf9f6 600px);
    background-repeat: no-repeat;
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    padding-bottom: 2.5rem;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-red);
}

header h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
}

.authors {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', Georgia, serif;
    color: var(--text-main);
}

.institutions {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.institutions a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}

.institutions a:hover {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
    text-decoration: none;
}

.equal-contribution {
    font-style: italic;
    opacity: 0.9;
    margin-top: 0.5rem;
    display: block;
}

.mobile-show {
    display: none;
}

header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-align: justify;
    line-height: 1.8;
}

.disclaimer {
    background: #fffafa;
    color: var(--accent-red);
    padding: 1.25rem 1.75rem;
    border-left: 4px solid var(--accent-red);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(139, 40, 40, 0.05);
}

.vision-figure {
    margin: 3rem auto 6rem;
    max-width: 900px;
    text-align: center;
}

.vision-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.75rem 1.5rem;
    background-color: #fff;
}

.vision-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

.preprint-info {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    border-bottom: 1px dotted var(--border-color);
    display: block;
    padding-bottom: 1rem;
    text-align: center;
}

.preprint-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 4px;
}

.mobile-nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mobile-nav a {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.2);
}

.btn-primary:hover {
    background: #11263d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 58, 92, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.15);
}

.btn-accent {
    background: var(--accent-red);
    color: white;
    border: 1px solid var(--accent-red);
    box-shadow: 0 4px 12px rgba(139, 40, 40, 0.2);
}

.btn-accent:hover {
    background: #702020;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 40, 40, 0.3);
}

.btn-github {
    background: #24292e;
    color: white;
    border: 1px solid #24292e;
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.2);
}

.btn-github:hover {
    background: #1b1f23;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 41, 46, 0.3);
}

.institutions:hover {
    color: var(--text-color);
}

.abstract-text {
    margin-top: 0;
    margin-bottom: 2rem;
}

/* COLUMN LAYOUT */
.experiments-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* AUTHOR PROFILES */
.author-profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1rem;
    margin: 3rem 0;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 calc(20% - 1rem);
    min-width: 140px;
}

.author-img-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.author-image {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
    margin-bottom: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.author-card:hover .author-image {
    transform: scale(1.05);
}

.orcid-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    line-height: 0;
    border: 1.5px solid white;
    transition: transform 0.2s ease;
}

.orcid-badge:hover {
    transform: scale(1.15);
}

.author-name {
    font-family: 'Merriweather', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.author-name:hover {
    color: var(--accent-blue);
}

.author-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .experiments-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .author-profiles {
        gap: 1.5rem;
    }
}

.experiment-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experiment-header {
    font-size: 2rem;
    color: var(--accent-red);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.experiment-header a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-blue);
}

.experiment-header a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-red);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    margin-bottom: 1.75rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.card:hover .card-thumbnail {
    transform: scale(1.02);
}

.card-thumbnail a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.card-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.card-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .experiments-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-profiles {
        gap: 2rem 0.5rem;
    }

    .author-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header p {
        text-align: left;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .institutions {
        font-size: 0.8rem;
    }

    .disclaimer {
        padding: 1rem;
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .preprint-info {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .vision-figure {
        margin: 2rem auto;
    }

    .experiments-layout {
        grid-template-columns: 1fr;
    }

    .author-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .container {
        padding: 1rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .author-profiles {
        margin: 2rem 0;
        gap: 1rem;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 480px) {
    .author-profiles {
        gap: 0.75rem 2%;
        width: 100%;
        padding: 0 0.25rem;
        margin: 1rem 0;
    }

    .author-card {
        flex: 1 1 30%;
        max-width: 32%;
        min-width: 0;
        margin-bottom: 0.25rem;
    }

    .author-image {
        width: 68px;
        height: 68px;
    }

    .author-name {
        font-size: 0.58rem;
        letter-spacing: -0.01em;
    }

    .author-title {
        font-size: 0.48rem;
    }

    .mobile-hide {
        display: none;
    }

    .mobile-show {
        display: inline;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.95rem;
    }
}