/* ==========================================================================
   Dr. Dawit Dibekulu, public site
   Design tokens (primary/accent/heading font are injected from Admin → Settings)
   ========================================================================== */
:root {
    --primary: #0f2a44;
    --primary-rgb: 15, 42, 68;
    --accent: #c8932e;
    --accent-rgb: 200, 147, 46;
    --ink: #14202e;
    --ink-2: #33414f;
    --muted: #5f6b7a;
    --paper: #faf8f4;
    --paper-2: #f3efe7;
    --surface: #ffffff;
    --line: #e7e1d6;
    --line-2: #d9d1c3;
    --success: #2f7d5b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(20, 32, 46, .06), 0 2px 8px rgba(20, 32, 46, .04);
    --shadow: 0 10px 30px -12px rgba(20, 32, 46, .18), 0 2px 6px rgba(20, 32, 46, .05);
    --shadow-lg: 0 30px 60px -20px rgba(20, 32, 46, .28);
    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--ink); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: rgba(var(--accent-rgb), .25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; color: #fff; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.35rem; letter-spacing: .005em; transition: all .25s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); box-shadow: 0 8px 20px -10px rgba(var(--primary-rgb), .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(var(--primary-rgb), .6); }
.btn-accent { background: var(--accent); border: 1px solid var(--accent); color: #1b1307; }
.btn-accent:hover { background: #b98322; border-color: #b98322; color: #1b1307; transform: translateY(-1px); }
.btn-outline-ink { border: 1.5px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), .04); }
.btn-link-ink { color: var(--ink); background: none; border: 0; padding-left: .5rem; padding-right: .5rem; }
.btn-link-ink:hover { color: var(--accent); }
.btn-link-ink .bi-arrow-right { transition: transform .25s var(--ease); }
.btn-link-ink:hover .bi-arrow-right { transform: translateX(4px); }
.btn-icon { width: 42px; height: 42px; border-radius: 50%; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.btn .btn-loading { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Announcement ---------- */
.announcement-bar { background: var(--primary); color: rgba(255, 255, 255, .88); font-size: .85rem; padding: .5rem 0; text-align: center; }
.announcement-bar a { color: #fff; text-decoration: none; font-weight: 500; }
.announcement-bar a:hover { color: var(--accent); }
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(250, 248, 244, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20, 32, 46, .35); background: rgba(250, 248, 244, .94); }
/* backdrop-filter would trap the fixed mobile menu inside the header, so it is desktop-only */
@media (max-width: 1199.98px) { .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 248, 244, .98); } }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .7; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.12rem; }
.brand-tagline { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand-logo { max-height: 48px; width: auto; }
.navbar-nav .nav-link { color: var(--ink-2); font-weight: 500; font-size: .94rem; padding: .5rem .8rem !important; position: relative; border-radius: 8px; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }
@media (min-width: 1200px) {
    .navbar-nav .nav-link::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
    .navbar-nav .nav-link.dropdown-toggle::after { display: none; }
    .navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
    .navbar-nav .dropdown-toggle { padding-right: 1.6rem !important; }
    .navbar-nav .dropdown-toggle::before { content: '\F282'; font-family: bootstrap-icons; position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font-size: .7rem; }
}
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .5rem; min-width: 210px; }
.dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-size: .92rem; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }
.dropdown-item i { color: var(--accent); }
.dropdown-item:hover, .dropdown-item.active { background: var(--paper-2); color: var(--primary); }
.navbar-toggler { border: 0; padding: .5rem; width: 42px; height: 42px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; }
.offcanvas { background: var(--paper); }
.offcanvas-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.offcanvas-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link { font-size: 1.05rem; padding: .7rem .5rem !important; border-bottom: 1px solid var(--line); border-radius: 0; }
    .navbar-nav .dropdown-menu { border: 0; box-shadow: none; background: transparent; padding-left: .75rem; }
}
@media (min-width: 1200px) {
    .offcanvas-xl, .site-header .offcanvas { position: static; visibility: visible !important; transform: none !important; background: transparent; border: 0; width: auto; flex-grow: 1; }
    .site-header .offcanvas-header { display: none; }
    .site-header .offcanvas-body { display: flex; align-items: center; padding: 0; overflow: visible; }
    .site-header .navbar-toggler { display: none; }
}

/* ---------- Section primitives ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--paper-2); }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow-center { justify-content: center; }
.eyebrow-light { color: #e7bd6a; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; font-weight: 600; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.section-head .section-title { margin-bottom: 0; }
.subhead { font-size: 1.35rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.subhead .bi { color: var(--accent); }
.lead-text { font-size: 1.12rem; color: var(--ink-2); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.badge-soft, .badge-accent, .badge-outline { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .01em; }
.badge-soft { background: rgba(var(--primary-rgb), .07); color: var(--primary); }
.badge-accent { background: rgba(var(--accent-rgb), .14); color: #8a5f12; }
.badge-outline { border: 1px solid var(--line-2); color: var(--muted); }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 .5rem; border-radius: 999px; background: rgba(var(--primary-rgb), .08); color: var(--primary); font: 600 .75rem var(--font-body); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-pattern, .page-hero-pattern, .cta-pattern { position: absolute; inset: 0; background-image: url('../img/pattern.svg'); background-size: 64px 64px; opacity: .5; pointer-events: none; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 65%); pointer-events: none; }
.hero-bg-image { position: absolute; inset: 0; background: var(--hero-bg) center/cover no-repeat; opacity: .14; }
.availability { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; position: relative; flex: none; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2fa36b; opacity: .5; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-eyebrow { font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 620px; margin-bottom: 2rem; }
.hero-centered .hero-subtitle, .hero-minimal .hero-subtitle { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-profiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-profiles a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 1.1rem; transition: all .25s var(--ease); }
.hero-profiles a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.hero-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: var(--shadow), 0 0 0 2px var(--accent); margin-bottom: 1.5rem; }
.hero-minimal { padding: 120px 0; }

.hero-portrait { position: relative; max-width: 420px; margin: 0 auto; padding: 24px 24px 40px; }
.portrait-frame { position: relative; z-index: 2; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, #e9e3d7, #d8cfbf); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease); }
.hero-portrait:hover .portrait-frame img { transform: scale(1.04); }
.portrait-ring { position: absolute; z-index: 1; inset: 8px 0 24px 40px; border-radius: 999px 999px 28px 28px; border: 1.5px solid var(--accent); transform: translate(14px, 14px); }
.float-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: 250px; animation: float 6s ease-in-out infinite; }
.float-badge strong { display: block; font-size: .92rem; line-height: 1.25; }
.float-badge small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.float-badge-1 { left: -36px; bottom: 90px; }
.float-badge-2 { right: -28px; top: 70px; animation-delay: -3s; }
.float-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--primary); color: #fff; }
.float-icon-accent { background: var(--accent); color: #1b1307; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 575.98px) { .float-badge-1 { left: -8px; } .float-badge-2 { right: -8px; } .float-badge { max-width: 200px; } }

/* ---------- Stats ---------- */
.stats-band { background: var(--primary); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::after { content: ''; position: absolute; inset: 0; background-image: url('../img/pattern-light.svg'); background-size: 64px; opacity: .08; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; position: relative; z-index: 1; }
.stat { text-align: center; padding: .5rem; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 1px; background: rgba(255, 255, 255, .15); }
.stat-icon { font-size: 1.4rem; color: var(--accent); }
.stat-value { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; margin: .35rem 0; }
.stat-label { font-size: .85rem; color: rgba(255, 255, 255, .72); letter-spacing: .04em; }
@media (max-width: 575.98px) { .stat + .stat::before { display: none; } .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- "Currently" card ---------- */
.now-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.now-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--paper)); }
.now-label { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.now-org { font-size: .85rem; color: var(--muted); }
.now-list { list-style: none; padding: 1.25rem 1.5rem; margin: 0; display: grid; gap: 1.1rem; }
.now-list li { display: flex; gap: .9rem; }
.now-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); margin-top: .45rem; flex: none; }
.now-list strong { display: block; font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.now-list small { color: var(--muted); font-size: .84rem; }
.now-card-foot { padding: 1rem 1.5rem 1.25rem; background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.now-card-foot > div { display: flex; gap: 1rem; font-size: .88rem; }
.now-k { width: 120px; flex: none; color: var(--muted); }
.now-v { color: var(--ink); text-decoration: none; }

/* ---------- Research area cards ---------- */
.area-card { display: block; height: 100%; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: all .35s var(--ease); }
.area-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); border-color: transparent; }
.area-card:hover::after { transform: scaleX(1); }
.area-num { position: absolute; right: 1.25rem; top: 1rem; font-family: var(--font-heading); font-size: 2.6rem; color: rgba(var(--primary-rgb), .07); font-weight: 600; line-height: 1; }
.area-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--primary-rgb), .06); color: var(--primary); font-size: 1.4rem; margin-bottom: 1.2rem; transition: all .35s var(--ease); }
.area-card:hover .area-icon { background: var(--primary); color: #fff; }
.area-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.area-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Publications ---------- */
.pub-list { display: grid; gap: 0; }
.pub-item { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pub-item:first-child { padding-top: .25rem; }
.pub-year { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; color: var(--accent); line-height: 1.3; }
.pub-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .55rem; }
.pub-title { font-size: 1.15rem; line-height: 1.4; margin-bottom: .4rem; font-weight: 600; }
.pub-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease); }
.pub-title a:hover { background-size: 100% 1.5px; color: var(--primary); }
.pub-venue { color: var(--muted); font-size: .92rem; font-style: italic; margin-bottom: .6rem; }
.pub-actions { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.pub-action { font-size: .84rem; font-weight: 600; color: var(--primary); text-decoration: none; background: none; border: 0; padding: 0; display: inline-flex; gap: .35rem; align-items: center; }
.pub-action:hover { color: var(--accent); }
.pub-item-compact .pub-title { font-size: 1.02rem; }
@media (max-width: 575.98px) { .pub-item { grid-template-columns: 1fr; gap: .25rem; } .pub-year { font-size: 1rem; } }
.year-divider { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 1rem; margin: 2rem 0 .25rem; }
.year-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.year-divider:first-child { margin-top: 0; }
.results-bar { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-2); }
#pubResults { transition: opacity .2s; }
#pubResults.is-loading { opacity: .4; pointer-events: none; }

.pub-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.filter-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.filter-list { display: grid; gap: .25rem; }
.filter-option { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 10px; cursor: pointer; font-size: .92rem; transition: background .2s; }
.filter-option:hover { background: var(--paper); }
.filter-option input { accent-color: var(--primary); }
.filter-option span { flex: 1; }
.filter-option span i { color: var(--accent); margin-right: .2rem; }
.filter-option em { font-style: normal; font-size: .78rem; color: var(--muted); background: var(--paper-2); border-radius: 999px; padding: 0 .5rem; }
.filter-option:has(input:checked) { background: rgba(var(--primary-rgb), .06); color: var(--primary); font-weight: 600; }
.search-input { position: relative; }
.search-input i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input .form-control { padding-left: 2.4rem; }
.export-box { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line-2); transition: border-color .2s; }
.export-box:hover { border-color: var(--accent); }
.export-box > i { font-size: 1.3rem; color: var(--accent); }
.export-box strong { display: block; font-size: .9rem; }
.export-box span { font-size: .8rem; color: var(--muted); }

.pub-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.pub-meta-grid > div { background: var(--surface); padding: 1rem 1.25rem; }
.pub-meta-grid dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.pub-meta-grid dd { margin: 0; font-weight: 500; word-break: break-word; }

/* Citation */
.cite-tabs .nav-link { border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .85rem; padding: .35rem .9rem; }
.cite-tabs .nav-link.active { background: var(--primary); color: #fff; }
.cite-output { white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; font-size: .88rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); margin: 0; min-height: 90px; }
.cite-inline { font-size: .8rem; }
.modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }

/* ---------- Cards: projects, posts, albums ---------- */
.project-card, .post-card, .album-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-decoration: none; color: var(--ink); }
.project-card:hover, .post-card:hover, .album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.project-card-media, .post-card-media, .album-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .cover-img, .post-card:hover .cover-img, .album-card:hover .cover-img { transform: scale(1.05); }
.cover-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: rgba(255, 255, 255, .9); font-size: 2rem; background: linear-gradient(135deg, var(--primary), #1d4b73); position: relative; }
.cover-fallback::before { content: ''; position: absolute; inset: 0; background-image: url('../img/pattern-light.svg'); background-size: 48px; opacity: .15; }
.cover-fallback span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.cover-fallback-1 { background: linear-gradient(135deg, #7a4b1e, var(--accent)); }
.cover-fallback-2 { background: linear-gradient(135deg, #234d45, #3d7f6d); }
.cover-fallback-3 { background: linear-gradient(135deg, #4a2c4f, #7b4a74); }
.project-type { position: absolute; left: 1rem; top: 1rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.project-card-body, .post-card-body, .album-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-meta, .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.project-title, .post-title { font-size: 1.18rem; line-height: 1.35; margin-bottom: .6rem; }
.project-title a, .post-title a { color: var(--ink); text-decoration: none; }
.project-title a:hover, .post-title a:hover { color: var(--primary); }
.project-summary, .post-excerpt { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; flex: 1; }
.project-partner { font-size: .82rem; color: var(--ink-2); margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); }
.project-partner i { color: var(--accent); }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ongoing { background: rgba(47, 163, 107, .12); color: #1f7a4f; }
.status-completed { background: rgba(var(--primary-rgb), .08); color: var(--primary); }
.status-planned { background: rgba(var(--accent-rgb), .15); color: #8a5f12; }
.post-cat { font-weight: 700; color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.album-count { position: absolute; right: .9rem; bottom: .9rem; background: rgba(15, 23, 35, .7); color: #fff; font-size: .78rem; padding: .25rem .65rem; border-radius: 999px; backdrop-filter: blur(4px); }
.album-type { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.album-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.album-body p { font-size: .85rem; color: var(--muted); margin: 0; }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.featured-post-media { display: block; min-height: 340px; }
.featured-post-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.featured-post-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .5rem 0 1rem; }
.featured-post-title a { color: var(--ink); text-decoration: none; }
.featured-post-body p { color: var(--muted); }
@media (max-width: 991.98px) { .featured-post { grid-template-columns: 1fr; } .featured-post-media { min-height: 220px; aspect-ratio: 16/9; } .featured-post-body { padding: 1.75rem; } }

/* ---------- Testimonials ---------- */
.testimonial-carousel { max-width: 820px; margin: 0 auto; padding-bottom: 3rem; }
.testimonial { text-align: center; margin: 0; padding: 0 1rem; }
.testimonial-mark { font-size: 3.5rem; color: var(--accent); line-height: 1; display: block; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); font-weight: 400; margin: 1rem 0 2rem; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .9rem; text-align: left; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--muted); }
.testimonial-photo, .testimonial-initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-initials { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 600; }
.testimonial-carousel .carousel-indicators { bottom: 0; margin: 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; background: var(--primary); border: 0; opacity: .2; }
.testimonial-carousel .carousel-indicators .active { opacity: 1; }

/* ---------- Partners marquee ---------- */
.partners-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.partners-label { text-align: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.75rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 45s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { text-decoration: none; display: inline-flex; align-items: center; }
.partner img { max-height: 40px; filter: grayscale(1); opacity: .7; transition: all .3s; }
.partner:hover img { filter: none; opacity: 1; }
.partner-word { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: #8b8f96; white-space: nowrap; transition: color .3s; }
.partner:hover .partner-word { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), .22), transparent 40%), linear-gradient(135deg, var(--primary), #0a1c2e); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.cta-band .cta-pattern { background-image: url('../img/pattern-light.svg'); opacity: .1; mask-image: none; -webkit-mask-image: none; }
.cta-title { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-text { color: rgba(255, 255, 255, .78); font-size: 1.08rem; }
.engage-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: all .3s var(--ease); }
.engage-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: .4rem; }
.engage-card strong { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; }
.engage-card span { font-size: .88rem; color: rgba(255, 255, 255, .7); }
.engage-card:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .6); }

/* ---------- Compact page bar (inner pages) ---------- */
.page-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.page-bar-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }
.page-bar-main { min-width: 0; flex: 1 1 420px; }
.page-bar .breadcrumb { font-size: .8rem; margin-bottom: .25rem; --bs-breadcrumb-divider-color: var(--line-2); }
.page-bar .breadcrumb a { color: var(--muted); text-decoration: none; }
.page-bar .breadcrumb a:hover { color: var(--primary); }
.page-bar .breadcrumb-item.active { color: var(--ink-2); }
.page-bar-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; margin: 0; max-width: 980px; }
.page-bar-eyebrow { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .15rem; }
.page-bar-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .84rem; color: var(--muted); padding-bottom: .2rem; }
.page-bar-meta i { color: var(--accent); margin-right: .3rem; }
/* content starts right under the bar */
.page-bar + .section, .page-bar + section.section { padding-top: 36px; }
/* ---------- Prose ---------- */
.prose { color: var(--ink-2); }
.prose-lg { font-size: 1.08rem; line-height: 1.8; }
.prose p { margin-bottom: 1.15em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .6); }
.prose blockquote { border-left: 3px solid var(--accent); padding: .5rem 0 .5rem 1.4rem; margin: 1.8rem 0; font-family: var(--font-heading); font-size: 1.25rem; color: var(--ink); font-style: italic; }
.prose img { border-radius: 12px; height: auto; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.article-cover { margin: 0 0 2rem; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-lead { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.55; color: var(--ink); margin-bottom: 1.75rem; }
.article-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 2.5rem 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-share span { font-weight: 600; font-size: .85rem; margin-right: .5rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.article-share a, .article-share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: all .2s; }
.article-share a:hover, .article-share button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .2s; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.post-nav span { font-weight: 600; line-height: 1.35; }
.post-nav-next { text-align: right; grid-column: 2; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1.25rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-title { font-size: 1.05rem; margin-bottom: 1rem; }
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover, .side-cats a.active { color: var(--primary); font-weight: 600; }
.side-cats a span { font-size: .75rem; background: var(--paper-2); padding: .05rem .5rem; border-radius: 999px; color: var(--muted); }
.side-popular { padding-left: 1.2rem; margin: 0; display: grid; gap: .9rem; }
.side-popular li::marker { color: var(--accent); font-family: var(--font-heading); font-weight: 600; }
.side-popular a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; font-size: .93rem; }
.side-popular a:hover { color: var(--primary); }
.side-popular small { color: var(--muted); font-size: .78rem; }
.author-card { position: relative; display: flex; align-items: center; gap: 1rem; }
.author-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-card strong { display: block; font-family: var(--font-heading); }
.author-card small { color: var(--muted); font-size: .82rem; }

/* ---------- About ---------- */
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.profile-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; }
.profile-card-body { padding: 1.5rem; }
.profile-card-name { font-size: 1.4rem; margin-bottom: .2rem; }
.profile-card-title { color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; }
.fact-list { margin: 0 0 1.25rem; display: grid; gap: .8rem; }
.fact-list div { display: grid; gap: .1rem; }
.fact-list dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact-list dt i { color: var(--accent); margin-right: .25rem; }
.fact-list dd { margin: 0; font-size: .93rem; font-weight: 500; }
.profile-card-social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); justify-content: center; }
.profile-card-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--paper); text-decoration: none; transition: all .2s; }
.profile-card-social a:hover { background: var(--primary); color: #fff; }
.approach-card { background: var(--paper-2); border-radius: var(--radius); padding: 2rem; border-left: 4px solid var(--accent); }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 190px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 40px; position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: 184px; top: 1.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 3px solid var(--line-2); }
.timeline-item.is-current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .18); }
.timeline-date { text-align: right; font-size: .85rem; font-weight: 600; color: var(--muted); padding-top: 1.15rem; }
.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; transition: box-shadow .3s; }
.timeline-card:hover { box-shadow: var(--shadow); }
.timeline-card h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.timeline-org { font-size: .88rem; color: var(--ink-2); margin-bottom: .4rem; }
.timeline-org i { color: var(--accent); }
.timeline-desc { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) {
    .timeline::before { left: 7px; }
    .timeline-item { grid-template-columns: 1fr; gap: .4rem; padding-left: 32px; }
    .timeline-item::before { left: 1px; top: .35rem; }
    .timeline-date { text-align: left; padding-top: 0; }
}

.edu-card, .skill-card, .service-card, .course-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: all .3s var(--ease); }
.edu-card:hover, .course-card:hover, .skill-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.edu-icon, .skill-icon, .course-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .14); color: #8a5f12; font-size: 1.25rem; margin-bottom: 1rem; }
.edu-years { display: block; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: .35rem; }
.edu-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.edu-org { font-weight: 600; color: var(--ink-2); font-size: .92rem; margin-bottom: .5rem; }
.edu-desc { font-size: .87rem; color: var(--muted); margin: 0; }
.service-card h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; margin-bottom: 1rem; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.service-list li:last-child { border-bottom: 0; }
.service-list strong { display: block; font-weight: 600; font-size: .94rem; line-height: 1.35; }
.service-list strong a { color: var(--ink); text-decoration: none; }
.service-list strong a:hover { color: var(--primary); }
.service-list small { color: var(--muted); font-size: .82rem; }
.service-years { font-size: .78rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.skill-card h3 { font-size: 1.12rem; margin-bottom: .8rem; }
.skill-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; color: var(--ink-2); }
.skill-card li i { color: var(--success); margin-right: .3rem; }

/* ---------- Teaching ---------- */
.teach-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.teach-stat { background: var(--surface); padding: 1.4rem; }
.teach-stat strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; color: var(--primary); }
.teach-stat span { font-size: .85rem; color: var(--muted); }
.mini-timeline ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.mini-timeline li { padding: 0 0 1rem 1.1rem; position: relative; }
.mini-timeline li::before { content: ''; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mini-timeline strong { display: block; font-size: .95rem; line-height: 1.35; }
.mini-timeline small { color: var(--muted); }
.course-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.course-head .course-icon { margin: 0; }
.course-level { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.course-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.course-card p { font-size: .9rem; color: var(--muted); }
.course-code { font-family: var(--font-body); font-size: .8rem; background: var(--paper-2); padding: .1rem .45rem; border-radius: 6px; vertical-align: middle; }
.course-foot { font-size: .82rem; color: var(--ink-2); padding-top: .9rem; border-top: 1px solid var(--line); margin-top: auto; }
.course-foot i { color: var(--accent); }
.course-card { display: flex; flex-direction: column; }
.supervision-card { background: linear-gradient(135deg, rgba(var(--accent-rgb), .1), rgba(var(--primary-rgb), .05)); border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 22px; padding: 2.5rem; }

/* Filter pills (client-side filtering) */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; text-decoration: none; transition: all .2s; cursor: pointer; }
.filter-pill span { font-size: .72rem; background: var(--paper-2); color: var(--muted); border-radius: 999px; padding: 0 .45rem; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-pill.active span { background: rgba(255, 255, 255, .18); color: #fff; }
.js-filter-item.is-hidden { display: none !important; }

/* ---------- Research ---------- */
.collab-card { background: var(--primary); color: rgba(255, 255, 255, .85); border-radius: 22px; padding: 2rem; position: relative; overflow: hidden; }
.collab-card h3 { color: #fff; font-size: 1.4rem; }
.collab-card .prose { color: rgba(255, 255, 255, .8); }
.collab-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .2); color: var(--accent); font-size: 1.4rem; margin-bottom: 1rem; }
.theme-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.theme-row { display: grid; grid-template-columns: 60px 56px 1fr auto; align-items: center; gap: 1.25rem; padding: 1.5rem .5rem; border-bottom: 1px solid var(--line-2); transition: background .3s; }
.theme-row:hover { background: var(--surface); }
.theme-num { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent); font-weight: 600; }
.theme-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--primary); font-size: 1.35rem; }
.theme-body h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.theme-body p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 767.98px) { .theme-row { grid-template-columns: 52px 1fr; } .theme-num { display: none; } .theme-row .count-pill { grid-column: 2; justify-self: start; } }

/* ---------- Media & talks ---------- */
.talk-list { display: grid; gap: 1rem; }
.talk-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: box-shadow .3s, border-color .3s; }
.talk-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.talk-date { width: 84px; height: 84px; border-radius: 16px; background: var(--paper-2); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); font-size: 1.6rem; }
.talk-month { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.talk-year { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.talk-type { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.talk-body h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: .3rem; }
.talk-event { font-size: .9rem; color: var(--ink-2); margin-bottom: .2rem; }
.talk-event span { color: var(--muted); }
.talk-desc { font-size: .87rem; color: var(--muted); margin: 0; }
.talk-actions { display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 767.98px) { .talk-item { grid-template-columns: 64px 1fr; } .talk-date { width: 64px; height: 64px; } .talk-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
.featured-video { background: var(--primary); border-radius: 24px; overflow: hidden; color: #fff; }
.featured-video-body { padding: 2.25rem; }
.featured-video-body h2 { color: #fff; font-size: 1.6rem; margin: 1rem 0 .6rem; }
.featured-video-body p { color: rgba(255, 255, 255, .78); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s var(--ease), opacity .3s; }
.video-thumb:hover img { transform: scale(1.04); opacity: 1; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--primary); font-size: 2rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2); transition: transform .3s var(--ease); }
.play-btn-lg { width: 84px; height: 84px; font-size: 2.6rem; }
.video-thumb:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.video-body { padding: 1.25rem 1.5rem; }
.video-body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.video-body p { font-size: .88rem; color: var(--muted); margin: 0; }
.invite-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.25rem; border-radius: 22px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--primary-rgb), .06)); border: 1px solid rgba(var(--accent-rgb), .3); }
.invite-card h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.invite-card p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-tabs { justify-content: center; gap: .5rem; }
.gallery-tabs .nav-link { border-radius: 999px; color: var(--ink-2); font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); display: inline-flex; gap: .45rem; align-items: center; }
.gallery-tabs .nav-link span { font-size: .72rem; background: var(--paper-2); border-radius: 999px; padding: 0 .45rem; color: var(--muted); }
.gallery-tabs .nav-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-tabs .nav-link.active span { background: rgba(255, 255, 255, .2); color: #fff; }
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry-item { display: block; position: relative; margin-bottom: 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.masonry-item img { width: 100%; display: block; transition: transform .7s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(transparent, rgba(10, 20, 32, .8)); color: #fff; font-size: .85rem; font-weight: 500; opacity: 0; transition: opacity .3s; }
.masonry-item:hover .masonry-caption { opacity: 1; }
.masonry-item.video-item { aspect-ratio: 16 / 9; }
.masonry-item.video-item img { height: 100%; object-fit: cover; }

/* ---------- Awards ---------- */
.award-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); }
.award-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.award-card.is-featured { border-color: rgba(var(--accent-rgb), .5); }
.award-media { aspect-ratio: 16 / 8; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--primary), #0b2035); position: relative; overflow: hidden; }
.award-media img { width: 100%; height: 100%; object-fit: cover; }
.award-media a { display: block; width: 100%; height: 100%; }
.award-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; color: var(--accent); border: 1.5px solid rgba(var(--accent-rgb), .6); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .06); }
.award-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.award-date { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.award-body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.award-issuer { font-size: .9rem; color: var(--ink-2); font-weight: 500; margin-bottom: .5rem; }
.award-desc { font-size: .87rem; color: var(--muted); margin-bottom: .75rem; }
.award-links { margin-top: auto; display: flex; gap: 1rem; font-size: .85rem; font-weight: 600; }
.award-links a { text-decoration: none; }
.cert-list { display: grid; gap: .75rem; }
.cert-item { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.cert-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 125, 91, .1); color: var(--success); font-size: 1.3rem; }
.cert-body h3 { font-size: 1rem; margin-bottom: .15rem; font-family: var(--font-body); font-weight: 600; }
.cert-body p { font-size: .85rem; color: var(--muted); margin: 0; }
.cert-year { font-family: var(--font-heading); font-weight: 600; color: var(--primary); font-size: 1.1rem; }
.cert-link { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; }
@media (max-width: 575.98px) { .cert-item { grid-template-columns: 40px 1fr; } .cert-year { grid-column: 2; } }

/* ---------- Downloads ---------- */
.download-list { display: grid; gap: .75rem; }
.download-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; transition: box-shadow .3s; }
.download-item:hover { box-shadow: var(--shadow); }
.download-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(var(--primary-rgb), .07); color: var(--primary); }
.download-icon.ext-pdf { background: rgba(200, 40, 40, .09); color: #b42b2b; }
.download-icon.ext-docx, .download-icon.ext-doc { background: rgba(40, 90, 200, .09); color: #2b56b4; }
.download-icon.ext-pptx, .download-icon.ext-ppt { background: rgba(210, 100, 30, .1); color: #c2571b; }
.download-body h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.download-body p { font-size: .87rem; color: var(--muted); margin-bottom: .25rem; }
.download-body small { font-size: .78rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2.25rem; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .contact-form-card { padding: 1.5rem; } }
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.req { color: #c0392b; }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .95rem; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1); }
.inquiry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.inquiry-option { position: relative; cursor: pointer; }
.inquiry-option input { position: absolute; opacity: 0; }
.inquiry-option span { display: block; padding: .65rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: .88rem; font-weight: 500; transition: all .2s; }
.inquiry-option input:checked + span { border-color: var(--primary); background: rgba(var(--primary-rgb), .06); color: var(--primary); font-weight: 600; }
.inquiry-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-feedback:empty { display: none; }
.form-feedback .alert { margin: 0; border-radius: 12px; }
.contact-info-card { background: var(--primary); color: rgba(255, 255, 255, .85); border-radius: 22px; padding: 2rem; margin-bottom: 1.25rem; }
.contact-info-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 1.25rem; }
.contact-info { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1.1rem; }
.contact-info li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--accent); font-size: 1.1rem; }
.contact-info small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.contact-info a, .contact-info span { color: #fff; text-decoration: none; word-break: break-word; }
.contact-info-card .prose { color: rgba(255, 255, 255, .75); }
.contact-social { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-social a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; font-size: .8rem; transition: background .2s; }
.contact-social a:hover { background: var(--accent); color: #1b1307; }
.map-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper-2); }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pagination & misc ---------- */
.pagination-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination { gap: .35rem; }
.page-link { border-radius: 10px !important; border: 1px solid var(--line); color: var(--ink-2); min-width: 42px; height: 42px; display: grid; place-items: center; font-weight: 600; }
.page-link:hover { background: var(--paper-2); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--accent); }
.empty-state h3 { font-size: 1.25rem; margin: .75rem 0 .25rem; }
.empty-state p { margin: 0; }
.error-page { padding: 120px 0; }
.error-code { display: block; font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--accent); font-weight: 600; }
.error-search { max-width: 420px; }
.search-results { list-style: none; padding: 0; display: grid; gap: .5rem; }
.search-results a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.search-results a:hover { border-color: var(--accent); }
.search-results strong { display: block; }
.search-results small { color: var(--muted); }

/* Search modal */
.search-modal .modal-content { overflow: hidden; }
.search-form { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-form > i { font-size: 1.2rem; color: var(--muted); }
.search-form .form-control { border: 0; box-shadow: none; font-size: 1.15rem; padding: .5rem 0; }
.search-hint { color: var(--muted); margin: .5rem 0; font-size: .92rem; }
.live-group { margin-bottom: 1.25rem; }
.live-group h3 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .5rem; }
.live-group a { display: block; padding: .6rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.live-group a:hover, .live-group a:focus { background: var(--paper-2); }
.live-group a strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.live-group a small { color: var(--muted); font-size: .8rem; }
.live-group mark { background: rgba(var(--accent-rgb), .25); padding: 0 2px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a2a; color: rgba(255, 255, 255, .7); padding: 80px 0 0; font-size: .93rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-tagline { color: rgba(255, 255, 255, .5); }
.footer-about { max-width: 360px; }
.footer-title { font-family: var(--font-body); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .2rem; }
.footer-contact a, .footer-contact span { word-break: break-word; }
.footer-social { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); text-decoration: none; transition: all .25s; }
.footer-social a:hover { background: var(--accent); color: #1b1307; transform: translateY(-2px); }
.footer-muted { color: rgba(255, 255, 255, .55); }
.newsletter-form .form-control { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; border-radius: 12px 0 0 12px; }
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form .btn { border-radius: 0 12px 12px 0; }
.newsletter-form .form-feedback { color: rgba(255, 255, 255, .8); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 56px; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: #1b1307; }
.toast { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }

/* GLightbox polish */
.glightbox-clean .gslide-description { background: var(--surface); }
.glightbox-clean .gslide-title { font-family: var(--font-heading); }

@media print {
    .site-header, .site-footer, .announcement-bar, .back-to-top, .pub-actions, .hero-actions { display: none !important; }
    .page-hero { background: none; color: #000; padding: 0; }
    .page-hero-title { color: #000; }
    .reveal { opacity: 1; transform: none; }
}

/* Phone gutters: 16px page edge, and wide-gutter rows that never exceed it */
@media (max-width: 767.98px) {
    .container { --bs-gutter-x: 2rem; }
    .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; }
}

/* ---------- Services & consultancy ---------- */
.offer-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.offer-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 18px -10px rgba(var(--primary-rgb), .7); }
.offer-card:hover .offer-icon { background: var(--accent); color: #1b1307; }
.offer-title { font-size: 1.22rem; margin-bottom: .45rem; }
.offer-summary { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.offer-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; font-size: .9rem; color: var(--ink-2); }
.offer-list li { display: flex; gap: .5rem; align-items: flex-start; }
.offer-list i { color: var(--success); margin-top: .15rem; }
.offer-more { margin-bottom: 1rem; font-size: .88rem; }
.offer-more summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.offer-more .prose { margin-top: .5rem; }
.offer-facts { margin: 0 0 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); display: grid; gap: .5rem; font-size: .84rem; }
.offer-facts dt { font-weight: 600; color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.offer-facts dt i { color: var(--accent); }
.offer-facts dd { margin: 0; color: var(--ink-2); }
.step-card { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-card > i { font-size: 1.6rem; color: var(--accent); }
.step-card h3 { font-size: 1.1rem; margin: .7rem 0 .35rem; }
.step-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.step-num { position: absolute; right: 1.25rem; top: 1rem; font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; color: rgba(var(--primary-rgb), .1); font-weight: 600; }
.home-offer { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: all .3s var(--ease); }
.home-offer:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.home-offer h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.home-offer p { font-size: .88rem; color: var(--muted); margin: 0; }
.home-offer .offer-icon { width: 46px; height: 46px; flex: none; font-size: 1.2rem; }

/* Fit the full menu on smaller desktops (1200–1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-nav .nav-link { padding: .5rem .55rem !important; font-size: .9rem; }
    .navbar-nav .nav-link::after { left: .55rem; right: .55rem; }
    .navbar-nav .dropdown-toggle { padding-right: 1.3rem !important; }
    .brand-tagline { display: none; }
    .navbar-nav.me-xl-3 { margin-right: .5rem !important; }
}
