/* ============================================
   Maciocia Lab — Editorial Academic Design
   Inspired by noborilab.org aesthetic
   ============================================ */

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

:root {
    --color-bg: #FAFAF7;
    --color-bg-soft: #F2F0EB;
    --color-text: #1C1E22;
    --color-text-70: rgba(28, 30, 34, 0.7);
    --color-text-40: rgba(28, 30, 34, 0.4);
    --color-text-25: rgba(28, 30, 34, 0.25);
    --color-navy: #2E3A5C;
    --color-navy-light: rgba(46, 58, 92, 0.05);
    --color-accent: #4A7C7C;
    --color-accent-light: #5A9A9A;
    --color-coral: #C85A3A;
    --color-border: #E4E2DC;
    --color-white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Karla', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
    --max-width: 1200px;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

::selection {
    background: rgba(74, 124, 124, 0.15);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Section Labels (Typewriter style) --- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-40);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::after {
    content: '';
    height: 1px;
    width: 48px;
    background: var(--color-border);
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-title em {
    font-style: italic;
    font-weight: 400;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-navy));
    opacity: 0.5;
    z-index: 1001;
    width: 0%;
    transition: width 0.1s linear;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 42px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: 0.02em;
}

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

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-70);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-navy);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

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

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: grayscale(40%);
}

/* Clean hero — solid background, no image */
.hero-clean {
    background: var(--color-navy);
}

.hero-clean .hero-bg {
    background: radial-gradient(ellipse at 30% 50%, rgba(74, 124, 124, 0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 80%, rgba(74, 124, 124, 0.1) 0%, transparent 60%);
}

.hero-clean .hero-content {
    color: var(--color-bg);
}

.hero-clean .hero h1 {
    color: var(--color-bg);
}

.hero-clean .hero-tagline {
    color: rgba(250, 250, 247, 0.85);
}

.hero-clean .hero-institution {
    color: rgba(250, 250, 247, 0.55);
}

.hero-clean .hero-scroll {
    color: rgba(250, 250, 247, 0.4);
}

.hero-clean .hero-scroll-icon {
    border-color: rgba(250, 250, 247, 0.25);
}

.hero-clean .hero-scroll-icon::after {
    background: rgba(250, 250, 247, 0.4);
}

.hero-clean .btn-primary {
    background: var(--color-bg);
    color: var(--color-navy);
}

.hero-clean .btn-primary:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

.hero-clean .btn-outline {
    border-color: rgba(250, 250, 247, 0.4);
    color: var(--color-bg);
}

.hero-clean .btn-outline:hover {
    background: rgba(250, 250, 247, 0.08);
    border-color: rgba(250, 250, 247, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    width: 600px !important;
    max-width: 85vw;
    height: auto !important;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-70);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-institution {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-40);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s ease 1.3s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.8s forwards;
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-25);
}

.hero-scroll-icon {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--color-text-25);
    border-radius: 10px;
    position: relative;
}

.hero-scroll-icon::after {
    content: '';
    width: 3px;
    height: 6px;
    background: var(--color-text-25);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-70);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
    transform: translateY(-1px);
}

.btn-text {
    color: var(--color-navy);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease-out;
}

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

.btn-text:hover::after {
    width: 100%;
}

/* --- Pillars --- */
.pillars {
    padding: 7rem 0;
    background: var(--color-bg-soft);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pillar {
    padding: 2.5rem 2rem;
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-25);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pillar p {
    color: var(--color-text-70);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- About --- */
.about {
    padding: 7rem 0;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: top;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: -1rem;
    bottom: -1rem;
    border: 1px solid var(--color-border);
    z-index: -1;
}

.about-text .section-label {
    margin-bottom: 1rem;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-text p {
    color: var(--color-text-70);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.85;
}

.about-text .btn-text {
    margin-top: 1.5rem;
    display: inline-block;
}

/* --- Research Highlights --- */
.research-highlights {
    padding: 7rem 0;
    background: var(--color-bg-soft);
}

.research-highlights .section-label,
.research-highlights .section-title {
    text-align: center;
}

.research-highlights .section-label {
    justify-content: center;
}

.research-highlights .section-label::after {
    display: none;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

.research-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
}

.research-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(28, 30, 34, 0.06);
    color: var(--color-text);
}

.research-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.research-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.research-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.research-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.research-card-content p {
    font-size: 0.88rem;
    color: var(--color-text-70);
    line-height: 1.7;
}

/* --- Publications Home --- */
.publications-home {
    padding: 7rem 0;
    background: var(--color-bg);
}

.publications-home .section-label,
.publications-home .section-title {
    text-align: center;
}

.publications-home .section-label {
    justify-content: center;
}

.publications-home .section-label::after {
    display: none;
}

.pub-list {
    max-width: 800px;
    margin: 3rem auto 2rem;
}

.pub-item {
    display: flex;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.pub-item:first-child {
    border-top: 1px solid var(--color-border);
}

.pub-item:hover {
    padding-left: 0.5rem;
}

.pub-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 55px;
    padding-top: 0.15rem;
}

.pub-details h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.pub-authors {
    font-size: 0.82rem;
    color: var(--color-text-40);
    margin-bottom: 0.2rem;
    line-height: 1.5;
}

.pub-journal {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-accent);
}

.publications-home .btn-text {
    display: block;
    text-align: center;
    margin-top: 2.5rem;
}

/* --- Funders --- */
.funders {
    padding: 5rem 0;
    background: var(--color-bg-soft);
}

.funders .section-label {
    text-align: center;
    justify-content: center;
}

.funders .section-label::after {
    display: none;
}

.funders-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.funders-grid img {
    height: 55px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.funders-grid img:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}

/* --- Footer --- */
.footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer h4 {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.25rem;
}

.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.footer-social a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Inner Page Styles
   ============================================ */

/* --- Page Header --- */
.page-header {
    padding: 10rem 0 4rem;
    background: var(--color-bg);
    text-align: center;
    margin-top: 0;
}

.page-header .section-label {
    justify-content: center;
}

.page-header .section-label::after {
    display: none;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.page-header p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-40);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Research Page --- */
.research-section {
    padding: 5rem 0;
}

.research-section:nth-child(odd) {
    background: var(--color-bg);
}

.research-section:nth-child(even) {
    background: var(--color-bg-soft);
}

.research-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.research-block.reverse {
    direction: rtl;
}

.research-block.reverse > * {
    direction: ltr;
}

.research-block-text .section-label {
    margin-bottom: 0.75rem;
}

.research-block-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.research-block-text p {
    color: var(--color-text-70);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.85;
}

.research-block-text ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.research-block-text li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-text-70);
    padding-left: 1.25rem;
    position: relative;
}

.research-block-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Full-width research block (no image) */
.research-block-full {
    max-width: 780px;
    margin: 0 auto;
}

.research-block-full h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.research-block-full-content p,
.research-block-full-content ul {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.research-block-full-content ul {
    list-style: none;
    padding: 0;
}

.research-block-full-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-block-full-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

.research-section-wide {
    background: var(--color-bg-soft);
}

.research-block-image {
    position: relative;
}

.research-block-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: var(--color-bg-soft);
}

.research-block-image::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: -1rem;
    bottom: -1rem;
    border: 1px solid var(--color-border);
    z-index: -1;
}

/* --- Team Page --- */
.team-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.team-category {
    margin-bottom: 4rem;
}

.team-category .section-label {
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(28, 30, 34, 0.06);
}

.team-card-photo {
    height: 320px;
    background: var(--color-bg-soft);
    overflow: hidden;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.03);
}

.team-card-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text-25);
}

.team-card-info {
    padding: 1.5rem;
}

.team-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.3rem;
}

.team-card-info .team-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.team-card-info p {
    font-size: 0.88rem;
    color: var(--color-text-70);
    line-height: 1.7;
}

/* --- PI Card --- */
.team-pi {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
}

.team-pi-photo {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.team-pi-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-pi-info h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.team-pi-info .team-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.team-pi-info p {
    color: var(--color-text-70);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.85;
}

/* --- Publications Page --- */
.publications-section {
    padding: 4rem 0 6rem;
    background: var(--color-bg);
}

.pub-year-group {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pub-year-heading {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.pub-full-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(228, 226, 220, 0.5);
    transition: padding-left 0.2s ease;
}

.pub-full-item:hover {
    padding-left: 0.5rem;
}

.pub-full-item:last-child {
    border-bottom: none;
}

.pub-full-item h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.pub-full-item .pub-authors {
    font-size: 0.82rem;
    color: var(--color-text-40);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.pub-full-item .pub-journal {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-accent);
}

.pub-links {
    text-align: center;
}

.pub-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-70);
    transition: all 0.3s;
}

.pub-links a:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

/* --- PPI Page --- */
.ppi-section {
    padding: 5rem 0;
}

.ppi-section:nth-child(odd) {
    background: var(--color-bg);
}

.ppi-section:nth-child(even) {
    background: var(--color-bg-soft);
}

.ppi-content {
    max-width: 750px;
    margin: 0 auto;
}

.ppi-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.ppi-content p {
    color: var(--color-text-70);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.85;
}

.ppi-content ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.ppi-content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    font-size: 0.95rem;
    color: var(--color-text-70);
    padding-left: 1.25rem;
    position: relative;
}

.ppi-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

.ppi-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ppi-value {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.ppi-value:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.ppi-value h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.ppi-value p {
    font-size: 0.88rem;
    color: var(--color-text-70);
    line-height: 1.7;
}

/* --- Contact Page --- */
.contact-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 2.5rem;
}

.contact-item {
    margin-bottom: 2.5rem;
}

.contact-item h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-40);
    margin-bottom: 0.75rem;
}

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

.contact-item a {
    color: var(--color-navy);
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease-out;
}

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

.contact-item a:hover::after {
    width: 100%;
}

.contact-map {
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    border: 1px solid var(--color-border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(40%);
    transition: filter 0.5s;
}

.contact-map:hover iframe {
    filter: grayscale(0%);
}

/* --- Clinical Trials --- */
.trials-section {
    padding: 5rem 0;
    background: var(--color-navy);
    color: white;
}

.trials-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.trials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.trial-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.trial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.trial-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.trial-card a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.trial-card a:hover {
    color: white;
}

.trial-card-detail {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: left;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.trial-card-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 160px;
    min-height: 100px;
}

.trial-card-logo-text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
}

.trial-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.trial-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.trial-title {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.trial-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
}

.trial-desc em {
    color: rgba(255, 255, 255, 0.8);
}

.trial-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.25rem;
}

.trial-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.trial-links a:first-child {
    color: var(--color-accent-light);
}

@media (max-width: 640px) {
    .trial-card-detail {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .trial-card-logo {
        width: auto;
        min-height: auto;
    }

    .trial-card-body h3 {
        font-size: 1.4rem;
    }

    .trial-links {
        justify-content: center;
    }
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .about-grid,
    .research-block,
    .team-pi,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image::after,
    .research-block-image::after {
        display: none;
    }

    .research-block.reverse {
        direction: ltr;
    }

    .team-pi {
        text-align: center;
        padding: 2rem;
    }

    .team-pi-photo {
        margin: 0 auto;
        max-width: 300px;
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ppi-values {
        grid-template-columns: 1fr;
    }

    .trials-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--color-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--color-border);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-scroll {
        display: none;
    }

    .research-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .research-card-image {
        height: 180px;
    }

    .pub-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .pub-year {
        width: auto;
    }

    .funders-grid {
        gap: 2.5rem;
    }

    .funders-grid img {
        height: 40px;
    }

    .page-header {
        padding: 7rem 0 3rem;
    }

    .about-image img {
        height: 350px;
    }

    .research-block-image img {
        height: 280px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
