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

:root {
    --navy-deep: #060b18;
    --navy-dark: #0c1426;
    --navy-mid: #111d38;
    --gold: #c8a040;
    --gold-light: #e8c060;
    --gold-dim: #8a6b28;
    --text-prime: #d4cfc4;
    --text-sec: #8a8fa8;
    --text-muted: #4a5070;
    --accent: #4472ca;
    --green: #3d9970;
    --sw: 260px;
    --ink-rgb: 6, 11, 24;
    --fg-rgb: 255, 255, 255;
    --sp1: #b08a2c;
    --sp2: #5f86d2;
    --sp3: #5fa463;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--navy-dark);
    color: var(--text-prime);
    overflow-x: hidden;
}

/* ─── SIDEBAR ─── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sw);
    height: 100vh;
    background: var(--navy-deep);
    border-right: 1px solid rgba(200, 160, 64, .12);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    z-index: 100;
    overflow-y: auto;
}

.sb-mono {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: .05em;
    line-height: 1;
}

.sb-name {
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 2.5rem;
}

.sb-nav {
    list-style: none;
    flex: 1;
}

.sb-nav li {
    margin-bottom: .15rem;
}

.sb-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    text-decoration: none;
    color: var(--text-sec);
    font-size: .74rem;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all .2s;
    position: relative;
}

.sb-nav a::before {
    content: '';
    width: 2px;
    height: 0;
    background: var(--gold);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: height .2s;
    border-radius: 1px;
}

.sb-nav a:hover,
.sb-nav a.active {
    color: var(--gold);
    background: rgba(200, 160, 64, .06);
}

.sb-nav a:hover::before,
.sb-nav a.active::before {
    height: 60%;
}

.nb {
    font-size: .66rem;
    color: var(--text-muted);
    font-weight: 300;
}

.sb-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 160, 64, .1);
}

.sb-links a {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

.sb-links a:hover {
    color: var(--gold);
}

/* ─── MOBILE TOP NAV ─── */
.topnav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(var(--ink-rgb), .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 160, 64, .1);
    padding: 1rem 1.5rem;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
}

.topnav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gold);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-sec);
    transition: all .3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--ink-rgb), .98);
    backdrop-filter: blur(12px);
    z-index: 199;
    padding: 2rem;
    flex-direction: column;
    gap: .4rem;
    overflow-y: auto;
}

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

.mobile-menu a {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-sec);
    text-decoration: none;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(200, 160, 64, .06);
    transition: color .2s;
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* ─── MAIN ─── */
.main {
    margin-left: var(--sw);
    position: relative;
    z-index: 1;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    align-items: center;
    padding: 4rem 5rem 7rem;
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .4;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-label {
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp .8s ease .2s forwards;
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--text-prime);
    margin-bottom: .4rem;
    opacity: 0;
    animation: fadeUp .8s ease .4s forwards;
}

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

.tw-cursor {
    color: var(--gold);
    animation: tw-blink .7s step-end infinite;
}

@keyframes tw-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.7rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-sec);
    margin-bottom: 3rem;
    line-height: 1.4;
    opacity: 0;
    animation: fadeUp .8s ease .6s forwards;
}

.hero-desc {
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-sec);
    max-width: 500px;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fadeUp .8s ease .8s forwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fadeUp .8s ease 1s forwards;
}

.stat-n {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.stat-l {
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: .2rem;
}

.hero-scroll { display: none; }

/* ─── HERO QUICK NAV ─── */
.hero-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.8rem;
    opacity: 0;
    animation: fadeUp .8s ease 1.4s forwards;
}

.hero-qbtn {
    padding: .38rem 1.1rem;
    border: 1px solid rgba(200,160,64,.25);
    border-radius: 2px;
    color: var(--text-sec);
    font-family: 'Jost', sans-serif;
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.hero-qbtn:hover {
    color: var(--gold);
    border-color: rgba(200,160,64,.55);
    background: rgba(200,160,64,.05);
}

/* ─── PANEL BACK BUTTON ─── */
.panel-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text-muted);
    font-family: 'Jost', sans-serif;
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 2.5rem;
    transition: color .2s;
}
.panel-back:hover { color: var(--gold); }
.panel-back svg { width: 13px; height: 13px; }

/* ─── PANEL SYSTEM ─── */
main > section               { display: none; }
main > section.panel-active  { display: block; }
main > section#hero.panel-active { display: flex; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
main > section.panel-active:not(#hero) {
    animation: panelIn .22s ease forwards;
    min-height: calc(100vh - 65px); /* leave room for fixed footer */
}

/* ─── SECTIONS ─── */
section {
    padding: 6rem 5rem 8rem;
    border-bottom: none;
}

.sec-hd {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.sec-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(200, 160, 64, .18);
    line-height: 1;
    min-width: 54px;
}

.sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-prime);
    line-height: 1.1;
}

.sec-title em {
    font-style: italic;
    color: var(--gold);
}

/* ─── ABOUT ─── */
#about {
    background: var(--navy-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 1px solid rgba(200, 160, 64, 0.3);
    filter: grayscale(15%);
    transition: filter .4s;
}

.about-photo img:hover {
    filter: grayscale(0);
}

.about-text p {
    font-size: .95rem;
    line-height: 1.9;
    color: var(--text-sec);
    margin-bottom: 1.4rem;
    font-weight: 300;
}

.about-text strong {
    color: var(--text-prime);
    font-weight: 500;
}

.interests-label {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.tag {
    padding: .45rem .9rem;
    border: 1px solid rgba(200, 160, 64, .22);
    border-radius: 2px;
    font-size: .72rem;
    color: var(--text-sec);
    transition: all .2s;
    cursor: default;
}

.tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 160, 64, .05);
}

/* ─── RESEARCH ─── */
#research {
    background: var(--navy-dark);
}

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

.r-card {
    padding: 2.5rem;
    border: 1px solid rgba(200, 160, 64, .12);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .5);
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

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

.r-card:hover {
    border-color: rgba(200, 160, 64, .3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

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

.r-icon {
    margin-bottom: 1.5rem;
    color: var(--gold-dim);
}

.r-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.r-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .85rem;
    line-height: 1.25;
}

.r-desc {
    font-size: .85rem;
    line-height: 1.75;
    color: var(--text-sec);
    font-weight: 300;
}

/* ─── PUBLICATIONS ─── */
#publications {
    background: var(--navy-mid);
}

.pub-tabs {
    display: flex;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(200, 160, 64, .14);
}

.ptab {
    padding: .7rem 1.4rem;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .2s;
    font-family: 'Jost', sans-serif;
}

.ptab:hover {
    color: var(--text-sec);
}

.ptab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.ppanel {
    display: none;
}

.ppanel.active {
    display: block;
}

.pub-entry {
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(200, 160, 64, .06);
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1.75rem;
    align-items: start;
    transition: padding-left .2s;
}

.pub-entry:hover {
    padding-left: .75rem;
}

.pub-y {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--gold-dim);
    padding-top: .15rem;
}

.pub-t {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .35rem;
    line-height: 1.45;
}

.pub-a {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: .25rem;
    font-weight: 300;
}

.pub-a strong {
    color: var(--text-sec);
    font-weight: 500;
}

.pub-j {
    font-size: .78rem;
    font-style: italic;
    color: var(--text-sec);
    margin-bottom: .45rem;
}

.badges {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: .45rem;
}

.b {
    padding: .18rem .55rem;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
}

.b-a {
    background: rgba(200, 160, 64, .1);
    color: var(--gold);
    border: 1px solid rgba(200, 160, 64, .2);
}

.b-r {
    background: rgba(68, 114, 202, .1);
    color: var(--accent);
    border: 1px solid rgba(68, 114, 202, .2);
}

.b-p {
    background: rgba(108, 192, 108, .08);
    color: #7eba7e;
    border: 1px solid rgba(108, 192, 108, .25);
}

.b-wp {
    background: rgba(77, 182, 200, .08);
    color: #4db6c8;
    border: 1px solid rgba(77, 182, 200, .25);
}

.doi {
    font-size: .68rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .2s;
}

.doi:hover {
    color: var(--gold);
}

.pub-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.bib-btn {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: 1px solid rgba(138, 111, 40, .3);
    border-radius: 3px;
    padding: .2rem .55rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    transition: all .2s;
}

.bib-btn:hover,
.bib-btn.open {
    color: var(--gold);
    border-color: var(--gold-dim);
}

.bib-block {
    display: none;
    margin-top: .75rem;
    background: var(--navy-deep);
    border: 1px solid rgba(138, 111, 40, .2);
    border-radius: 6px;
    overflow: hidden;
}

.bib-block.open {
    display: block;
}

.bib-block pre {
    font-size: .7rem;
    color: var(--text-sec);
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
    white-space: pre;
}

.bib-copy {
    display: block;
    font-size: .7rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: none;
    border-top: 1px solid rgba(138, 111, 40, .15);
    width: 100%;
    padding: .4rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    transition: color .2s;
}

.bib-copy:hover {
    color: var(--gold);
}

.bib-copy.copied {
    color: var(--green);
}

/* ─── TALKS ─── */
#talks {
    background: var(--navy-dark);
}

.talks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.invited-card {
    padding: 2rem;
    border: 1px solid rgba(200, 160, 64, .15);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .4);
    position: relative;
    overflow: hidden;
}

.invited-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.invited-type {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: .75rem;
}

.invited-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .4rem;
    line-height: 1.3;
}

.invited-venue {
    font-size: .8rem;
    color: var(--text-sec);
    margin-bottom: .25rem;
}

.invited-date {
    font-size: .7rem;
    color: var(--text-muted);
}

.conf-years {
    margin-top: 4rem;
}

.conf-year-block {
    margin-bottom: 3rem;
}

.year-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: rgba(200, 160, 64, .3);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.conf-items {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.conf-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.25rem;
    border: 1px solid rgba(200, 160, 64, .07);
    border-radius: 3px;
    background: rgba(var(--ink-rgb), .3);
    transition: all .2s;
}

.conf-item:hover {
    border-color: rgba(200, 160, 64, .2);
    background: rgba(var(--ink-rgb), .5);
}

.conf-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .05em;
}

.conf-loc {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

.conf-right {}

.conf-session {
    font-size: .68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .3rem;
}

.conf-badge {
    display: inline-block;
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200, 160, 64, .32);
    border-radius: 2px;
    padding: .05rem .35rem;
    margin-right: .45rem;
    vertical-align: .05em;
}

.conf-badge.contributed {
    color: var(--text-muted);
    border-color: rgba(74, 80, 112, .45);
}

.conf-paper {
    font-size: .83rem;
    color: var(--text-sec);
    font-weight: 300;
    line-height: 1.5;
}

/* ─── TEACHING ─── */
#teaching {
    background: var(--navy-mid);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Discussant at Master's defences (reuses .invited-card) */
.exam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.course {
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(200, 160, 64, .09);
    border-radius: 3px;
    background: rgba(var(--ink-rgb), .3);
    transition: all .2s;
}

.course:hover {
    border-color: rgba(200, 160, 64, .25);
    background: rgba(var(--ink-rgb), .55);
}

.course-n {
    font-size: .875rem;
    font-weight: 400;
    color: var(--text-prime);
    margin-bottom: .3rem;
}

.course-m {
    font-size: .68rem;
    color: var(--text-muted);
}

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

.summer-card {
    padding: 2rem;
    border: 1px solid rgba(200, 160, 64, .1);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .3);
}

.summer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .3rem;
}

.summer-role {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
}

.summer-editions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.summer-editions li {
    font-size: .82rem;
    color: var(--text-sec);
    font-weight: 300;
    padding: .2rem 0;
}

.summer-editions li span {
    color: var(--text-muted);
    font-size: .75rem;
}

.student-box {
    padding: 2.5rem;
    border: 1px solid rgba(200, 160, 64, .12);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .3);
}

.student-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: 1rem;
}

.student-box p {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.student-box ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.student-box li {
    font-size: .85rem;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: .35rem;
    line-height: 1.5;
}

.btn-gold {
    display: inline-block;
    padding: .6rem 1.5rem;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all .2s;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

/* ─── PROJECTS & SOFTWARE ─── */
#projects {
    background: var(--navy-dark);
}

.soft-block {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(200, 160, 64, .08);
}

.soft-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.soft-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.soft-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-prime);
}

.soft-badge {
    padding: .2rem .6rem;
    font-size: .72rem;
    letter-spacing: .08em;
    border: 1px solid rgba(68, 114, 202, .4);
    color: var(--accent);
    border-radius: 3px;
    font-weight: 400;
}

.soft-subtitle {
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1.75rem;
}

.soft-desc {
    font-size: .9rem;
    line-height: 1.85;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: 1.75rem;
    max-width: 720px;
}

.soft-features {
    margin-bottom: 1.75rem;
}

.soft-features h4 {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.feature-list li {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    font-size: .85rem;
    color: var(--text-sec);
    font-weight: 300;
    line-height: 1.5;
}

.feature-list li::before {
    content: '—';
    color: var(--gold-dim);
    flex-shrink: 0;
}

.code-block {
    white-space: pre-line;
    background: rgba(var(--ink-rgb), .8);
    border: 1px solid rgba(200, 160, 64, .12);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: .8rem;
    color: var(--text-sec);
    line-height: 1.7;
    overflow-x: auto;
}

.code-block .comment {
    color: var(--text-muted);
}

.code-block .fn {
    color: var(--gold);
}

.soft-refs {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.soft-refs a {
    color: var(--gold-dim);
    text-decoration: none;
}

.soft-refs a:hover {
    color: var(--gold);
}

.soft-btns {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.soft-btn {
    display: inline-block;
    padding: .5rem 1.2rem;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    transition: all .2s;
}

.soft-btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

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

.soft-btn-outline {
    border: 1px solid rgba(200, 160, 64, .3);
    color: var(--text-sec);
}

.soft-btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

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

.proj-card {
    padding: 2.5rem;
    border: 1px solid rgba(200, 160, 64, .1);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .4);
    transition: all .3s;
}

.proj-card:hover {
    border-color: rgba(200, 160, 64, .25);
    transform: translateY(-3px);
}

.proj-type {
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
}

.proj-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .7rem;
}

.proj-desc {
    font-size: .85rem;
    line-height: 1.75;
    color: var(--text-sec);
    font-weight: 300;
}

.proj-per {
    margin-top: .9rem;
    font-size: .68rem;
    color: var(--text-muted);
}

/* ─── NETWORK ─── */
#network {
    background: var(--navy-mid);
}

.network-intro {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--text-sec);
    font-weight: 300;
    max-width: 680px;
    margin-bottom: 4rem;
}

.inst-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.inst-card {
    padding: 2rem;
    border: 1px solid rgba(200, 160, 64, .1);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .3);
    transition: all .2s;
}

.inst-card:hover {
    border-color: rgba(200, 160, 64, .25);
}

.inst-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .3rem;
}

.inst-name a {
    color: var(--text-prime);
    text-decoration: none;
}

.inst-name a:hover {
    color: var(--gold);
}

.inst-role {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: .6rem;
}

.inst-desc {
    font-size: .8rem;
    line-height: 1.65;
    color: var(--text-muted);
    font-weight: 300;
}

.colleagues-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.colleague-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(200, 160, 64, .05);
}

.colleague-name {
    font-size: .88rem;
    font-weight: 400;
    color: var(--text-prime);
}

.colleague-name a {
    color: var(--text-prime);
    text-decoration: none;
    transition: color .2s;
}

.colleague-name a:hover {
    color: var(--gold);
}

.colleague-role {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300;
    text-align: right;
}

/* ─── CONSULTING ─── */
#consulting {
    background: var(--navy-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid rgba(200, 160, 64, .1);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .3);
    transition: all .3s;
}

.service-card:hover {
    border-color: rgba(200, 160, 64, .25);
    transform: translateY(-3px);
}

.service-icon {
    margin-bottom: 1rem;
    color: var(--gold-dim);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.service-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .6rem;
}

.service-desc {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-sec);
    font-weight: 300;
}

.process-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(200, 160, 64, .2);
    line-height: 1;
    margin-bottom: .75rem;
}

.step-title {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-prime);
    margin-bottom: .5rem;
}

.step-desc {
    font-size: .78rem;
    line-height: 1.65;
    color: var(--text-muted);
    font-weight: 300;
}

.who-label {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1.5rem;
}

.who-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 3rem;
}

.who-list li {
    font-size: .88rem;
    color: var(--text-sec);
    font-weight: 300;
    line-height: 1.6;
    padding: .35rem 0;
    border-bottom: 1px solid rgba(200, 160, 64, .04);
}

.who-list strong {
    color: var(--text-prime);
    font-weight: 500;
}

.cta-box {
    padding: 3rem;
    border: 1px solid rgba(200, 160, 64, .2);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .4);
    text-align: center;
}

.cta-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-prime);
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: .88rem;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: 1.75rem;
}

/* ─── CONTACT ─── */
#contact {
    background: var(--navy-deep);
    text-align: center;
    padding: 8rem 5rem;
}

.contact-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-sec);
    margin-bottom: 3rem;
}

.contact-email {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--text-prime);
    text-decoration: none;
    letter-spacing: .02em;
    display: inline-block;
    margin-bottom: 3rem;
    transition: color .3s;
    border-bottom: 1px solid rgba(200, 160, 64, .2);
    padding-bottom: .25rem;
}

.contact-email:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.clink {
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding-bottom: .2rem;
    border-bottom: 1px solid transparent;
    transition: all .2s;
}

.clink:hover {
    color: var(--gold);
    border-bottom-color: var(--gold-dim);
}

.contact-office {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    border: 1px solid rgba(200, 160, 64, .1);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .3);
}

.contact-office h4 {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
}

.contact-office p {
    font-size: .85rem;
    line-height: 1.8;
    color: var(--text-sec);
    font-weight: 300;
}

.contact-office strong {
    color: var(--text-prime);
    font-weight: 500;
}

.map-wrapper {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(200, 160, 64, .1);
    max-width: 700px;
    margin: 0 auto;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: none;
    filter: grayscale(40%) brightness(70%);
}

/* ─── FOOTER ─── */
footer {
    position: fixed;
    bottom: 0;
    left: var(--sw);
    right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(200, 160, 64, .07);
    padding: 1.1rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.ft {
    font-size: .68rem;
    color: var(--text-muted);
    letter-spacing: .08em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        width: 40px;
        opacity: .4;
    }

    50% {
        width: 60px;
        opacity: .8;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    :root {
        --sw: 0px;
    }

    .sidebar {
        display: none;
    }

    .topnav {
        display: flex;
    }

    .main {
        margin-left: 0;
        padding-top: 56px;
    }

    .hero {
        padding: 4rem 2rem;
    }

    section {
        padding: 4rem 2rem 6rem;
    }

    .hero-quick-nav {
        gap: .4rem;
        margin-top: 2rem;
    }

    .hero-qbtn {
        font-size: .68rem;
        padding: .32rem .85rem;
    }

    .panel-back {
        margin-bottom: 1.5rem;
    }

    #contact {
        padding: 5rem 2rem;
    }

    footer {
        left: 0;
        padding: 1rem 2rem;
        flex-direction: column;
        gap: .4rem;
        text-align: center;
    }

    .about-grid,
    .talks-grid,
    .summer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-photo {
        width: 160px;
        margin: 0 auto 0.5rem;
    }

    .r-grid,
    .inst-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .process-row {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-scroll {
        left: 2rem;
    }

    .conf-item {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

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

    .colleague-role {
        text-align: left;
    }
}

@media (max-width: 520px) {

    .course-grid,
    .process-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .pub-tabs {
        flex-wrap: wrap;
    }
}

/* ─── PUB SEARCH ─── */
.pub-search-wrap {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

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

.pub-search-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color .2s;
}

.pub-search-input {
    width: 100%;
    background: rgba(var(--ink-rgb), .55);
    border: 1px solid rgba(200, 160, 64, .15);
    border-radius: 4px;
    padding: .6rem 2.2rem .6rem 2.4rem;
    font-family: 'Jost', sans-serif;
    font-size: .82rem;
    font-weight: 300;
    color: var(--text-prime);
    outline: none;
    transition: border-color .2s, background .2s;
    letter-spacing: .03em;
}

.pub-search-input::placeholder {
    color: var(--text-muted);
}

.pub-search-input:focus {
    border-color: rgba(200, 160, 64, .4);
    background: rgba(var(--ink-rgb), .8);
}

.pub-search-input:focus+.pub-search-clear {
    opacity: 1;
}

.pub-search-box:focus-within .pub-search-icon {
    color: var(--gold-dim);
}

.pub-search-clear {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: .1rem .25rem;
    opacity: 0;
    transition: opacity .2s, color .2s;
}

.pub-search-clear:hover {
    color: var(--text-prime);
}

.pub-search-clear.visible {
    opacity: 1;
}

.pub-search-count {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

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

.pub-entry mark {
    background: rgba(200, 160, 64, .22);
    color: var(--gold);
    border-radius: 2px;
    padding: 0 .1em;
}

.pub-no-results {
    display: none;
    align-items: center;
    gap: .75rem;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 300;
}

.pub-no-results svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: .5;
}

.pub-no-results em {
    font-style: normal;
    color: var(--gold-dim);
}

.pub-no-results.visible {
    display: flex;
}

/* ─── YEAR COLLAPSIBLE ─── */
.year-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
    user-select: none;
}

.year-toggle {
    font-size: 1.1rem;
    color: rgba(200, 160, 64, .45);
    transition: transform .25s;
    line-height: 1;
    margin-top: .1rem;
}

.year-header.collapsed .year-toggle {
    transform: rotate(-90deg);
}

.conf-items.collapsed {
    display: none;
}

/* ─── INTERNATIONAL CONFERENCES ─── */
.intl-conf-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-top: 1rem;
}

.intl-conf-list li {
    font-size: .84rem;
    color: var(--text-sec);
    font-weight: 300;
    line-height: 1.55;
    padding: .55rem .75rem;
    border-left: 2px solid rgba(200, 160, 64, .18);
    background: rgba(var(--ink-rgb), .25);
    border-radius: 0 3px 3px 0;
}

.intl-conf-list li strong {
    color: var(--text-prime);
    font-weight: 500;
}

/* ─── CITE BUTTON ─── */
.cite-btn {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: 1px solid rgba(68, 114, 202, .28);
    border-radius: 3px;
    padding: .2rem .55rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    transition: all .2s;
}

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

/* ─── CITE MODAL ─── */
.cite-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(var(--ink-rgb), .78);
    backdrop-filter: blur(6px);
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.cite-overlay.open {
    display: flex;
}

.cite-modal {
    background: var(--navy-deep);
    border: 1px solid rgba(200, 160, 64, .18);
    border-radius: 6px;
    width: min(640px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .5);
}

.cite-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(200, 160, 64, .1);
}

.cite-modal-hd span {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.cite-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
    padding: 0 .2rem;
}

.cite-close:hover {
    color: var(--text-prime);
}

.cite-format-row {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(200, 160, 64, .06);
}

.cite-format-label {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: .5rem;
}

.cite-format-text {
    font-size: .82rem;
    line-height: 1.65;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: .6rem;
}

.cite-copy-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cite-copy-btn {
    font-size: .68rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: 1px solid rgba(138, 111, 40, .22);
    border-radius: 2px;
    padding: .18rem .5rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    transition: all .2s;
    white-space: nowrap;
}

.cite-copy-btn:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
}

.cite-copy-btn.copied {
    color: var(--green);
    border-color: var(--green);
}

.cite-dl-section {
    padding: 1rem 1.5rem 1.25rem;
}

.cite-dl-label {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: .75rem;
}

.cite-dl-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cite-dl-btn {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-sec);
    background: rgba(var(--ink-rgb), .5);
    border: 1px solid rgba(200, 160, 64, .15);
    border-radius: 3px;
    padding: .3rem .75rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}

.cite-dl-btn:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
}

/* ─── NOW / CURRENTLY ─── */
#now {
    background: var(--navy-mid);
    position: relative;
}

#now::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 160, 64, .55) 50%, transparent);
    background-size: 200% 100%;
    animation: shimmerLine 7s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { background-position: -60% 0; }
    50%      { background-position: 160% 0; }
}

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

.now-live {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem .9rem .35rem .8rem;
    border: 1px solid rgba(108, 192, 108, .28);
    border-radius: 100px;
    background: rgba(108, 192, 108, .06);
    margin-bottom: 1.5rem;
}

.now-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6cc06c;
    box-shadow: 0 0 0 0 rgba(108, 192, 108, .55);
    animation: pulseDot 2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(108, 192, 108, .55); }
    70%  { box-shadow: 0 0 0 10px rgba(108, 192, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 192, 108, 0); }
}

.now-label {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #98c898;
    font-weight: 400;
}

.now-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-prime);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.now-title em {
    font-style: italic;
    color: var(--gold);
}

.now-intro {
    font-size: .92rem;
    line-height: 1.85;
    color: var(--text-sec);
    font-weight: 300;
    max-width: 640px;
}

.now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.now-card {
    padding: 1.75rem 1.85rem 1.5rem;
    border: 1px solid rgba(200, 160, 64, .12);
    border-left: 2px solid rgba(200, 160, 64, .35);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .45);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.now-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(200, 160, 64, .08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
}

.now-card:hover {
    border-color: rgba(200, 160, 64, .3);
    border-left-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
    background: rgba(var(--ink-rgb), .65);
}

.now-card:hover::after { opacity: 1; }

.now-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: .75rem;
    flex-wrap: wrap;
}

.now-card-status {
    display: inline-block;
    padding: .22rem .65rem;
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 2px;
    font-weight: 500;
}

.status-review {
    background: rgba(68, 114, 202, .12);
    color: var(--accent);
    border: 1px solid rgba(68, 114, 202, .32);
}

.status-prep {
    background: rgba(108, 192, 108, .1);
    color: #7eba7e;
    border: 1px solid rgba(108, 192, 108, .32);
}

.status-wp {
    background: rgba(77, 182, 200, .1);
    color: #4db6c8;
    border: 1px solid rgba(77, 182, 200, .32);
}

.status-upcoming {
    background: rgba(200, 160, 64, .1);
    color: var(--gold);
    border: 1px solid rgba(200, 160, 64, .32);
}

.now-card-since {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.now-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-prime);
    line-height: 1.32;
    margin-bottom: .8rem;
}

.now-card-desc {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: 1.2rem;
    flex: 1;
}

.now-card-link {
    display: inline-block;
    margin-top: .7rem;
    font-size: .72rem;
    color: var(--gold-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 1px;
    font-weight: 400;
    letter-spacing: .01em;
    transition: opacity .2s;
}
.now-card-link:hover { opacity: .7; }

.now-card-venue {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .72rem;
    color: var(--text-muted);
    font-style: italic;
    padding-top: .9rem;
    border-top: 1px solid rgba(200, 160, 64, .08);
    font-weight: 300;
}

.now-card-venue svg {
    width: 13px;
    height: 13px;
    color: var(--gold-dim);
    flex-shrink: 0;
}

.now-collab {
    padding: 2.5rem 2.75rem;
    border: 1px solid rgba(200, 160, 64, .25);
    border-radius: 6px;
    background:
        radial-gradient(ellipse at top right, rgba(200, 160, 64, .08), transparent 60%),
        rgba(var(--ink-rgb), .55);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.25rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.now-collab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .55;
}

.now-collab-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 160, 64, .08);
    border: 1px solid rgba(200, 160, 64, .25);
    color: var(--gold);
    flex-shrink: 0;
}

.now-collab-icon svg {
    width: 30px;
    height: 30px;
}

.now-collab-label {
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: .65rem;
}

.now-collab-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text-prime);
    margin-bottom: .85rem;
    line-height: 1.2;
}

.now-collab-title em {
    color: var(--gold);
    font-style: italic;
}

.now-collab-it-companion {
    font-size: .82rem;
    color: var(--text-sec);
    font-style: italic;
    margin-top: .35rem;
    opacity: .75;
    line-height: 1.5;
}
.now-collab-it-companion:empty { display: none; }

.now-collab-desc {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text-sec);
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.now-collab-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-quiet {
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding-bottom: .15rem;
    border-bottom: 1px solid rgba(200, 160, 64, .15);
    transition: all .2s;
}

.btn-quiet:hover {
    color: var(--gold);
    border-bottom-color: var(--gold-dim);
}

.now-updated {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.now-pulse-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6cc06c;
    box-shadow: 0 0 6px rgba(108, 192, 108, .8);
    flex-shrink: 0;
}

/* sidebar pulse for Currently item */
.nb-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
}

.nb-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6cc06c;
    box-shadow: 0 0 0 0 rgba(108, 192, 108, .55);
    animation: pulseDot 2s ease-out infinite;
}

.mobile-menu a.mobile-now {
    display: flex;
    align-items: center;
    gap: .75rem;
}

@media (max-width: 700px) {
    .now-collab {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }
    .now-collab-icon { margin: 0 auto; }
    .now-collab-actions { justify-content: center; }
    .now-title { font-size: 2.2rem; }
    .now-collab-desc { margin-left: auto; margin-right: auto; }
}

/* ─── LANGUAGE TOGGLE ─── */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(200, 160, 64, .18);
    border-radius: 100px;
    padding: 2px;
    background: rgba(var(--ink-rgb), .4);
    margin-top: 1.25rem;
    align-self: flex-start;
}

.lang-opt {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: .3rem .7rem;
    cursor: pointer;
    border-radius: 100px;
    transition: all .25s ease;
    line-height: 1;
}

.lang-opt:hover { color: var(--text-sec); }

.lang-opt.active {
    background: rgba(200, 160, 64, .14);
    color: var(--gold);
    box-shadow: 0 0 0 1px rgba(200, 160, 64, .25) inset;
}

.lang-toggle-mobile {
    display: none;
    margin-right: .5rem;
}

@media (max-width: 960px) {
    .lang-toggle-mobile { display: inline-flex; }
    .lang-toggle.sidebar-only { display: none; }
}

/* ─── ACCESSIBILITY ─── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    background: var(--gold);
    color: var(--navy-deep);
    padding: .6rem 1.2rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

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

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.year-header {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    #bg-canvas {
        display: none;
    }
}

/* ─── READABILITY ─── */
:root {
    --text-sec: #a9aec4;
    --text-muted: #7880a0;
}
.hero-desc { font-size: 1rem; margin-bottom: 2.5rem; }
.about-text p, .network-intro, .now-intro { font-size: 1rem; }
.now-card-desc, .service-desc, .proj-desc { font-size: .9rem; font-weight: 400; }
.inst-desc { font-size: .86rem; font-weight: 400; }
.pub-a, .pub-j { font-size: .84rem; }
.pub-a { font-weight: 400; }
.colleague-role { font-size: .8rem; font-weight: 400; }
.now-card-venue { font-size: .78rem; font-weight: 400; }
.doi { font-size: .72rem; }
.b { font-size: .7rem; }

/* ─── HERO: STATS + E2TREE VISUAL ─── */
main > section#hero.panel-active { gap: 3rem; }
.hero-content { flex: 0 1 680px; min-width: 0; }
.hero-stats { margin-bottom: .5rem; flex-wrap: wrap; row-gap: 1.25rem; }
.hero-stats .stat[hidden] { display: none; }
.hero-stats .stat-oa .stat-l::after {
    content: ' · OpenAlex';
    color: var(--text-muted);
    opacity: .7;
    letter-spacing: .08em;
    text-transform: none;
}

.hero-viz {
    flex: 1 1 400px;
    max-width: 540px;
    min-width: 320px;
    margin-left: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
    cursor: pointer;
}
.hero-viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.hv-ens { transition: transform 1.8s cubic-bezier(.6, 0, .2, 1), opacity 1.8s ease; transform-box: view-box; transform-origin: 240px 230px; }
.hv-ens line { stroke-width: 1; }
.hv-ens circle { stroke: none; }
.hv-edge { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s ease, stroke .3s, stroke-width .3s; opacity: .75; }
.hv-edge.drawn { stroke-dashoffset: 0; }
.hv-edge.hot { stroke: var(--gold-light); stroke-width: 2.4; opacity: 1; }
.hv-node { opacity: 0; transition: opacity .5s ease; }
.hv-node.on { opacity: 1; }
.hv-node .hv-dot { fill: var(--navy-deep); stroke: var(--gold); stroke-width: 1.4; transition: r .2s, fill .2s; }
.hv-node:hover .hv-dot { fill: var(--gold); }
.hv-node .hv-hit { fill: transparent; }
.hv-rule { font-family: 'Jost', sans-serif; font-size: 12px; fill: var(--text-sec); letter-spacing: .02em; }
.hv-n { font-family: 'Jost', sans-serif; font-size: 10.5px; fill: var(--text-muted); }
.hv-leaf-bg { fill: rgba(var(--fg-rgb), .06); }
.hv-leaf.glow .hv-leaf-frame { stroke: var(--gold-light); stroke-width: 1.6; }
.hv-leaf-frame { fill: none; stroke: rgba(200, 160, 64, .35); stroke-width: 1; transition: stroke .3s, stroke-width .3s; }
.hv-obs { fill: var(--gold-light); filter: drop-shadow(0 0 6px rgba(232, 192, 96, .9)); opacity: 0; }
.hv-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-top: .75rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(200, 160, 64, .14);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hv-caption strong { color: var(--gold); font-weight: 400; }
.hv-caption .hv-sub { text-transform: none; letter-spacing: .02em; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: var(--text-sec); }
.hv-tip, .coauth-tip {
    position: absolute;
    pointer-events: none;
    background: rgba(var(--ink-rgb), .96);
    border: 1px solid rgba(200, 160, 64, .35);
    border-radius: 3px;
    padding: .5rem .7rem;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--text-prime);
    white-space: nowrap;
    z-index: 5;
    transform: translate(-50%, calc(-100% - 12px));
}
.hv-tip[hidden], .coauth-tip[hidden] { display: none; }
.hv-tip b, .coauth-tip b { color: var(--gold); font-weight: 500; }
.coauth-tip { white-space: normal; max-width: 280px; }
.coauth-tip .ct-role { color: var(--text-sec); font-size: .74rem; }
@media (max-width: 1100px) { .hero-viz { display: none; } }

/* ─── CURRENTLY: PIPELINE FILTER ─── */
.now-pipe {
    display: flex;
    align-items: stretch;
    gap: .75rem;
    margin: 0 0 2.25rem;
    flex-wrap: wrap;
}
.pipe-stage {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: 1rem 1.2rem .95rem;
    background: rgba(var(--ink-rgb), .45);
    border: 1px solid rgba(200, 160, 64, .12);
    border-top: 2px solid var(--stage, var(--gold));
    border-radius: 4px;
    color: var(--text-sec);
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: background .25s, border-color .25s, transform .25s;
}
.pipe-stage:hover { background: rgba(200, 160, 64, .05); transform: translateY(-2px); }
.pipe-stage.active { background: rgba(200, 160, 64, .08); border-color: rgba(200, 160, 64, .4); border-top-color: var(--stage, var(--gold)); }
.pipe-stage:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.pipe-n { font-family: 'Cormorant Garamond', serif; font-size: 2.3rem; font-weight: 300; line-height: 1; color: var(--stage, var(--gold)); }
.pipe-l { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.pipe-all { --stage: var(--text-prime); flex: 0 1 120px; }
.pipe-wp { --stage: #7eba7e; }
.pipe-review { --stage: #6f97e0; }
.pipe-pub { --stage: var(--gold); }
.pipe-pub .pipe-l::after { content: ' ↗'; color: var(--gold); }
.pipe-arrow { align-self: center; color: var(--gold-dim); font-size: 1.1rem; }
.now-card.is-hidden { display: none; }
.now-card.pipe-in { animation: panelIn .35s ease both; }
@media (max-width: 700px) {
    .pipe-arrow { display: none; }
    .pipe-stage { flex: 1 1 40%; padding: .8rem .9rem; }
    .pipe-all { flex: 1 1 40%; }
    .pipe-n { font-size: 1.8rem; }
}

/* ─── PUBLICATIONS: LIVE CITATIONS ─── */
.cites {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--gold);
    border: 1px solid rgba(200, 160, 64, .3);
    border-radius: 2px;
    padding: .12rem .5rem;
    background: rgba(200, 160, 64, .06);
    text-decoration: none;
    transition: background .2s;
}
.cites:hover { background: rgba(200, 160, 64, .14); }
.cites svg { width: 11px; height: 11px; }

/* ─── NETWORK: CO-AUTHORSHIP GRAPH ─── */
.coauth-note { font-size: .9rem; color: var(--text-sec); max-width: 640px; line-height: 1.7; margin-bottom: 1.25rem; }
.coauth {
    position: relative;
    border: 1px solid rgba(200, 160, 64, .12);
    border-radius: 4px;
    background: radial-gradient(ellipse at center, rgba(200, 160, 64, .05), rgba(var(--ink-rgb), .5) 70%);
    margin-bottom: 3.5rem;
    overflow: hidden;
}
.coauth svg { display: block; width: 100%; }
.ca-link { stroke: rgba(200, 160, 64, .5); transition: opacity .25s, stroke .25s; }
.ca-link.co { stroke: rgba(138, 160, 220, .4); }
.ca-node { cursor: default; transition: opacity .25s; }
.ca-node.has-url { cursor: pointer; }
.ca-node circle { fill: var(--navy-mid); stroke: var(--gold); stroke-width: 1.2; transition: fill .2s; }
.ca-node.me circle { fill: var(--gold); stroke: var(--gold-light); }
.ca-node text { font-family: 'Jost', sans-serif; font-size: 11.5px; fill: var(--text-sec); pointer-events: none; }
.ca-node.me text { fill: var(--gold); font-size: 13px; }
.ca-node:hover circle, .ca-node.hl circle { fill: var(--gold-dim); }
.coauth.focus .ca-node:not(.hl):not(.me) { opacity: .2; }
.coauth.focus .ca-link:not(.hl) { opacity: .06; }
.coauth.focus .ca-link.hl { stroke: var(--gold-light); }
.coauth-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: .7rem 1rem; font-size: .72rem; color: var(--text-muted); border-top: 1px solid rgba(200, 160, 64, .1); }
.coauth-legend i { display: inline-block; width: 18px; height: 0; border-top: 1.5px solid rgba(200, 160, 64, .7); vertical-align: middle; margin-right: .4rem; }
.coauth-legend i.co { border-top-color: rgba(138, 160, 220, .6); }

@media (prefers-reduced-motion: reduce) {
    .hero-viz { animation: none; opacity: 1; }
    .hv-ens, .hv-edge, .hv-node { transition: none; }
    .pipe-stage:hover { transform: none; }
    .now-card.pipe-in { animation: none; }
}

/* ─── LIGHT THEME ─── */
:root[data-theme="light"] {
    --navy-deep: #eee8da;
    --navy-dark: #f7f4ec;
    --navy-mid: #e6dfcd;
    --gold: #8a6512;
    --gold-light: #a57816;
    --gold-dim: #8a6d2e;
    --text-prime: #1c2132;
    --text-sec: #454c63;
    --text-muted: #646b84;
    --accent: #2f5fb8;
    --green: #2f7f55;
    --ink-rgb: 255, 255, 255;
    --fg-rgb: 28, 33, 50;
    --sp1: #a07a1e;
    --sp2: #3f6fc4;
    --sp3: #3f8f4a;
}
:root[data-theme="light"] #bg-canvas { opacity: .22; }
:root[data-theme="light"] .status-prep { color: #2f7a3c; background: rgba(63, 143, 74, .1); border-color: rgba(63, 143, 74, .35); }
:root[data-theme="light"] .pipe-wp { --stage: #2f7a3c; }
:root[data-theme="light"] .pipe-review { --stage: #2f5fb8; }
:root[data-theme="light"] .pub-y,
:root[data-theme="light"] .year-label,
:root[data-theme="light"] .invited-type { filter: brightness(.68) saturate(1.3); }
:root[data-theme="light"] .map-wrapper iframe { filter: none; }
:root[data-theme="light"] .hv-obs { filter: none; }
:root[data-theme="light"] .ca-link { stroke: rgba(138, 101, 18, .45); }
:root[data-theme="light"] .ca-link.co { stroke: rgba(47, 95, 184, .35); }
:root[data-theme="light"] .coauth { background: radial-gradient(ellipse at center, rgba(200, 160, 64, .08), rgba(255, 255, 255, .6) 70%); }
:root[data-theme="light"] .now-card,
:root[data-theme="light"] .inst-card,
:root[data-theme="light"] .pipe-stage { box-shadow: 0 1px 2px rgba(28, 33, 50, .05); }

/* ─── TOOL BUTTONS (theme + search) ─── */
.sb-tools { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.sb-tools .lang-toggle { margin: 0; }
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    height: 28px;
    min-width: 28px;
    padding: 0 .55rem;
    border: 1px solid rgba(200, 160, 64, .18);
    border-radius: 14px;
    background: transparent;
    color: var(--text-sec);
    font-family: 'Jost', sans-serif;
    font-size: .68rem;
    letter-spacing: .08em;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.tool-btn:hover { color: var(--gold); border-color: rgba(200, 160, 64, .5); }
.tool-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.tool-btn svg { width: 14px; height: 14px; }
.tool-btn kbd { font-family: inherit; font-size: .64rem; color: var(--text-muted); border: 1px solid rgba(200, 160, 64, .2); border-radius: 3px; padding: 0 .3rem; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.topnav-tools { display: none; gap: .4rem; align-items: center; }
@media (max-width: 960px) { .topnav-tools { display: flex; } }

/* ─── COMMAND PALETTE ─── */
.cmdk {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 1rem 1rem;
    background: rgba(var(--ink-rgb), .55);
    backdrop-filter: blur(6px);
}
:root[data-theme="light"] .cmdk { background: rgba(28, 33, 50, .25); }
.cmdk[hidden] { display: none; }
.cmdk-box {
    width: min(640px, 100%);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: var(--navy-deep);
    border: 1px solid rgba(200, 160, 64, .3);
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: panelIn .18s ease;
}
.cmdk-input-wrap { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(200, 160, 64, .14); }
.cmdk-input-wrap svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.cmdk-input { flex: 1; background: none; border: 0; outline: 0; color: var(--text-prime); font-family: 'Jost', sans-serif; font-size: 1rem; }
.cmdk-input::placeholder { color: var(--text-muted); }
.cmdk-esc { font-size: .66rem; color: var(--text-muted); border: 1px solid rgba(200, 160, 64, .2); border-radius: 3px; padding: .1rem .35rem; }
.cmdk-list { overflow-y: auto; padding: .4rem 0 .6rem; list-style: none; margin: 0; }
.cmdk-group { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim); padding: .7rem 1.1rem .3rem; }
.cmdk-item { display: flex; flex-direction: column; gap: .1rem; padding: .55rem 1.1rem; cursor: pointer; border-left: 2px solid transparent; }
.cmdk-item[aria-selected="true"] { background: rgba(200, 160, 64, .08); border-left-color: var(--gold); }
.cmdk-t { font-size: .9rem; color: var(--text-prime); line-height: 1.35; }
.cmdk-s { font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-t mark { background: none; color: var(--gold); }
.cmdk-empty { padding: 1.5rem 1.1rem; color: var(--text-muted); font-size: .85rem; }
.cmdk-foot { display: flex; gap: 1rem; padding: .55rem 1.1rem; border-top: 1px solid rgba(200, 160, 64, .1); font-size: .68rem; color: var(--text-muted); }
@keyframes flashRing { 0% { box-shadow: 0 0 0 0 rgba(200, 160, 64, .0); } 25% { box-shadow: 0 0 0 3px rgba(200, 160, 64, .55); } 100% { box-shadow: 0 0 0 0 rgba(200, 160, 64, 0); } }
.flash { animation: flashRing 1.8s ease; border-radius: 4px; }

/* ─── CITATIONS PER YEAR ─── */
.cite-trend {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: end;
    padding: 1.25rem 1.5rem 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(200, 160, 64, .12);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .35);
    position: relative;
}
.cite-trend[hidden] { display: none; }
.ct-head .interests-label { margin-bottom: .6rem; }
.ct-total { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--gold); line-height: 1; }
.ct-sub { font-size: .74rem; color: var(--text-muted); margin-top: .35rem; max-width: 200px; line-height: 1.5; }
.ct-sub a { color: inherit; }
.ct-chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.ct-bar { fill: var(--sp1); transition: opacity .2s; }
.ct-bar.partial { fill: url(#ct-hatch); stroke: var(--sp1); stroke-width: 1; }
.ct-axis { font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--text-muted); }
.ct-val { font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--text-sec); }
.ct-base { stroke: rgba(200, 160, 64, .25); }
.ct-hit { fill: transparent; cursor: default; }
.ct-chart:hover .ct-bar { opacity: .55; }
.ct-chart .ct-col:hover .ct-bar { opacity: 1; }
.ct-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 8px)); background: var(--navy-deep); border: 1px solid rgba(200, 160, 64, .35); border-radius: 3px; padding: .35rem .6rem; font-size: .76rem; color: var(--text-prime); white-space: nowrap; }
.ct-tip[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .cite-trend { grid-template-columns: 1fr; gap: 1rem; } }

/* ─── ABSTRACTS ─── */
.pub-short { font-size: .86rem; line-height: 1.6; color: var(--text-sec); margin: .45rem 0 .2rem; max-width: 760px; }
.pub-short-l { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dim); margin-right: .4rem; }
.pub-abs { margin: .2rem 0 .1rem; }
.pub-abs summary { display: inline-block; cursor: pointer; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); list-style: none; padding: .15rem 0; transition: color .2s; }
.pub-abs summary::-webkit-details-marker { display: none; }
.pub-abs summary::before { content: '+ '; color: var(--gold); }
.pub-abs[open] summary::before { content: '− '; }
.pub-abs summary:hover { color: var(--gold); }
.pub-abs p { font-size: .84rem; line-height: 1.75; color: var(--text-sec); max-width: 760px; margin: .5rem 0 .4rem; padding-left: .9rem; border-left: 1px solid rgba(200, 160, 64, .25); }

/* ─── TALKS MAP ─── */
.talk-map-wrap { margin-bottom: 3.5rem; }
.talk-map {
    height: 420px;
    border: 1px solid rgba(200, 160, 64, .14);
    border-radius: 4px;
    overflow: hidden;
    background: var(--navy-deep);
}
.talk-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.talk-map-bar .tm-views { display: flex; gap: .4rem; }
.talk-map-note { font-size: .74rem; color: var(--text-muted); }
.leaflet-container { font-family: 'Jost', sans-serif; background: var(--navy-deep); }
.talk-map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(.82) saturate(.35) contrast(.92); }
:root[data-theme="light"] .talk-map .leaflet-tile-pane { filter: grayscale(.75) sepia(.18) brightness(1.02); }
.tm-marker { background: var(--gold); border: 2px solid var(--navy-deep); border-radius: 50%; box-shadow: 0 0 0 4px rgba(200, 160, 64, .25), 0 0 14px rgba(200, 160, 64, .6); display: flex; align-items: center; justify-content: center; color: var(--navy-deep); font-size: 11px; font-weight: 600; }
.talk-map .leaflet-popup-content-wrapper, .talk-map .leaflet-popup-tip { background: var(--navy-deep); color: var(--text-prime); border: 1px solid rgba(200, 160, 64, .35); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.talk-map .leaflet-popup-content { margin: .8rem 1rem; font-size: .8rem; line-height: 1.5; }
.talk-map .leaflet-popup-content h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 500; color: var(--gold); margin: 0 0 .4rem; }
.talk-map .leaflet-popup-content ul { margin: 0; padding: 0; list-style: none; }
.talk-map .leaflet-popup-content li { padding: .3rem 0; border-top: 1px solid rgba(200, 160, 64, .12); }
.talk-map .leaflet-popup-content li b { color: var(--text-prime); font-weight: 500; }
.talk-map .leaflet-popup-content li span { color: var(--text-muted); }
.talk-map .leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.talk-map .leaflet-control-attribution { background: rgba(var(--ink-rgb), .75) !important; color: var(--text-muted) !important; font-size: 10px; }
.talk-map .leaflet-control-attribution a { color: var(--text-sec) !important; }
.talk-map .leaflet-bar a { background: var(--navy-deep) !important; color: var(--text-sec) !important; border-color: rgba(200, 160, 64, .2) !important; }
@media (max-width: 700px) { .talk-map { height: 340px; } }

/* ─── E2TREE LIVE DEMO ─── */
.e2demo {
    margin: 2rem 0 1.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(200, 160, 64, .16);
    border-radius: 4px;
    background: rgba(var(--ink-rgb), .35);
}
.e2demo[hidden] { display: none; }
.e2demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.e2demo-head p { font-size: .86rem; color: var(--text-sec); max-width: 620px; line-height: 1.65; margin-top: .3rem; }
.e2demo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.e2demo-tree svg, .e2demo-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.e2-edge { fill: none; stroke: rgba(200, 160, 64, .45); stroke-width: 1.4; transition: stroke .2s, stroke-width .2s; }
.e2-edge.on { stroke: var(--gold); stroke-width: 2.4; }
.e2-node { cursor: pointer; }
.e2-node:focus { outline: none; }
.e2-node .e2-dot { fill: var(--navy-deep); stroke: var(--gold); stroke-width: 1.4; transition: fill .2s; }
.e2-node:hover .e2-dot, .e2-node:focus-visible .e2-dot { fill: rgba(200, 160, 64, .35); }
.e2-node.sel .e2-dot { fill: var(--gold); }
.e2-node .e2-frame { fill: none; stroke: rgba(200, 160, 64, .35); stroke-width: 1; }
.e2-node.sel .e2-frame, .e2-node:hover .e2-frame { stroke: var(--gold); stroke-width: 2; }
.e2-node .e2-hit { fill: transparent; }
.e2-lab { font-family: 'Jost', sans-serif; font-size: 12px; fill: var(--text-sec); }
.e2-n { font-family: 'Jost', sans-serif; font-size: 10.5px; fill: var(--text-muted); }
.e2-card { padding: 1rem 1.1rem; border: 1px solid rgba(200, 160, 64, .14); border-radius: 4px; background: rgba(var(--ink-rgb), .35); margin-bottom: 1rem; }
.e2-card h5 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500; color: var(--text-prime); margin: 0 0 .5rem; }
.e2-path { list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .78rem; color: var(--text-sec); }
.e2-path li { padding: .12rem 0; }
.e2-path li::before { content: '↳ '; color: var(--gold); }
.e2-dist { display: grid; grid-template-columns: 80px 1fr 34px; gap: .35rem .6rem; align-items: center; font-size: .76rem; color: var(--text-sec); margin-bottom: .75rem; }
.e2-dist .bar { height: 8px; border-radius: 0 4px 4px 0; background: currentColor; }
.e2-dist .track { background: rgba(var(--fg-rgb), .06); border-radius: 0 4px 4px 0; }
.e2-dist .v { text-align: right; color: var(--text-muted); }
.e2-dist i.sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; }
.e2-kv { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; font-size: .76rem; color: var(--text-muted); }
.e2-kv b { color: var(--text-prime); font-weight: 500; text-align: right; }
.e2demo-plot { position: relative; }
.e2-axes { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .72rem; color: var(--text-muted); margin-bottom: .4rem; }
.e2-axes select { background: var(--navy-deep); color: var(--text-prime); border: 1px solid rgba(200, 160, 64, .25); border-radius: 3px; padding: .2rem .35rem; font-family: 'Jost', sans-serif; font-size: .74rem; }
.e2-pt { stroke: var(--navy-deep); stroke-width: 1.5; transition: opacity .25s; }
.e2-pt.off { opacity: .12; }
.e2-grid { stroke: rgba(var(--fg-rgb), .07); }
.e2-tick { font-family: 'Jost', sans-serif; font-size: 10px; fill: var(--text-muted); }
.e2-axl { font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--text-sec); }
.e2-thr { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 3; }
.e2-thr-l { font-family: 'Jost', sans-serif; font-size: 10px; fill: var(--gold); }
.e2-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .74rem; color: var(--text-sec); margin-top: .4rem; }
.e2-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.e2-val { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(200, 160, 64, .12); }
.e2-val div { font-size: .72rem; color: var(--text-muted); line-height: 1.45; }
.e2-val b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 300; color: var(--gold); line-height: 1.1; }
.e2-foot { font-size: .72rem; color: var(--text-muted); margin-top: .9rem; }
.e2-foot a { color: var(--text-sec); }
.sp1 { color: var(--sp1); } .sp2 { color: var(--sp2); } .sp3 { color: var(--sp3); }
@media (max-width: 900px) { .e2demo-grid { grid-template-columns: 1fr; } .e2demo { padding: 1rem; } }
@media (max-width: 700px) {
    .soft-block .e2demo { margin-left: -.75rem; margin-right: -.75rem; padding: .85rem; }
    .e2demo-tree { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .e2demo-tree svg { min-width: 480px; }
}

/* ─── HERO: ONE FOREST, THREE LENSES ─── */
.hero-viz { cursor: default; }
.hv-stage { position: relative; }
.hv-slide { opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.hv-slide.on { opacity: 1; pointer-events: auto; }
.hv-node, .e2-node { opacity: 1; }
.hv-node { opacity: 0; transition: opacity .45s ease; }
.hv-node.on { opacity: 1; }
.hv-node .dot, .e2-node .dot { fill: var(--navy-deep); stroke: var(--gold); stroke-width: 1.4; transition: fill .2s; }
.hv-node:hover .dot { fill: var(--gold); }
.hv-node .hit, .e2-node .hit, .hv-rrow .hit { fill: transparent; }
.hv-node .rule, .e2-node .rule {
    font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--text-sec);
    paint-order: stroke; stroke: var(--navy-dark); stroke-width: 4px; stroke-linejoin: round;
}
.e2-node .rule { font-size: 12.5px; }
.hv-node .leaf-bg, .e2-node .leaf-bg { fill: rgba(var(--fg-rgb), .06); }
.hv-node .frame, .e2-node .frame { fill: none; stroke: rgba(200, 160, 64, .3); stroke-width: 1; transition: stroke .3s, stroke-width .3s; }
.hv-node.glow .frame { stroke: var(--gold-light); stroke-width: 2; }
.e2-node .leaf-n { font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--text-muted); }
.e2-node .dot { stroke-width: 1.6; }
.e2-node:hover .dot, .e2-node:focus-visible .dot { fill: rgba(200, 160, 64, .35); }
.e2-node.sel .dot { fill: var(--gold); }
.e2-node.sel .frame, .e2-node:hover .frame { stroke: var(--gold); stroke-width: 2; }
.hv-grid { stroke: rgba(var(--fg-rgb), .07); }
.hv-tick { font-family: 'Jost', sans-serif; font-size: 10.5px; fill: var(--text-muted); }
.hv-vname { font-family: 'Jost', sans-serif; font-size: 12px; fill: var(--text-sec); }
.hv-ci { stroke: rgba(200, 160, 64, .55); stroke-width: 7; stroke-linecap: round; }
.hv-rk { fill: var(--gold); stroke: var(--navy-dark); stroke-width: 2; }
.hv-rrow:hover .hv-vname { fill: var(--text-prime); }
.hv-note { font-family: 'Jost', sans-serif; font-size: 10.5px; fill: var(--text-muted); }
.hv-pt { stroke: var(--navy-dark); stroke-width: .6; }
.hv-ring { fill: none; stroke: var(--gold-light); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: 0; transition: opacity .6s; }
.hv-ann, .hv-ann2 { font-family: 'Jost', sans-serif; opacity: 0; transition: opacity .6s; paint-order: stroke; stroke: var(--navy-dark); stroke-width: 4px; stroke-linejoin: round; }
.hv-ann { font-size: 14px; fill: var(--gold-light); font-weight: 500; }
.hv-ann2 { font-size: 11px; fill: var(--text-sec); }
.ann-on .hv-ring, .ann-on .hv-ann, .ann-on .hv-ann2 { opacity: 1; }
.hv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .9rem; }
.hv-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
    padding: .5rem .7rem; background: transparent; cursor: pointer; text-align: left;
    border: 1px solid rgba(200, 160, 64, .16); border-top: 2px solid rgba(200, 160, 64, .16); border-radius: 3px;
    font-family: 'Jost', sans-serif; color: var(--text-muted); transition: border-color .25s, color .25s, background .25s;
}
.hv-tab b { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500; color: var(--text-sec); }
.hv-tab span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.hv-tab:hover { color: var(--text-sec); border-color: rgba(200, 160, 64, .4); }
.hv-tab[aria-selected="true"] { border-top-color: var(--gold); background: rgba(200, 160, 64, .06); color: var(--gold); }
.hv-tab[aria-selected="true"] b { color: var(--text-prime); }
.hv-tab:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.hv-caption { margin-top: .9rem; }
.hv-more { margin-top: .7rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: 'Jost', sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hv-more:hover { color: var(--gold-light); }

/* ─── PROJECTS: SHARED INTRO ─── */
.lab-intro { margin-bottom: 3.5rem; max-width: 980px; }
.lab-intro p { font-size: 1rem; line-height: 1.85; color: var(--text-sec); max-width: 760px; margin: .6rem 0 1.4rem; }
.lab-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.lab-jump a {
    display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.1rem; text-decoration: none;
    border: 1px solid rgba(200, 160, 64, .14); border-top: 2px solid var(--gold); border-radius: 4px;
    background: rgba(var(--ink-rgb), .35); transition: background .25s, transform .25s;
}
.lab-jump a:hover { background: rgba(200, 160, 64, .06); transform: translateY(-2px); }
.lab-jump b { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--text-prime); }
.lab-jump span { font-size: .8rem; color: var(--text-sec); }
@media (max-width: 700px) { .lab-jump { grid-template-columns: 1fr; } }

/* ─── LAB TOOLTIP + DEMOS ─── */
.e2demo { position: relative; }
.lab-tip {
    position: absolute; pointer-events: none; z-index: 6; transform: translate(-50%, calc(-100% - 10px));
    background: var(--navy-deep); border: 1px solid rgba(200, 160, 64, .35); border-radius: 3px;
    padding: .45rem .65rem; font-size: .76rem; line-height: 1.5; color: var(--text-prime); max-width: 300px;
}
.lab-tip[hidden] { display: none; }
.lab-tip b { color: var(--gold); font-weight: 500; }
.e2demo-tree { overflow-x: auto; }
.e2demo-tree svg { min-width: 520px; }

.rk-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.rk-chip[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: rgba(200, 160, 64, .08); }
.rk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.rk-heat { display: block; width: 100%; height: auto; }
.rk-col { font-family: 'Jost', sans-serif; font-size: 10.5px; fill: var(--text-sec); }
.rk-jl { font-family: 'Jost', sans-serif; font-size: 8.5px; fill: var(--text-muted); }
.rk-row { transition: opacity .3s; }
.rk-row.off { opacity: .15; }
.rk-cell:hover { stroke: var(--text-prime); stroke-width: 1; }
.rk-sep { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 2; opacity: .6; }
.rk-ci svg { display: block; width: 100%; height: auto; }
.rk-bar { stroke: rgba(200, 160, 64, .5); stroke-width: 8; stroke-linecap: round; }
.rk-dot { fill: var(--gold); stroke: var(--navy-dark); stroke-width: 2; }
.rk-p { font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--text-sec); }
.rk-note { font-size: .8rem; line-height: 1.6; color: var(--text-sec); margin-top: .75rem; }
.rk-note b { color: var(--text-prime); font-weight: 500; }

.px-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.px-map svg { display: block; width: 100%; height: auto; }
.px-pt { stroke: var(--navy-dark); stroke-width: .6; transition: opacity .2s; cursor: default; }
.px-pt.faded { opacity: .1; }
.px-pt.dim { opacity: .12; }
.px-pt.cur { stroke: var(--text-prime); stroke-width: 2; opacity: 1; }
.px-link { stroke: var(--gold-light); stroke-width: 1.2; }
.px-segs { width: 100%; border-collapse: collapse; font-size: .8rem; color: var(--text-sec); }
.px-segs th { text-align: left; font-weight: 400; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: .35rem .4rem; border-bottom: 1px solid rgba(200, 160, 64, .15); }
.px-segs td { padding: .5rem .4rem; border-bottom: 1px solid rgba(200, 160, 64, .08); white-space: nowrap; }
.px-segs tr[data-seg] { cursor: pointer; transition: background .2s; }
.px-segs tr[data-seg]:hover, .px-segs tr.on { background: rgba(200, 160, 64, .08); }
.px-segs tr:focus-visible { outline: 1px solid var(--gold); }
.px-segs td i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.px-bar { display: inline-block; width: 46px; height: 6px; margin-right: .45rem; background: rgba(var(--fg-rgb), .07); border-radius: 0 3px 3px 0; vertical-align: middle; }
.px-bar span { display: block; height: 100%; background: var(--sp1); border-radius: 0 3px 3px 0; }
.px-note { font-size: .78rem; line-height: 1.6; color: var(--text-muted); margin-top: .8rem; }
.e2-axes label span { margin-right: .3rem; }
@media (max-width: 900px) { .rk-grid, .px-grid { grid-template-columns: 1fr; } }
:root[data-theme="light"] .hv-rk, :root[data-theme="light"] .rk-dot { stroke: var(--navy-dark); }
@media (max-width: 700px) {
    .rk-heatwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rk-heat { min-width: 430px; }
}

/* ── Credit lab: data glossary and "how to read this" boxes ── */
.lab-gloss { margin: 1.25rem 0 1rem; border: 1px solid rgba(200, 160, 64, .18); border-radius: 4px; background: rgba(var(--ink-rgb), .25); }
.lab-gloss summary { cursor: pointer; padding: .8rem 1.1rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); list-style: none; display: flex; align-items: center; gap: .6rem; }
.lab-gloss summary::-webkit-details-marker { display: none; }
.lab-gloss summary::before { content: '+'; display: inline-block; width: 1rem; text-align: center; font-size: 1rem; line-height: 1; transition: transform .25s; }
.lab-gloss[open] summary::before { transform: rotate(45deg); }
.lab-gloss summary:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; }
.gloss-body { padding: 0 1.1rem 1.1rem; font-size: .84rem; line-height: 1.7; color: var(--text-sec); }
.gloss-body code, .gloss-tbl code { font-size: .78em; color: var(--text-muted); }
.gloss-tbl { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .8rem; }
.gloss-tbl th { text-align: left; font-weight: 400; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: .35rem .5rem; border-bottom: 1px solid rgba(200, 160, 64, .15); }
.gloss-tbl td { padding: .5rem; border-bottom: 1px solid rgba(200, 160, 64, .08); vertical-align: top; }
.gloss-tbl td:first-child { white-space: nowrap; }
.gloss-tbl td:first-child b { display: block; color: var(--text-prime); font-weight: 500; }
.gloss-tbl td:last-child { white-space: nowrap; color: var(--text-muted); }
.gloss-foot { font-size: .78rem; color: var(--text-muted); }
.e2-fid { font-size: .8rem; line-height: 1.65; color: var(--text-sec); margin-top: .9rem; }
.e2-fid b { color: var(--text-prime); font-weight: 500; }
.e2-kv small { font-size: .9em; opacity: .75; }
.rk-note small { opacity: .75; }

.lab-read { margin-top: 1.5rem; padding: 1.2rem 1.4rem 1.3rem; border-left: 2px solid var(--gold); border-radius: 0 4px 4px 0; background: rgba(var(--ink-rgb), .3); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 2.25rem; }
.lab-read h5 { grid-column: 1 / -1; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--text-prime); margin: 0 0 .25rem; }
.lab-read h6 { font-family: 'Jost', sans-serif; font-size: .64rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; }
.lab-read p { font-size: .82rem; line-height: 1.7; color: var(--text-sec); margin: 0 0 .7rem; }
.lab-read p:last-child { margin-bottom: 0; }
.lab-read b { color: var(--text-prime); font-weight: 500; }
.lab-read a { color: var(--gold); }
.lr-says { min-width: 0; }
.lr-says:empty { display: none; }
@media (max-width: 860px) {
    .lab-read { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.1rem 1.1rem; }
    .gloss-tbl td:first-child, .gloss-tbl td:last-child { white-space: normal; }
}

/* ── Affiliations map popups ── */
.talk-map .leaflet-popup-content h4 small { font-family: 'Jost', sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-left: .6rem; }
.talk-map .leaflet-popup-content li > b { display: block; margin-bottom: .2rem; }
.talk-map .am-people div { padding: .1rem 0; color: var(--text-prime); }
.talk-map .am-people span { color: var(--text-muted); }
.talk-map .am-people a { color: var(--gold); text-decoration: none; }
.talk-map .am-people a:hover { text-decoration: underline; }
.am-co, .am-no { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .5rem; vertical-align: middle; box-sizing: border-box; }
.am-co { background: var(--gold); }
.am-no { border: 1px solid var(--gold); }
.talk-map .leaflet-popup-content { max-height: 260px; overflow-y: auto; }
#aff-map { height: 520px; }
#aff-map .leaflet-popup-content { max-height: 340px; }
@media (max-width: 700px) { #aff-map { height: 420px; } #aff-map .leaflet-popup-content { max-height: 240px; } }
