/* CSS Variables for USC Cardinal and Gold */
        :root {
            --usc-cardinal: #990000;
            --usc-cardinal-dark: #6d0000;
            --usc-gold: #FFCC00;
            --usc-gold-dark: #d4a900;
            --text-primary: #1a1a2e;
            --text-secondary: #4a4a6a;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --accent-blue: #2563eb;
            --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.7;
            color: var(--text-primary);
            background: var(--bg-white);
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            z-index: 1000;
            transition: var(--transition-smooth);
        }

        .navbar.scrolled {
            background: var(--usc-cardinal);
        }

        .navbar.scrolled .nav-links a {
            color: white;
        }

        .navbar.scrolled .nav-logo {
            color: white;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-logo {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--usc-cardinal);
            text-decoration: none;
            transition: var(--transition-smooth);
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition-smooth);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--usc-gold);
            transition: var(--transition-smooth);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, var(--usc-cardinal) 0%, var(--usc-cardinal-dark) 100%);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            animation: subtleMove 20s ease-in-out infinite;
        }

        @keyframes subtleMove {
            0%, 100% { transform: translateX(0) translateY(0); }
            50% { transform: translateX(-20px) translateY(-20px); }
        }

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

        .hero-text {
            color: white;
        }

        .hero-text h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            animation: fadeInUp 1s ease-out;
        }

        .hero-text .title {
            font-size: 1.3rem;
            color: var(--usc-gold);
            margin-bottom: 1.5rem;
            line-height: 1.45;
            animation: fadeInUp 1s ease-out 0.2s both;
        }

        /* Second appointment line: same colour, slightly lighter, so the
           directorship reads as the primary title. */
        .hero-text .title .title-secondary {
            display: block;
            font-size: 1.08rem;
            opacity: 0.82;
            margin-top: 0.25rem;
        }

        .hero-text .tagline {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease-out 0.4s both;
        }
        @keyframes blink {
            0%, 50% { border-color: var(--usc-gold); }
            51%, 100% { border-color: transparent; }
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            animation: fadeInUp 1s ease-out 0.6s both;
        }

        .btn {
            padding: 0.8rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition-smooth);
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--usc-gold);
            color: var(--usc-cardinal-dark);
        }

        .btn-primary:hover {
            background: var(--usc-gold-dark);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        .btn-secondary:hover {
            background: white;
            color: var(--usc-cardinal);
        }

        .hero-image {
            display: flex;
            justify-content: center;
            animation: fadeIn 1.5s ease-out;
        }

        .profile-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
            text-align: center;
            transform: rotate(3deg);
            transition: var(--transition-smooth);
        }

        .profile-card:hover {
            transform: rotate(0deg) scale(1.02);
        }

        .profile-placeholder {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--usc-cardinal), var(--usc-gold));
            margin: 0 auto 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: white;
            font-weight: bold;
        }

        .profile-photo {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 1.5rem;
            border: 4px solid var(--usc-gold);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .profile-card h3 {
            color: var(--usc-cardinal);
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .profile-card p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .profile-stats {
            display: flex;
            justify-content: space-between;
            gap: 0.5rem;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #eee;
        }

        .stat {
            text-align: center;
            flex: 1 1 0;
            min-width: 0;
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--usc-cardinal);
        }

        .stat-label {
            font-size: 0.72rem;
            line-height: 1.3;
            color: var(--text-secondary);
            hyphens: auto;
        }

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

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Sections */
        section {
            padding: 5rem 2rem;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            color: var(--usc-cardinal);
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--usc-gold);
            border-radius: 2px;
        }

        .section-header p {
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* About Section */
        #about {
            background: var(--bg-light);
        }

        .about-content {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 3rem;
            align-items: start;
        }

        .about-text p {
            margin-bottom: 1.5rem;
            text-align: justify;
        }

        .about-sidebar {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .about-sidebar h3 {
            color: var(--usc-cardinal);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

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

        .credentials-list li {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

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

        .credential-icon {
            width: 30px;
            height: 30px;
            background: var(--usc-gold);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }

        /* Research Areas */
        #research {
            background: white;
        }

        .research-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .research-card {
            background: var(--bg-light);
            padding: 2rem;
            border-radius: 15px;
            transition: var(--transition-smooth);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .research-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--usc-cardinal);
            transition: var(--transition-smooth);
        }

        .research-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .research-card:hover::before {
            width: 100%;
            opacity: 0.1;
        }

        .research-card h3 {
            color: var(--usc-cardinal);
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .research-card p {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .research-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        /* Publications */
        #publications {
            background: var(--bg-light);
        }

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

        .pub-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.5rem 1.5rem;
            border: 2px solid var(--usc-cardinal);
            background: transparent;
            color: var(--usc-cardinal);
            border-radius: 25px;
            cursor: pointer;
            transition: var(--transition-smooth);
            font-weight: 500;
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--usc-cardinal);
            color: white;
        }

        .publication-item {
            background: white;
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: var(--transition-smooth);
            border-left: 4px solid var(--usc-cardinal);
        }

        .publication-item:hover {
            transform: translateX(10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .pub-title {
            color: var(--text-primary);
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 1.05rem;
        }

        .pub-authors {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }

        .pub-journal {
            color: var(--usc-cardinal);
            font-style: italic;
            font-size: 0.9rem;
        }

        .pub-year {
            display: inline-block;
            background: var(--usc-gold);
            color: var(--usc-cardinal-dark);
            padding: 0.2rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }

        .pub-tags {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
            flex-wrap: wrap;
        }

        .pub-tag {
            font-size: 0.75rem;
            padding: 0.2rem 0.6rem;
            background: #e9ecef;
            border-radius: 10px;
            color: var(--text-secondary);
        }

        /* Gehr Center Section */
        #gehr-center {
            background: linear-gradient(135deg, var(--usc-cardinal) 0%, var(--usc-cardinal-dark) 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        #gehr-center .section-header h2 {
            color: white;
        }

        #gehr-center .section-header h2::after {
            background: var(--usc-gold);
        }

        #gehr-center .section-header p {
            color: rgba(255,255,255,0.8);
        }

        .gehr-content {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .gehr-mission {
            font-size: 1.3rem;
            margin-bottom: 3rem;
            opacity: 0.95;
        }

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

        .gehr-feature {
            background: rgba(255,255,255,0.1);
            padding: 2rem;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            transition: var(--transition-smooth);
        }

        .gehr-feature:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-5px);
        }

        .gehr-feature h3 {
            color: var(--usc-gold);
            margin-bottom: 1rem;
        }

        /* Contact Section */
        #contact {
            background: white;
        }

        .contact-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-top: 2rem;
        }

        .contact-card {
            background: var(--bg-light);
            padding: 2rem;
            border-radius: 15px;
            transition: var(--transition-smooth);
        }

        .contact-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        .contact-card h3 {
            color: var(--usc-cardinal);
            margin-bottom: 1rem;
        }

        .contact-card a {
            color: var(--accent-blue);
            text-decoration: none;
            transition: var(--transition-smooth);
        }

        .contact-card a:hover {
            color: var(--usc-cardinal);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .social-link {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--usc-cardinal);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: var(--transition-smooth);
            font-weight: bold;
        }

        .social-link:hover {
            background: var(--usc-gold);
            color: var(--usc-cardinal);
            transform: scale(1.1);
        }

        /* Footer */
        footer {
            background: var(--text-primary);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
        }

        footer p {
            opacity: 0.7;
            font-size: 0.9rem;
        }

        .footer-links {
            margin-top: 1rem;
        }

        .footer-links a {
            color: var(--usc-gold);
            text-decoration: none;
            margin: 0 1rem;
            transition: var(--transition-smooth);
        }

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

        /* Easter Egg Elements */
        .easter-egg-trigger {
            cursor: default;
        }

        .konami-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: var(--usc-gold);
            color: var(--usc-cardinal-dark);
            padding: 3rem;
            border-radius: 20px;
            text-align: center;
            z-index: 9999;
            box-shadow: 0 30px 60px rgba(0,0,0,0.4);
            transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .konami-message.show {
            transform: translate(-50%, -50%) scale(1);
        }

        .konami-message h2 {
            margin-bottom: 1rem;
        }

        .hidden-section {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out;
        }

        .hidden-section.revealed {
            max-height: 500px;
        }
        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
        }

        .mobile-menu-btn span {
            width: 25px;
            height: 3px;
            background: var(--usc-cardinal);
            transition: var(--transition-smooth);
        }

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

            .hero-text h1 {
                font-size: 2.5rem;
            }

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

            .profile-card {
                transform: none;
            }

            .about-content {
                grid-template-columns: 1fr;
            }

            .gehr-features {
                grid-template-columns: 1fr;
            }

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

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu-btn {
                display: flex;
            }

            .hero {
                padding-top: 80px;
            }

            .hero-text h1 {
                font-size: 2rem;
            }

            section {
                padding: 3rem 1rem;
            }
        }

        /* Scroll reveal animations */
        /* Reveal-on-scroll. The hidden start state applies only when JS is
           available (html.js), so no-JS clients and crawlers see all content. */
        .js .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .js .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @media (prefers-reduced-motion: reduce) {
            .js .reveal {
                opacity: 1;
                transform: none;
                transition: none;
            }
        }
        /* CV Download button hover */
        .cv-download-btn:hover {
            background: var(--usc-cardinal-dark) !important;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        /* Click ripple effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 204, 0, 0.4);
            transform: scale(0);
            animation: ripple-animation 0.6s linear;
            pointer-events: none;
        }

        @keyframes ripple-animation {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

/* ============================================================
   Additions — 2026 refresh
   FAQ, writing/explainer cards, article pages, publication status
   ============================================================ */

/* Publication status badge (in press / under review) */
.pub-status {
    display: inline-block;
    background: var(--usc-gold);
    color: var(--usc-cardinal-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.publication-item.featured {
    border-left: 4px solid var(--usc-gold);
    background: linear-gradient(to right, rgba(255, 204, 0, 0.07), transparent 40%);
}

/* FAQ */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e4e4ef;
    padding: 1.5rem 0;
}

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

.faq-item h3 {
    color: var(--usc-cardinal);
    font-size: 1.12rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

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

.faq-item a {
    color: var(--usc-cardinal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Writing / explainers */
.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.writing-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid #e4e4ef;
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.writing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-color: var(--usc-gold);
}

.writing-card .writing-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--usc-cardinal);
    display: block;
    margin-bottom: 0.6rem;
}

.writing-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.writing-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Article (explainer) pages */
.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
}

.article-wrap .article-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--usc-cardinal);
    display: block;
    margin-bottom: 0.75rem;
}

.article-wrap h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e4e4ef;
}

.article-body h2 {
    font-size: 1.45rem;
    color: var(--usc-cardinal);
    margin: 2.5rem 0 0.9rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.12rem;
    color: var(--text-primary);
    margin: 1.75rem 0 0.6rem;
}

.article-body p {
    margin-bottom: 1.15rem;
    color: #333349;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.15rem 1.4rem;
    color: #333349;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body a {
    color: var(--usc-cardinal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body strong { color: var(--text-primary); }

.article-callout {
    background: var(--bg-light);
    border-left: 4px solid var(--usc-gold);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.article-callout p { margin-bottom: 0.6rem; }
.article-callout p:last-child { margin-bottom: 0; }

.article-sources {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e4e4ef;
}

.article-sources h2 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0.9rem;
}

.article-sources ol {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 1.2rem;
}

.article-back {
    display: inline-block;
    margin-top: 2.5rem;
    color: var(--usc-cardinal);
    font-weight: 600;
    text-decoration: none;
}

.article-back:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .article-wrap { padding-top: 6rem; }
}

/* Nav collapses earlier: six items plus the wordmark crowd below ~900px */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-links li { width: 100%; }

    .nav-links li a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .nav-links.active { display: flex; }

    .mobile-menu-btn { display: flex; }
}
