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

        :root {
            --navy: #0f172a;
            --slate: #334155;
            --muted: #64748b;
            --light: #f8fafc;
            --accent: #2563eb;
            --accent-dark: #1d4ed8;
            --white: #ffffff;
            --border: #e2e8f0;
            --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font);
            color: var(--slate);
            line-height: 1.7;
            background: var(--white);
        }

        /* --- Navigation --- */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
            z-index: 100;
            padding: 0 1.5rem;
        }

        .nav-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--navy);
            text-decoration: none;
            letter-spacing: -0.02em;
        }

        .logo span { color: var(--accent); }

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

        .nav-links a {
            color: var(--muted);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.2s;
        }

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

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .menu-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--navy);
            margin: 5px 0;
            transition: 0.3s;
        }

        /* --- Hero --- */
        .hero {
            padding: 10rem 1.5rem 6rem;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: clamp(2.2rem, 5vw, 3.2rem);
            font-weight: 700;
            color: var(--navy);
            line-height: 1.2;
            letter-spacing: -0.03em;
            margin-bottom: 1.5rem;
        }

        .hero p {
            font-size: 1.15rem;
            color: var(--muted);
            max-width: 600px;
            margin: 0 auto 2.5rem;
        }

        .btn {
            display: inline-block;
            padding: 0.85rem 2rem;
            background: var(--accent);
            color: var(--white);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: background 0.2s, transform 0.2s;
        }

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

        .btn-outline {
            background: transparent;
            color: var(--accent);
            border: 2px solid var(--accent);
            margin-left: 1rem;
        }

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

        /* --- Sections --- */
        section {
            padding: 5rem 1.5rem;
        }

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

        .section-label {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            margin-bottom: 0.75rem;
        }

        /* Section headings written without the class get the same treatment. Four sections
           added on 27 Aug used a bare h2 and were falling back to the browser default, which
           is why they read a size larger than the rest of the page. */
        .section-title,
        section > .container > h1,
        section > .container > h2 {
            font-size: clamp(1.6rem, 3vw, 2.2rem);
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .section-subtitle {
            color: var(--muted);
            font-size: 1.05rem;
            max-width: 600px;
            margin-bottom: 3rem;
        }

        /* --- Services --- */
        #services { background: var(--light); }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .service-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 2rem;
            transition: box-shadow 0.3s, transform 0.2s;
        }

        .service-card:hover {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            transform: translateY(-2px);
        }

        .service-icon {
            width: 48px;
            height: 48px;
            background: #eff6ff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            margin-bottom: 1.25rem;
        }

        .service-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--navy);
            margin-bottom: 0.75rem;
        }

        .service-card p {
            color: var(--muted);
            font-size: 0.92rem;
            line-height: 1.65;
        }

        /* --- About --- */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .about-text p {
            margin-bottom: 1.25rem;
            color: var(--slate);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .stat {
            background: var(--light);
            border-radius: 10px;
            padding: 1.5rem;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent);
            line-height: 1;
            margin-bottom: 0.35rem;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--muted);
            font-weight: 500;
        }

        /* --- Clients / Domains --- */
        #domains { background: var(--light); }

        .domain-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 2rem;
        }

        .domain-tag {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 0.5rem 1.25rem;
            font-size: 0.88rem;
            color: var(--slate);
            font-weight: 500;
        }

        /* --- Contact --- */
        #contact {
            background: var(--navy);
            color: var(--white);
        }

        #contact .section-label { color: #60a5fa; }
        #contact .section-title { color: var(--white); }
        #contact .section-subtitle { color: #94a3b8; }

        .contact-info {
            display: flex;
            flex-wrap: wrap;
            gap: 2.5rem;
            margin-top: 2rem;
        }

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

        .contact-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            font-weight: 600;
        }

        .contact-value {
            color: var(--white);
            text-decoration: none;
            font-size: 1rem;
        }

        .contact-value:hover { color: #60a5fa; }

        /* --- Footer --- */
        footer {
            background: #0c1322;
            text-align: center;
            padding: 2rem 1.5rem;
            color: #475569;
            font-size: 0.85rem;
        }

        /* --- Mobile --- */
        @media (max-width: 768px) {
            .menu-toggle { display: block; }

            .nav-links {
                display: none;
                position: absolute;
                top: 64px;
                left: 0;
                right: 0;
                background: var(--white);
                border-bottom: 1px solid var(--border);
                flex-direction: column;
                padding: 1rem 1.5rem;
                gap: 1rem;
            }

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

            .hero { padding: 8rem 1.5rem 4rem; }

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

            .btn-outline { margin-left: 0; margin-top: 0.75rem; }
        }
    
    /* --- added 27 Aug 2026: software, research, publications, apps --- */
    .sec-alt { background: var(--light); }
    .lede { max-width: 62ch; color: var(--muted); margin-bottom: 2.5rem; }
    .soft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
    .soft { background: var(--white); border: 1px solid var(--border); border-radius: 10px;
            padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
    .soft h3 { font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: .6rem; }
    .soft p { font-size: .93rem; color: var(--muted); flex: 1; }
    .soft .links { display: flex; gap: .9rem; font-size: .88rem; font-weight: 500; flex-wrap: wrap; }
    .tag { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
           padding: .18rem .5rem; border-radius: 999px; background: #eef2ff; color: var(--accent-dark); }
    .tag.live { background: #ecfdf5; color: #047857; }
    .tag.soon { background: #fff7ed; color: #b45309; }
    .res { border-left: 3px solid var(--border); padding: .1rem 0 .1rem 1.4rem; margin-bottom: 2rem;
           max-width: 68ch; }
    .res h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .4rem; }
    .res p { font-size: .95rem; color: var(--muted); }
    ul.pubs { list-style: none; }
    ul.pubs li { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 1rem; align-items: baseline;
                 padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
    .pub-y { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
    .pub-t { color: var(--navy); font-weight: 500; display: block; }
    .pub-j { color: var(--muted); font-style: italic; }
    .pub-m { color: var(--muted); }
    ul.pubs a { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
    .profiles { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .92rem; align-items: center; }
    .profiles a { display: inline-flex; align-items: center; gap: .45rem; }
    @media (max-width: 640px) { ul.pubs li { grid-template-columns: 3rem 1fr; } ul.pubs a { grid-column: 2; } }

    footer .profile-row { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
                          margin-bottom: 1rem; }
    footer .profile-row a { display: inline-flex; align-items: center; gap: .45rem; }
    .oid { width: 1em; height: 1em; vertical-align: -.13em; flex: none; }
    .orcid-id { font-variant-numeric: tabular-nums; }

        /* Skip link: off-screen until focused, so keyboard and screen-reader users
           can jump past the navigation without it showing for anyone else. */
        .skip { position: absolute; left: -9999px; top: 0; z-index: 100;
                background: var(--navy); color: #fff; padding: .75rem 1.25rem;
                text-decoration: none; border-radius: 0 0 4px 0; }
        .skip:focus { left: 0; }
