/* ===== CSS Variables ===== */
:root {
    --primary: #0d7377;
    --primary-dark: #095456;
    --accent: #2a9d8f;
    --accent-light: #e8f5f3;
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --text: #333340;
    --text-light: #6b7280;
    --white: #ffffff;
    --off-white: #f8fafa;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--accent-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 170px 0 40px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--accent-light) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(13, 115, 119, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 157, 143, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.4vw, 5.4rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.hero-comma {
    color: var(--primary);
}

.hero-degree {
    font-size: clamp(2rem, 3.2vw, 3rem);
    color: var(--text-light);
    font-weight: 400;
}

.hero-manifesto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 24px;
    max-width: 640px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 620px;
    font-weight: 400;
}

.hero-affiliation {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.hero-institution {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(13, 115, 119, 0.2);
    letter-spacing: 0.3px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    background: var(--white);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px dashed rgba(13, 115, 119, 0.25);
    z-index: 1;
}

/* Hero Stats */
.hero-stats {
    background: var(--dark);
    margin-top: 60px;
    padding: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 115, 119, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 110px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 3.6vw, 3.4rem);
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 64px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== About ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto 56px;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border), var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    z-index: 1;
    transition: all var(--transition);
}

.timeline-marker.active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(13, 115, 119, 0.15);
}

.timeline-content {
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: rgba(13, 115, 119, 0.3);
    box-shadow: var(--shadow);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Research Cards ===== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.research-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.research-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.card-highlight {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.research-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 4px;
}

/* ===== Publications ===== */
.pub-list {
    max-width: 800px;
    margin: 0 auto;
}

.pub-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.pub-item:hover {
    padding-left: 8px;
}

.pub-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    padding-top: 2px;
}

.pub-details {
    flex: 1;
}

.pub-details h4 {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
}

.pub-title {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.5;
}

.pub-journal {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.pub-impact {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
}

.pub-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
}

.pub-more {
    text-align: center;
    margin-top: 40px;
}

.pub-more p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ===== Future Lab ===== */
.vision-intro {
    max-width: 750px;
    margin: 0 auto 48px;
    text-align: center;
}

.vision-intro p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.program-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.program-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.program-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(13, 115, 119, 0.12);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.program-card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 12px;
    padding-right: 40px;
}

.program-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.program-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 4px;
}

.join-lab {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 48px 40px;
    border-radius: var(--radius);
    color: var(--white);
}

.join-lab h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.join-lab p {
    max-width: 600px;
    margin: 0 auto 24px;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.7;
}

.join-lab .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.join-lab .btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ===== Teaching ===== */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.teaching-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.teaching-card:hover {
    box-shadow: var(--shadow);
}

.teaching-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
}

.teaching-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

.course-list {
    list-style: none;
}

.course-list li {
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 20px;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

/* ===== Service / Leadership ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-item {
    display: flex;
    gap: 16px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow);
}

.service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    color: var(--primary);
    background: var(--accent-light);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.service-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--primary);
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.social-link:hover {
    background: var(--accent-light);
    color: var(--primary);
    transform: translateX(4px);
    border-color: rgba(13, 115, 119, 0.3);
}

.social-link svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 36px 0;
    font-size: 0.88rem;
}

.footer-note {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-tagline {
        max-width: 100%;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper {
        width: 240px;
        height: 240px;
    }

    .hero-image-accent {
        width: 240px;
        height: 240px;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-degree {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .research-grid,
    .program-grid,
    .teaching-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-degree {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-image-accent {
        width: 200px;
        height: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .pub-item {
        flex-direction: column;
        gap: 8px;
    }

    .pub-badge {
        align-self: flex-start;
    }

    .service-item {
        flex-direction: column;
    }
}

/* ===== Journal Logo Strip ===== */
.journal-strip {
    background: var(--dark);
    padding: 28px 0;
    overflow: hidden;
}

.strip-label {
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.journal-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.journal-logo-item {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.journal-logo-item:hover {
    color: var(--accent);
}

/* ===== Interactive Graphical Abstract ===== */
.interactive-abstract {
    max-width: 780px;
    margin: 0 auto 48px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px 36px 28px;
    box-shadow: var(--shadow);
    position: relative;
}

.abstract-scene {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.abstract-panel {
    text-align: center;
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.panel-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.panel-label-green { color: var(--primary); }
.panel-label-red { color: #c0392b; }

.pathway-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pathway-node {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pathway-node:hover {
    transform: scale(1.08);
    z-index: 10;
}

/* Pi dots */
.pi-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
    min-height: 20px;
}

.pi-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e74c3c;
    opacity: 0.8;
    animation: piFloat 2s ease-in-out infinite;
}

.pi-dot:nth-child(2) { animation-delay: 0.3s; }
.pi-dot:nth-child(3) { animation-delay: 0.6s; }
.pi-dot:nth-child(4) { animation-delay: 0.9s; }
.pi-dot:nth-child(5) { animation-delay: 1.2s; }

.pi-dot.dim {
    opacity: 0.25;
    width: 10px;
    height: 10px;
    animation: none;
}

@keyframes piFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.node-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

/* SPX-PHR complex */
.node-complex {
    display: flex;
    gap: 4px;
    align-items: stretch;
}

.complex-part {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.complex-part small {
    font-weight: 500;
    font-size: 0.7rem;
    opacity: 0.8;
}

.spx {
    background: #ddd;
    color: #555;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.phr.inactive {
    background: #d4a88c;
    color: #fff;
}

.phr.active-phr {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 0 12px rgba(39, 174, 96, 0.4);
    animation: phrPulse 2s ease-in-out infinite;
}

@keyframes phrPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(39, 174, 96, 0.3); }
    50% { box-shadow: 0 0 20px rgba(39, 174, 96, 0.6); }
}

/* Connectors */
.pathway-connector {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-arrow {
    position: absolute;
    bottom: -2px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.connector-inhibit {
    position: absolute;
    bottom: 2px;
    font-size: 1.1rem;
    color: #c0392b;
    font-weight: 900;
}

.dim-arrow {
    color: #ccc;
}

/* NIN box */
.nin-box {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: all 0.5s ease;
}

.nin-box small {
    font-weight: 500;
    font-size: 0.75rem;
}

.nin-box.expressed {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.3);
}

.nin-box.repressed {
    background: #bdc3c7;
    color: #7f8c8d;
    text-decoration: line-through;
    box-shadow: none;
}

/* Outcome */
.outcome-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 auto 6px;
    color: #fff;
    background: var(--primary);
}

.outcome-icon.no {
    background: #e74c3c;
}

.outcome-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
}

/* Divider */
.abstract-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 60px;
}

.divider-line {
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.divider-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tooltip */
.abstract-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--dark);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 340px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.abstract-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Toggle button */
.abstract-toggle-wrap {
    text-align: center;
    margin-top: 24px;
}

.abstract-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 24px;
    background: transparent;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.abstract-toggle-btn:hover {
    background: var(--primary);
    color: #fff;
}

.abstract-toggle-btn .toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transition: background 0.3s ease;
}

.abstract-toggle-btn:hover .toggle-dot {
    background: #fff;
}

.abstract-toggle-btn.active {
    border-color: #c0392b;
    color: #c0392b;
}

.abstract-toggle-btn.active .toggle-dot {
    background: #c0392b;
}

.abstract-toggle-btn.active:hover {
    background: #c0392b;
    color: #fff;
}

.abstract-toggle-btn.active:hover .toggle-dot {
    background: #fff;
}

/* Simulation states */
.abstract-scene.simulating .panel-adequate {
    opacity: 0.3;
    filter: grayscale(0.7);
}

.abstract-scene.simulating .panel-low {
    opacity: 1;
    filter: none;
}

.abstract-scene:not(.simulating) .panel-low {
    opacity: 0.4;
    filter: grayscale(0.5);
}

.abstract-scene:not(.simulating) .panel-adequate {
    opacity: 1;
    filter: none;
}

/* Featured Papers (two-column below abstract) */
.featured-papers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* ===== Featured Research Section ===== */

/* Featured Paper Cards */
.featured-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

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

.featured-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.journal-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
}

.featured-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.featured-card-title {
    font-size: 1.05rem;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 600;
}

.featured-card-authors {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Accordion Toggle */
.findings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
    margin-bottom: 0;
}

.findings-toggle:hover {
    background: var(--accent-light);
    border-color: rgba(13, 115, 119, 0.3);
}

.toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.findings-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.findings-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.findings-content.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

.findings-content ul {
    list-style: none;
    padding: 0 4px;
}

.findings-content li {
    position: relative;
    padding: 7px 0 7px 18px;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
}

.findings-content li:last-child {
    border-bottom: none;
}

.findings-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.featured-btn {
    margin-top: 20px;
    display: inline-block;
    font-size: 0.88rem;
    padding: 10px 22px;
}

/* Pathway Diagram */
.pathway-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.pathway-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

/* SVG styling (static — animations removed for compatibility) */
.pulse-node {
    opacity: 1;
}

.signal-flow-green {
    stroke-dasharray: 6 4;
}

.signal-flow-red {
    stroke-dasharray: 4 3;
}

.graphical-abstract-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 auto;
    display: block;
}

/* Key Takeaway */
.key-takeaway {
    max-width: 750px;
    margin: 0 auto;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
}

.takeaway-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: var(--white);
}

.takeaway-icon svg {
    width: 100%;
    height: 100%;
}

.takeaway-text {
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Featured Research Responsive */
@media (max-width: 1060px) {
    .featured-papers {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .featured-card {
        padding: 24px 20px;
    }

    .key-takeaway {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .takeaway-text {
        font-size: 0.95rem;
    }

    .interactive-abstract {
        padding: 24px 16px 20px;
    }

    .abstract-scene {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .abstract-divider {
        flex-direction: row;
        padding-top: 0;
    }

    .divider-line {
        width: 80px;
        height: 2px;
    }

    .panel-label {
        font-size: 1.1rem;
    }

    .journal-logos {
        gap: 20px;
    }

    .journal-logo-item {
        font-size: 0.8rem;
    }
}
