/* ============================================================
   BioComplex Lab — styles.css
   Palette derived from logo: #322f31 (charcoal) · #d53367 (pink)
   ============================================================ */

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

/* ── Variables ── */
:root {
    --pink:          #d53367;
    --pink-dark:     #b8274f;
    --pink-light:    #f5d9e5;
    --pink-lighter:  #fdf0f5;
    --charcoal:      #322f31;
    --charcoal-mid:  #4a464a;
    --gray:          #6b6268;
    --border:        rgba(213, 51, 103, 0.18);
    --white:         #ffffff;
    --bg:            #fdf0f5;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.6;
    font-size: 16px;
}

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

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(50, 47, 49, 0.1);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    color: var(--charcoal);
    font-size: 0.92rem;
    font-weight: 400;
    padding: 0.5rem 0.9rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink);
}

.nav-cta {
    display: inline-block;
    background: var(--pink);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s;
    margin-left: 0.5rem;
    box-shadow: 4px 4px 0 var(--charcoal);
}

.nav-cta:hover {
    background: var(--pink-dark);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--bg);
    min-height: calc(90vh - 76px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 4.2rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.08;
    margin-bottom: 1.75rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--pink);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* CTA Buttons */
.btn-cta {
    display: inline-block;
    background: var(--pink);
    color: var(--white);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 5px 5px 0 var(--charcoal);
}

.btn-cta:hover {
    background: var(--pink-dark);
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 var(--charcoal);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    transition: all 0.2s;
    margin-left: 1.25rem;
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
}

/* Hero visual — network SVG inside blob */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-blob {
    width: 460px;
    height: 460px;
    background: var(--pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-blob::before {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    opacity: 0.25;
}

.network-svg {
    width: 340px;
    height: 340px;
}

/* ============================================================
   SECTIONS — generic
   ============================================================ */
.section        { padding: 6rem 0; }
.section-inner  { max-width: 1300px; margin: 0 auto; padding: 0 3rem; }
.section-white  { background: var(--white); }
.section-tint   { background: var(--bg); }
.section-mid    { background: var(--pink-light); }
.section-dark   { background: var(--charcoal); color: var(--white); }

/* Labels */
.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 1rem;
    display: block;
}

.section-dark .section-label { color: #f5a8c0; }

/* Headings */
.section-heading {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.section-heading em {
    font-style: italic;
    color: var(--pink);
}

.section-dark .section-heading        { color: var(--white); }
.section-dark .section-heading em     { color: #f5a8c0; }

.section-subtext {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.section-dark .section-subtext { color: rgba(255,255,255,0.72); }

.centered { text-align: center; }
.centered .section-subtext { margin-left: auto; margin-right: auto; }
.centered .section-heading  { margin-left: auto; margin-right: auto; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    background: var(--charcoal);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 400px;
    height: 400px;
    background: var(--pink);
    border-radius: 50%;
    opacity: 0.1;
}

.page-header::before {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 350px;
    height: 350px;
    border: 2px solid var(--pink);
    border-radius: 50%;
    opacity: 0.12;
}

.page-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-header h1 em {
    font-style: italic;
    color: #f5a8c0;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.68);
    margin-top: 0.75rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* ============================================================
   RESEARCH CARDS
   ============================================================ */
.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.research-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-top: 4px solid var(--pink);
    transition: transform 0.2s, box-shadow 0.2s;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(213, 51, 103, 0.12);
}

.research-card-icon {
    margin-bottom: 1.25rem;
}

.research-card-icon .icon-tint {
    display: block;
    width: 42px;
    height: 42px;
    background-color: var(--pink);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

.research-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.research-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
}

.research-card .card-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pink);
}

.research-card .card-link:hover { text-decoration: underline; }

/* ============================================================
   TWO-COLUMN SPLIT
   ============================================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-blob {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    background: var(--pink-light);
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--pink);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Research figure in about section */
.about-fig-wrap {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-top: 4px solid var(--pink);
    box-shadow: 6px 6px 0 var(--pink-light), 0 16px 48px rgba(50, 47, 49, 0.1);
    background: var(--white);
}

.about-fig-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--white);
    overflow: hidden;
    display: block;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(213, 51, 103, 0.1);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--pink-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-card-img img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 1.5rem 1.75rem 2rem; }

.news-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.6rem;
    display: block;
}

.news-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.news-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
}

.news-date {
    font-size: 0.75rem;
    color: #b0a0a8;
    margin-top: 1rem;
    display: block;
}

/* Full news list (latest-news.html) */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ============================================================
   CTA SECTION (dark)
   ============================================================ */
.cta-section {
    text-align: center;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    left: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: var(--pink);
    border-radius: 50%;
    opacity: 0.08;
}

.cta-section::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    border: 2px solid var(--pink);
    border-radius: 50%;
    opacity: 0.12;
}

.cta-section .section-inner { position: relative; z-index: 1; }
.cta-section .section-subtext { margin: 0 auto 2.5rem; max-width: 520px; }
.cta-section .btn-cta { box-shadow: 5px 5px 0 rgba(255,255,255,0.2); }

/* ============================================================
   TEAM / MEMBERS
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.team-card {}

.team-card .photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--pink-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.team-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }

.team-card .name {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
}

.team-card .role {
    font-size: 0.82rem;
    color: var(--pink);
    font-weight: 500;
    margin-top: 0.2rem;
}

.team-card .affil {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

.pi-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
    padding: 3rem;
    background: var(--white);
    border-top: 4px solid var(--pink);
    margin-bottom: 4rem;
}

.pi-card .photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden;
}

.pi-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }

.pi-card .pi-name {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}

.pi-card .pi-title { font-size: 0.9rem; color: var(--pink); font-weight: 500; margin-bottom: 1.5rem; }

.pi-card .pi-bio { font-size: 0.95rem; color: var(--gray); line-height: 1.8; }

/* ── Academics grid ── */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.academic-card {
    background: var(--white);
    border-top: 4px solid var(--pink);
    transition: transform 0.2s, box-shadow 0.2s;
}

.academic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(213, 51, 103, 0.12);
}

.academic-card .photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden;
}

.academic-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }

.academic-card .academic-body { padding: 1.75rem 1.5rem 2rem; }

.academic-card .academic-name {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.academic-card .academic-position {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.academic-card .academic-dept {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 1rem;
}

.academic-card .academic-bio {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.academic-card .academic-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.25rem;
}

.academic-card .academic-links a {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.academic-card .academic-links a img {
    width: 22px;
    height: 22px;
    display: block;
    filter: brightness(0) saturate(100%) invert(13%) sepia(6%) saturate(541%) hue-rotate(278deg) brightness(96%) contrast(91%);
    opacity: 0.75;
    transition: filter 0.2s, opacity 0.2s;
}

.academic-card .academic-links a:hover img {
    filter: invert(27%) sepia(80%) saturate(1800%) hue-rotate(315deg) brightness(90%) contrast(95%);
    opacity: 1;
}

.pi-card .pi-links { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.pi-card .pi-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    border-bottom: 1.5px solid var(--pink);
    padding-bottom: 1px;
}

.pi-card .pi-links a:hover { color: var(--pink); }

/* Group divider */
.group-label {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pink-light);
}

/* ============================================================
   COLLABORATORS
   ============================================================ */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.collab-item {
    padding: 1.25rem 1rem 1.25rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.collab-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: color 0.2s;
}

.collab-name:hover { color: var(--pink); }

.collab-affil {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 300;
}

.collab-topic {
    font-size: 0.75rem;
    color: #b0a0a8;
    font-style: italic;
}

.collab-group-heading {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    margin: 3rem 0 1.25rem;
    display: block;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--white);
    padding: 2.5rem;
    border-left: 4px solid var(--pink);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(213, 51, 103, 0.1);
}

.project-card .project-status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.75rem;
    display: block;
}

.project-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
}

.project-card .project-team {
    font-size: 0.8rem;
    color: #b0a0a8;
    margin-top: 1rem;
}

/* ============================================================
   JOIN THE LAB
   ============================================================ */
.position-card {
    background: var(--white);
    padding: 2.25rem 2.5rem;
    border-top: 3px solid var(--pink);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.position-card:hover { transform: translateY(-2px); }

.position-card .position-type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.6rem;
    display: block;
}

.position-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.position-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* ============================================================
   PUBLICATIONS (for research page)
   ============================================================ */
.pub-year-group { margin-bottom: 3rem; }

.pub-year {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--charcoal);
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--pink-light);
    margin-bottom: 1rem;
}

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

.pub-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.pub-title-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.4;
    transition: color 0.2s;
}

.pub-title-link:hover { color: var(--pink); }

.pub-authors {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 300;
}

.pub-author-self { color: var(--pink); font-weight: 500; }

.pub-venue { font-size: 0.83rem; color: var(--gray); font-style: italic; }

.pub-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.pub-doi { font-size: 0.78rem; color: #b0a0a8; }

.pub-cite-count {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--pink);
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
}

/* ── Publications dynamic loader ── */
.pub-stats-bar {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-left: 4px solid var(--pink);
    margin-bottom: 0.5rem;
}

.pub-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pub-stat-value {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1;
}

.pub-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

.pub-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.pub-spinner {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--pink-light);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: pub-spin 0.7s linear infinite;
}

@keyframes pub-spin { to { transform: rotate(360deg); } }

.pub-error {
    padding: 2.5rem 0;
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

.pub-doi { font-size: 0.78rem; color: #b0a0a8; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.55);
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 300;
}

footer img { height: 38px; filter: brightness(0) invert(1); opacity: 0.65; }
footer a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
footer a:hover { color: #f5a8c0; }

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-social a { display: flex; align-items: center; }

.footer-social img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.2s;
}

.footer-social a:hover img { opacity: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }

.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2.5rem; }
.mt-lg { margin-top: 4rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .nav-container { padding: 0 2rem; }
    .hero h1 { font-size: 3.5rem; }
    .hero-inner { gap: 2.5rem; }
    .hero-blob { width: 380px; height: 380px; }
    .hero-blob::before { width: 460px; height: 460px; }
    .network-svg { width: 280px; height: 280px; }
    .research-cards { grid-template-columns: repeat(2, 1fr); }
    .academics-grid { grid-template-columns: repeat(2, 1fr); }
    .section-inner { padding: 0 2rem; }
    footer { padding: 2.5rem 2rem; }
    .section { padding: 5rem 0; }
    .pi-card { grid-template-columns: 200px 1fr; gap: 2.5rem; }
}

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 76px;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem 1.5rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(50, 47, 49, 0.12);
        z-index: 999;
    }

    .nav-menu.nav-open { display: flex; }
    .nav-link { padding: 0.75rem 0; border-bottom: 1px solid var(--border); width: 100%; }
    .nav-menu li:last-child .nav-link { border-bottom: none; }
    .nav-cta { margin: 1rem 0 0 0; box-shadow: 3px 3px 0 var(--charcoal); text-align: center; width: 100%; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .hero-visual { display: none; }
    .hero-desc { max-width: 100%; }

    .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .two-col.reverse { direction: ltr; }
    .col-blob { max-width: 280px; aspect-ratio: 1; }

    .research-cards { grid-template-columns: 1fr; }
    .academics-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-list-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: 1fr; }
    .collab-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .pi-card { grid-template-columns: 1fr; }
    .pi-card .photo { max-width: 200px; }

    .section { padding: 4rem 0; }
    .page-header h1 { font-size: 2.5rem; }
    .section-heading { font-size: 2.2rem; }

    footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-heading { font-size: 1.9rem; }
    .collab-grid { grid-template-columns: 1fr; }
    .news-list-grid { grid-template-columns: 1fr; }
    .btn-outline { margin-left: 0; margin-top: 0.75rem; display: block; text-align: center; }
}
