/* ═══════════════════════════════════════════════════
   CSS VARIABLES & THEME
   ═══════════════════════════════════════════════════ */
:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Dark theme (default) */
    --bg-primary: #080b1a;
    --bg-secondary: #0d1129;
    --bg-card: #111638;
    --bg-card-hover: #161d48;
    --bg-nav: rgba(8, 11, 26, 0.85);
    --text-primary: #e8e4dc;
    --text-secondary: #9a96a6;
    --text-muted: #7a7689;
    --accent-gold: #c9a84c;
    --accent-gold-dim: rgba(201, 168, 76, 0.15);
    --accent-coral: #d4735a;
    --accent-indigo: #4a5fe0;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(201, 168, 76, 0.3);
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(74, 95, 224, 0.08);
    --grain-opacity: 0.03;
    --wave-color-1: rgba(74, 95, 224, 0.12);
    --wave-color-2: rgba(201, 168, 76, 0.08);
    --tag-bg: rgba(201, 168, 76, 0.1);
    --tag-border: rgba(201, 168, 76, 0.25);
    --tag-text: #c9a84c;
    --timeline-line: rgba(201, 168, 76, 0.2);
    --timeline-dot: #c9a84c;
}

[data-theme="light"] {
    --bg-primary: #f6f3ed;
    --bg-secondary: #efe9df;
    --bg-card: #ffffff;
    --bg-card-hover: #faf7f2;
    --bg-nav: rgba(246, 243, 237, 0.9);
    --text-primary: #1a1530;
    --text-secondary: #5a5570;
    --text-muted: #6b6780;
    --accent-gold: #a07d2e;
    --accent-gold-dim: rgba(160, 125, 46, 0.1);
    --accent-coral: #c05a42;
    --accent-indigo: #3a4cc0;
    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-accent: rgba(160, 125, 46, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(58, 76, 192, 0.05);
    --grain-opacity: 0.015;
    --wave-color-1: rgba(58, 76, 192, 0.06);
    --wave-color-2: rgba(160, 125, 46, 0.04);
    --tag-bg: rgba(160, 125, 46, 0.08);
    --tag-border: rgba(160, 125, 46, 0.2);
    --tag-text: #8a6820;
    --timeline-line: rgba(160, 125, 46, 0.25);
    --timeline-dot: #a07d2e;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.4s ease;
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

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

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

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.visible { transform: translateY(0); }

/* Publications page: nav always visible */
body.subpage .nav { transform: translateY(0); }

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

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-brand a { color: inherit; }
.nav-brand a:hover { color: var(--text-primary); }
.nav-brand span { color: var(--accent-gold); }

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 2px;
}

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

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

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

.lang-toggle {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 0 0.7rem;
    height: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-bg canvas {
    width: 100%;
    height: 100%;
}

.hero-geo {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-geo-1 {
    width: 600px;
    height: 600px;
    background: var(--wave-color-1);
    top: -200px;
    right: -100px;
}

.hero-geo-2 {
    width: 400px;
    height: 400px;
    background: var(--wave-color-2);
    bottom: -100px;
    left: -100px;
}

.hero-geo-3 {
    width: 200px;
    height: 200px;
    background: rgba(212, 115, 90, 0.06);
    top: 40%;
    left: 30%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 80px;
    width: 100%;
}

.hero-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-name-container { flex: 1; }

.hero-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 0 8px var(--bg-primary), 0 0 60px var(--accent-gold-dim);
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

.hero-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 8px var(--bg-primary), 0 0 80px var(--accent-gold-dim);
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-name em {
    font-style: italic;
    color: var(--accent-gold);
}

.hero-title {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-title strong {
    font-weight: 500;
    color: var(--text-primary);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 1s;
    list-style: none;
    padding: 0;
}

.hero-tag {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border: 1px solid var(--tag-border);
    border-radius: 100px;
    color: var(--tag-text);
    background: var(--tag-bg);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-tag:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
}

.btn-primary svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════
   SECTIONS: SHARED
   ═══════════════════════════════════════════════════ */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header { margin-bottom: 3.5rem; }

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    max-width: 1200px;
    margin: 0 auto;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* ═══════════════════════════════════════════════════
   EDUCATION / TIMELINE
   ═══════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--timeline-line);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--timeline-dot);
    background: var(--bg-primary);
    z-index: 1;
    transition: background 0.3s ease;
}

.timeline-item:hover::before { background: var(--timeline-dot); }

.timeline-period {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.timeline-degree {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-institution {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════
   CARDS (research groups, projects)
   ═══════════════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card,
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.card:hover,
.project-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

a.project-card:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-indigo));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before { opacity: 1; }

.card-role {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--accent-gold);
}

.card-icon svg { width: 22px; height: 22px; }

.project-card:hover { border-color: var(--border-accent); }

.project-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.project-stat svg { width: 14px; height: 14px; }

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
    padding-top: 0.5rem;
}

.project-card:hover .project-link { gap: 0.8rem; color: var(--accent-coral); }
.project-link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════════ */
.pub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pub-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: padding-left 0.3s ease;
}

.pub-item:hover { padding-left: 0.5rem; }
.pub-item:first-child { border-top: 1px solid var(--border-subtle); }

.pub-item-link {
    display: contents;
    color: var(--text-primary);
    text-decoration: none;
}

.pub-item-link:hover .pub-title-text { color: var(--accent-gold); }
.pub-item:has(.pub-item-link:focus-visible) {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

.pub-year {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold);
    min-width: 48px;
    padding-top: 0.15rem;
    letter-spacing: 0.02em;
}

.pub-year--date {
    min-width: 92px;
    font-variant-numeric: tabular-nums;
}

.pub-content { flex: 1; }

.pub-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    margin-right: 0.3rem;
}

.pub-badge-article {
    background: rgba(74, 95, 224, 0.15);
    color: #6b7fd6;
}

[data-theme="light"] .pub-badge-article {
    background: rgba(58, 76, 192, 0.1);
    color: #3a4cc0;
}

.pub-badge-conference {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.pub-badge-book {
    background: rgba(212, 115, 90, 0.15);
    color: var(--accent-coral);
}

[data-theme="light"] .pub-badge-book {
    background: rgba(192, 90, 66, 0.1);
    color: #c05a42;
}

.pub-badge-booksection {
    background: rgba(100, 180, 140, 0.15);
    color: #5cb88a;
}

.pub-badge-thesis {
    background: rgba(150, 100, 200, 0.15);
    color: #b380e0;
}

.pub-badge-report {
    background: rgba(100, 150, 180, 0.15);
    color: #6a9ab8;
}

.pub-title-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.pub-title-text {
    transition: color 0.3s ease;
}

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

.pub-venue {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

.section-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-outline svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-outline:hover svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════
   AWARDS
   ═══════════════════════════════════════════════════ */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.award-item {
    padding: 1.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

a.award-item:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

a.award-item:hover .award-title {
    color: var(--accent-gold);
}

a.award-item:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

.award-title {
    transition: color 0.3s ease;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 1.8rem;
    left: 0;
    width: 3px;
    height: 30px;
    background: var(--accent-gold);
    border-radius: 0 2px 2px 0;
}

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

.award-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.award-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.award-org {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   CONTACT / LINKS
   ═══════════════════════════════════════════════════ */
.contact-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

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

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.link-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.link-icon svg { width: 18px; height: 18px; }

.link-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.link-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.link-item[target="_blank"]::after {
    content: '';
    width: 12px;
    height: 12px;
    margin-left: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a96a6' stroke-width='2'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    display: inline-block;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   WAVE CANVAS
   ═══════════════════════════════════════════════════ */
#waveCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    pointer-events: none;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════
   PUBLICATIONS PAGE (subpage)
   ═══════════════════════════════════════════════════ */
.page-header {
    padding: 8rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.page-section {
    padding: 2rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-link:hover { color: var(--accent-gold); }
.back-link svg { width: 16px; height: 16px; }

/* Publications page: filters + search */
.pub-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.pub-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.pub-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.pub-search input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.pub-search svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.pub-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pub-count strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.pub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pub-filter {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
}

.pub-filter:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.pub-filter.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.pub-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.pub-item.hidden { display: none; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero-content { padding-top: 120px; }
    .section { padding: 4rem 1.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr; }

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

    .hero-avatar-wrapper {
        flex-direction: row-reverse;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .hero-name { font-size: clamp(2.5rem, 10vw, 4rem); }

    .page-header { padding-top: 6rem; }
}

@media (max-width: 480px) {
    .hero-meta { flex-direction: column; align-items: flex-start; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-outline { justify-content: center; }
}

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

    .reveal { opacity: 1; transform: none; }
    #waveCanvas { display: none; }
    .hero-eyebrow,
    .hero-avatar-wrapper,
    .hero-title,
    .hero-meta,
    .hero-tags,
    .hero-cta,
    .scroll-indicator { opacity: 1; transform: none; }
}
