:root {
    --bg: #0f1221;
    --bg-alt: #15192c;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.04);
    --accent: #6366f1;
    --accent-strong: #4f46e5;
    --shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --max-width: 1140px;
    --noise: linear-gradient(90deg, rgba(255,255,255,0.02) 0.5px, transparent 0.5px), linear-gradient(180deg, rgba(255,255,255,0.02) 0.5px, transparent 0.5px);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --card: #ffffff;
    --accent: #4f46e5;
    --accent-strong: #4338ca;
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(120% 120% at 20% 20%, rgba(99, 102, 241, 0.18), transparent 55%),
        radial-gradient(100% 100% at 85% 10%, rgba(99, 102, 241, 0.12), transparent 45%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 18px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 1px, transparent 1px, transparent 22px),
        var(--noise);
    background-size: auto, auto, 260px 260px, 260px 260px, 160px 160px;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.65;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: none;
    overflow-x: hidden;
}

body[data-theme="light"] {
    background: var(--bg);
    background-image:
        radial-gradient(120% 120% at 20% 20%, rgba(79, 70, 229, 0.12), transparent 55%),
        radial-gradient(100% 100% at 85% 10%, rgba(79, 70, 229, 0.08), transparent 45%),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px, transparent 1px, transparent 18px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.035), rgba(0,0,0,0.035) 1px, transparent 1px, transparent 22px),
        var(--noise);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main {
    padding-top: 96px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 18, 33, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .site-header {
    background: rgba(248, 250, 252, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 16px;
}

.brand {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: #7c3aed;
    transform: rotate(-5deg);
    display: inline-block;
    transform-origin: center center;
}

.nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.nav[aria-expanded="true"] {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style: none;
    position: absolute;
    right: 20px;
    top: 90px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    display: grid;
    gap: 6px;
    min-width: 220px;
}

@media (min-width: 960px) {
    .nav {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
    }

    .nav-list {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex;
        gap: 18px;
        padding: 0;
        align-items: center;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
}

.nav-toggle,
.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    padding: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover,
.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 999px;
}

.nav-toggle {
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.hero {
    padding: 96px 0 48px;
}

.hero-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.hero-profile {
    display: flex;
    justify-content: flex-end;
}

.hero-text h1 {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    margin-bottom: 10px;
    color: var(--text);
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 10px;
}

.lede {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 720px;
}

.hero-text .lede + .lede {
    margin-top: 8px;
}

.snapshot {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}

.snapshot-inner .card {
    background: rgba(255, 255, 255, 0.04);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--accent);
    color: #f8fafc;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.button.ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.button.ghost:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
}

.hero-meta {
    display: grid;
    gap: 16px;
}

.profile-card,
.focus-card,
.content-card,
.card,
.timeline-card,
.cta-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.profile-card {
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 14px;
}

.profile-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.08);
}

.profile-lines {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.focus-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.focus-card .card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.14);
}

.focus-list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.98rem;
}

.section {
    padding: 72px 0;
}

.section-header {
    margin-bottom: 28px;
}

.title-wrap {
    display: grid;
    gap: 4px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin: 0;
}

.subhead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 720px;
}

.narrow {
    max-width: 880px;
}

.about-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.6fr 1fr;
        align-items: start;
    }
}

.about-aside {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: fit-content;
}

.about-aside h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.content-card {
    display: grid;
    gap: 14px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

@media (min-width: 720px) {
    .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
    display: grid;
    gap: 12px;
    color: var(--muted);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
}

.card h3 {
    color: var(--text);
    font-size: 1.1rem;
}

.card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-circle.accent {
    background: rgba(251, 191, 36, 0.14);
    color: #f59e0b;
}

.list {
    padding-left: 16px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.cta-card {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    border-color: rgba(99, 102, 241, 0.35);
}

.cta-title {
    font-weight: 700;
    color: var(--text);
}

.cta-text {
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-card {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .timeline-card {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

.timeline-meta {
    display: grid;
    gap: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    width: fit-content;
}

.company {
    color: var(--text);
    font-weight: 600;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn[aria-pressed="true"],
.filter-btn:hover {
    background: rgba(99, 102, 241, 0.14);
    color: var(--accent);
    border-color: rgba(99, 102, 241, 0.4);
}

.publication {
    position: relative;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    color: var(--accent);
    font-weight: 700;
    width: fit-content;
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.tags span {
    padding: 6px 10px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.award {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.contact-card p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card i {
    color: var(--accent);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 32px;
    text-align: center;
    color: var(--muted);
    background: var(--bg-alt);
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-top[hidden] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

.back-to-top:hover {
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .hero {
        padding-top: 56px;
    }

    .nav-list {
        width: calc(100% - 40px);
        left: 20px;
    }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, background-color 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(99, 102, 241, 0.2);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    animation: trail 1s ease-out forwards;
    background: var(--accent);
}

.cursor-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9994;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particles span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
    animation: float linear infinite;
}

/* Keyframe Animations */
@keyframes trail {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.8); }
}

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

@media (prefers-reduced-motion: reduce) {
    body {
        cursor: auto;
    }

    .cursor, .cursor-dot, .particle {
        display: none !important;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor, .cursor-dot {
        display: none;
    }
}
